Three Different Answers, Three Different Problems
When a domain won't resolve, "check DNS propagation" is the reflexive answer — and it's frequently the wrong diagnosis. DNS failures come back with specific, meaningful status codes, and each one points at a genuinely different layer of the problem. dig shows you exactly which one you're dealing with; here's what each means and how to actually fix it.
NXDOMAIN — "This Name Does Not Exist"
$ dig app.example.com
;; ->>HEADER<<- opcode: QUERY, status: NXDOMAIN, id: 41230
;; flags: qr rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 1, ADDITIONAL: 0
What it means: this is a definitive, completed answer from an authoritative source — the zone exists, but no record exists for this exact name. It is not a failure to reach a server; the server that authoritatively knows about example.com responded and confirmed app.example.com isn't in it.
The real-world causes, roughly in order of frequency:
- A typo in the record name (
aap.example.comvsapp.example.com) - The record genuinely hasn't been created yet on the authoritative nameserver
- Negative caching of an earlier NXDOMAIN — you added the record after a resolver already cached a "doesn't exist" answer for it. Per the DNS spec, negative answers get cached too, for a duration set by the zone's SOA minimum TTL — commonly a few hours, independent of the record's own TTL once it exists.
Diagnose by bypassing every cache and asking the authoritative server directly:
dig @ns1.example.com app.example.com
If that returns a real answer while your normal resolver still returns NXDOMAIN, it's cached negative data waiting to expire — not a configuration problem. If the authoritative server itself returns NXDOMAIN, the record genuinely doesn't exist there yet and needs to be added.
SERVFAIL — "Something Failed While I Was Trying to Answer"
$ dig broken.example.com
;; ->>HEADER<<- opcode: QUERY, status: SERVFAIL, id: 58821
;; flags: qr rd ra;
What it means: the name may well exist, but the resolver hit a failure trying to get a valid answer — this is fundamentally different from NXDOMAIN, which is a clean "it doesn't exist." SERVFAIL says "something broke while I was looking."
Common real causes:
- DNSSEC validation failure — an expired signature (RRSIG), a key rollover that didn't propagate correctly, or a DS record at the parent zone that no longer matches the child zone's keys
- All authoritative nameservers for the zone are unreachable or returning errors
- A malformed zone file on the authoritative server
Test the DNSSEC hypothesis directly — +cd (checking-disabled) tells the resolver to skip DNSSEC validation entirely:
dig +cd broken.example.com
If +cd returns a normal answer while a regular query returns SERVFAIL, DNSSEC validation is confirmed as the cause — check for an expired RRSIG or a DS/DNSKEY mismatch, which commonly happens after a registrar or DNS-provider migration that didn't carry over signing keys correctly.
If it still fails even with validation disabled, the authoritative servers themselves are the problem — check they're actually reachable and check the zone file for syntax errors on the primary.