What DNSLint checks
36 checks across six areas of your DNS, and why each one matters.
Parent zone
- Glue records
- When a domain's nameservers live inside the domain itself, the parent zone must publish their addresses as glue. Without glue, resolvers cannot find the nameservers and the domain does not resolve.
- Nameserver address records
- Every nameserver listed at the registry needs an A or AAAA record so resolvers can reach it.
- DNSSEC
- Looks for DS records at the parent zone. DNSSEC signs your records to protect against spoofing and cache poisoning.
Nameservers
- Matching nameservers
- The nameservers listed at the parent zone must match the NS records inside your zone. A mismatch causes inconsistent answers depending on which resolver asks.
- Servers respond
- Each nameserver must answer queries. A dead server slows lookups and loses redundancy.
- Lame delegation
- A nameserver that is listed for your domain but does not answer authoritatively is lame. It is a common cause of intermittent resolution failures (RFC 1912).
- Redundancy
- Two or more nameservers are required so one failure does not take the domain offline. More than seven can overflow the 512-byte UDP response limit.
- Nameserver diversity
- Nameservers should be on separate subnets, and ideally separate networks, so one outage cannot take them all down (RFC 2182). Using a single DNS provider is reported for information, since most providers spread their servers out with anycast.
- Public addresses
- Nameserver addresses must be publicly routable. Private or reserved addresses are unreachable from the internet.
- IPv6 for nameservers
- Checks whether nameservers are reachable over IPv6, which keeps the domain resolvable from IPv6-only networks.
- TCP connectivity
- DNS must work over TCP as well as UDP. Large responses, DNSSEC and zone transfers all depend on it.
- Open resolvers
- Nameservers should refuse recursive queries for names outside your zone. An open resolver is used to amplify DDoS attacks and ends up on blocklists.
- Zone transfers
- Nameservers should refuse to send a full copy of your zone (AXFR) to anyone who asks. An open transfer reveals every hostname in the zone, including internal and staging names.
- DNSSEC signatures
- For a signed domain, every nameserver must return signatures that are within their validity period. The check does not verify the signatures cryptographically. An expired signature makes validating resolvers refuse the whole domain, so the check warns when signatures are close to expiring without being renewed.
SOA record
- Matching serials
- All nameservers should report the same SOA serial. A mismatch signals zone transfers that are failing or lagging (RFC 1912).
- Primary nameserver (MNAME)
- MNAME should name one of your real nameservers, not the domain itself.
- Contact address (RNAME)
- The SOA contact is an email address with the @ written as a dot. The check confirms it is formatted correctly.
- Serial format
- Serial numbers should increase with every change. The conventional YYYYMMDDnn format makes that easy to follow.
- Refresh, retry, expire and minimum
- These timers control how often secondary servers sync and how long cached data lives. Each is compared against the ranges recommended by RFC 1912.
Mail (MX)
- Multiple mail servers
- Two or more MX records let mail queue and deliver when one server is down.
- Hostnames, not IP addresses
- MX records must point to hostnames. An IP address in an MX record is invalid and breaks delivery.
- No CNAMEs
- An MX target must not be a CNAME alias (RFC 974, RFC 1912). Some mail servers refuse to deliver to it.
- Targets resolve
- Each MX hostname must resolve to a public IP address, or mail cannot be delivered.
- Reverse DNS
- Mail server addresses should have a PTR record that matches their hostname. Receivers use it to judge whether mail is legitimate.
Email authentication
- SPF record
- A single SPF record lists the servers allowed to send mail for the domain and should end in ~all or -all. More than one record, or +all, breaks SPF.
- SPF lookup limit
- Receivers stop after 10 DNS lookups while evaluating SPF. A record that needs more, usually through nested includes, fails for all mail (RFC 7208).
- DMARC record
- A DMARC record at _dmarc tells receivers what to do with mail that fails SPF and DKIM. A policy of none only monitors; quarantine or reject protects the domain from spoofing.
- DMARC report authorisation
- A domain that receives DMARC reports for another domain must agree to it with a _report._dmarc record. Without it, receivers do not send the reports (RFC 7489).
Domain
- No CNAME at the apex
- A CNAME at the root of a domain conflicts with the required SOA and NS records and can break mail and other services.
- IPv6 for the domain
- An AAAA record lets IPv6-only visitors reach your site.