NXDOMAIN, SERVFAIL and REFUSED
NXDOMAIN, SERVFAIL and REFUSED. A practical guide for network diagnosis and careful interpretation. One technical signal does not describe the whole path, so each connection layer should be checked independently and in a reproducible order.
How the DNS query path works
NXDOMAIN, SERVFAIL and REFUSED should be read along the stub resolver → recursive resolver → delegation → authoritative nameserver path. A recursive resolver can answer from cache, so a user response is not necessarily fetched directly from the authoritative server. TTL, record type and response code explain where the result came from and how long it can remain usable.
How to troubleshoot the answer
Check the name and query type first, then the authoritative answer, then the chosen recursive resolver. NXDOMAIN, SERVFAIL, REFUSED and timeout represent different conditions. After a DNS change, compare authoritative data with several resolvers; clearing a local cache helps only when the stale answer is actually local.
Concrete examples and values
Use these values as anchors when reading documentation or test output: NXDOMAIN; SERVFAIL; REFUSED; timeout; authoritative vs resolver failure.
NXDOMAIN means the queried name does not exist in the DNS view that answered; SERVFAIL means resolution failed to produce a usable answer; REFUSED means the server declined the operation. A timeout is different again because no valid DNS response arrived within the client’s waiting period.
Common causes and mistakes
A common mistake is to treat one successful test as proof that the whole path is healthy. A reachable IP address does not prove DNS works, an open port does not validate the application protocol, and a fast speed test does not rule out latency, packet loss, or Wi-Fi contention. NAT, CGNAT, firewalls, CDNs, Anycast, and caches can also change what an observer sees and must be considered according to the question.
What the result does not prove
A technical result has limits. It normally cannot establish a person’s identity, the owner of a device, or the single root cause of an outage without additional evidence. IP geolocation is approximate, registration data can be redacted, and Internet routes can change. Security should not be reduced to one flag, address, or status value. A conclusion should match the specific property that was actually measured.
A reproducible troubleshooting sequence
Begin with a reproducible symptom, then verify local configuration, addressing, and DNS. Continue with routing, ports, and the application protocol. Make one change, repeat the measurement, and compare the outcome. This sequence reduces false conclusions and produces useful evidence for an administrator or Internet provider. After fixing the problem, repeat the original test to confirm that the observed symptom, rather than an unrelated condition, actually changed.
