DNS Error Messages and Response Codes (RCODEs): Complete Troubleshooting Reference

A DNS error message is a protocol response code (RCODE) or client network error string returned when a stub or recursive resolver cannot translate a hostname into a valid IP address. Authoritative nameservers and recursive resolvers set 4-bit header RCODEs (and 16-bit Extended DNS Error codes under RFC 8914) to report non-existent domains, cryptographic validation failures, or policy refusals. This reference maps every IANA DNS RCODE, Chromium browser error, and SMTP DNS failure to its root cause and diagnostic tool.

All IANA DNS Response Codes (RCODEs 0 to 10) and NODATA

The table below defines every IANA-registered response code a resolver or nameserver can return, the wire semantics, and the production failure each one usually carries:

RCODE & NameDecimal / HexGoverning RFCWire MeaningMost Common Production Cause
RCODE 0: NOERROR0 / 0x0RFC 1035 section 4.1.1Query succeededValid answer returned in the ANSWER section
Pseudo-Code: NODATA (NOERROR + 0 Answers)0 with ANCOUNT=0RFC 2308 section 2.2Name exists, requested RR type does notQuerying AAAA or TXT on a host that only has an A record, or an Empty Non-Terminal
RCODE 1: FORMERR (Format Error)1 / 0x1RFC 1035 section 4.1.1Server unable to interpret the query packetMalformed DNS header, unsupported EDNS option, or firewall packet mangling
RCODE 2: SERVFAIL (Server Failure)2 / 0x2RFC 1035 & RFC 4035Resolver failed to complete the lookupBroken DNSSEC chain (mismatched DS, expired RRSIG) or all authoritative NS timed out
RCODE 3: NXDOMAIN (Non-Existent Domain)3 / 0x3RFC 1035 & RFC 2308Queried domain name does not existTypo, deleted subdomain, expired domain (clientHold), or a negative cache hit
RCODE 4: NOTIMP (Not Implemented)4 / 0x4RFC 1035 section 4.1.1Server does not support the requested query kindSending IQUERY (obsoleted by RFC 3425) or AXFR to a recursive resolver
RCODE 5: REFUSED (Query Refused)5 / 0x5RFC 1035 section 4.1.1Server refuses to answer by policyLame delegation (NS holds no zone for the domain), ACL block, or rate limiting
RCODE 6-8: YXDOMAIN / YXRRSET / NXRRSET6, 7, 8RFC 2136Dynamic DNS update prerequisite failedDynamic nsupdate prerequisite collision
RCODE 9: NOTAUTH (Not Authoritative)9 / 0x9RFC 2136 & RFC 8945Server not authoritative for the zone, or TSIG failedBad TSIG key on a zone transfer (AXFR) or an unconfigured secondary zone
EDNS0 Extended DNS Errors (EDE, Info-Codes 0-29)OPT Code 15RFC 8914Detailed sub-reason attached to SERVFAIL / NXDOMAIN / REFUSEDEDE 6 (DNSSEC Bogus), EDE 15 (Blocked), EDE 18 (Prohibited), EDE 22 (No Reachable Authority)

The practical reading order starts with RFC 8914 Extended DNS Errors: both 1.1.1.1 and 8.8.8.8 attach EDE sub-codes to their JSON DoH responses, so a bare SERVFAIL that used to be a dead end now often arrives with a machine-readable reason (DNSSEC Bogus, Blocked, Prohibited, No Reachable Authority) that maps straight to the fix.

1. Browser, OS, and Runtime DNS Error Strings (Chromium, Windows, macOS, Node.js)

Browsers and runtimes translate the wire-level RCODEs (or the absence of any answer) into their own user-facing strings. The table below maps each string back to the RCODE and layer it actually represents:

Error StringWhere It AppearsUnderlying DNS CauseWhat It Actually Tells You
DNS_PROBE_FINISHED_NXDOMAIN Chromium / Chrome / Edge RCODE 3 (NXDOMAIN) from every resolver, or a captive-portal DNS hijack returning it The name genuinely does not resolve: check spelling, zone records, and domain expiry
net::ERR_NAME_NOT_RESOLVED (-105) Chromium network stack Resolution failed at the stub-resolver layer before any RCODE: no upstream reachable or local config broken Resolver reachability and local DNS settings, not the zone itself
"DNS server isn't responding" (Windows diagnostics) Windows network troubleshooter The configured resolver (router or ISP DNS) times out on every query Switch to a working public resolver, then retest the zone
DNS_PROBE_FINISHED_NO_INTERNET Chromium / Chrome / Edge No network path to any resolver: the DNS failure is a symptom of total connectivity loss Physical/network layer first; DNS diagnostics only after connectivity returns
DNS_PROBE_FINISHED_BAD_CONFIG Chromium / Chrome / Edge The OS resolver configuration is invalid (bad nameserver entry, broken VPN adapter) Reset the adapter DNS settings to DHCP or a valid resolver
getaddrinfo EAI_AGAIN / ENOTFOUND Node.js and libc (containers, Docker) EAI_AGAIN: resolver unreachable, retries exhausted; ENOTFOUND: resolver returned NXDOMAIN for the name EAI_AGAIN is upstream reachability; ENOTFOUND maps to the zone-level NXDOMAIN

Client-side stub errors like DNS_PROBE_FINISHED_NXDOMAIN and ERR_NAME_NOT_RESOLVED are the browser's rendering of upstream RCODE 3 and stub-resolver timeouts respectively: the fixes range from flushing the local cache to verifying that the authoritative zone still publishes the record. The 7 troubleshooting guides below cover each error string with its own recovery path:

2. Email Authentication (SPF/DMARC) and SSL/TLS DNS Error Guides

Email failures carry their own DNS-derived error surface: SPF evaluation codes, signature failures, and SMTP rejections that name a DNS cause. The TLS layer fails on DNS too, because certificates bind to whatever hostname the records actually route to. These guides decode each one:

3. Live Browser-Based DNS Error Diagnostic Tools

Every error above reduces to a question one of these tools answers in the browser: which resolvers disagree, whether the delegation chain holds, whether DNSSEC validates, and how long the failing caches persist. Run the one that matches your error string:

Read the RCODE first, confirm it with the matching tool, and the error message stops being a dead end: the code names the failing layer, and the tool shows the failing record.

Frequently Asked Questions

What is the difference between NXDOMAIN and NODATA? +

NXDOMAIN (RCODE 3) means the queried domain name itself does not exist in the DNS namespace, while NODATA (NOERROR with zero answers, RFC 2308 section 2.2) means the name exists but carries no record of the requested type. A browser NXDOMAIN error follows the first, and a missing AAAA on an IPv4-only host is the classic second.

What causes DNS RCODE 2 (SERVFAIL)? +

SERVFAIL means the resolver failed to complete the lookup, and the two dominant production causes are a broken DNSSEC chain (an orphaned or mismatched DS record at the parent, or expired RRSIG signatures) and every authoritative nameserver for the zone timing out or refusing.

What does EAI_AGAIN mean in Node.js and Docker? +

EAI_AGAIN is the libc getaddrinfo retry-exhausted code: the resolver could not reach any upstream DNS server within the timeout, so the failure is network or resolver reachability rather than a negative answer. In Docker it usually points at a container with a broken or missing resolv.conf upstream.

Does RCODE 5 (REFUSED) mean my domain is blocked? +

No, REFUSED is a server policy answer, not a block of your domain: the queried server refuses to answer for that zone, which most often means a lame delegation (the nameserver holds no zone for the domain), an ACL restriction, or rate limiting. Query a different resolver to separate policy refusals from real DNS failures.

What are RFC 8914 Extended DNS Errors (EDE)? +

Extended DNS Errors attach a 16-bit information code to otherwise generic responses, so a bare SERVFAIL can carry a specific reason such as EDE 6 (DNSSEC Bogus), EDE 15 (Blocked), EDE 18 (Prohibited), or EDE 22 (No Reachable Authority). Major public resolvers now surface these codes in their JSON DoH responses and dashboards.