How do you troubleshoot DNS errors?
When a browser says it cannot find a site because of a “DNS error”, it is describing a symptom. The name may be mistyped, an authoritative server may be unreachable, a resolver may be holding an older answer, or DNSSEC validation may have failed. Work out which stage is failing before you change any configuration.
What the response code is telling you
NXDOMAIN means the name does not exist, according to the DNS server that answered. NODATA is the common term for a name that exists but has no record of the type you asked for, such as a name with an A record and no AAAA. SERVFAIL means the server could not complete the query. It is not evidence that the name is absent. A timeout means no answer arrived in time, and it calls for a reachability check.
A response may carry extra detail. RFC 8914 defines Extended DNS Errors, which can explain some SERVFAIL cases, a DNSSEC failure for instance, without changing the original response code. Not every tool displays them.
Tracing the query from the authoritative server outward
Check the exact name and record type first. A typo or a query for the wrong type explains many “errors”. Then identify the domain’s authoritative nameservers and query one of them directly. If it times out or reports an error, the problem lies in delegation, reachability or the zone configuration.
If the authoritative answer is correct and a recursive resolver says something else, the difference usually comes from that resolver’s cache or from which resolver your device has selected. The DNS configuration checker helps you compare the two. To test from outside your own network whether a particular DNS server answers, and how quickly, enter its IP address in the 2ip DNS response check.
Errors that look like DNS but come later
Compare A and AAAA records: a site can work over IPv4 and fail over IPv6. For mail, check MX and then the address records of the mail host it names. An HTTP 404 page or a TLS certificate warning appears after name resolution has succeeded and needs a separate investigation. Do not switch DNS servers blindly because a browser displayed a broad error message.
Is it this device, this resolver, or everyone?
Try the same query through another recursive resolver and from another device. A failure on only one device points to its connection, its system resolver, the browser’s DNS over HTTPS (DoH) setting or a local cache. If different resolvers consistently return NXDOMAIN, confirm that the domain is registered and delegated and that the record exists in the active zone.
Why a record you just created still returns “not found”
Negative answers are cached too. If a resolver asked for the name before the record existed, it may keep answering NXDOMAIN or NODATA for a while after you create it. RFC 2308 describes this negative caching. Note the relevant TTL and the time of your change, and wait it out. Editing a correct zone again and again does not make the cached answer expire sooner.
What to send to support about a DNS error
Before you contact support, write down the full name, the record type, the time of the query, the resolver’s address and the response code. Include the answers from one authoritative server and one recursive server. Leave out passwords and tokens. With this evidence, support can tell incorrect DNS data from a network failure or an application problem and go straight to the repair.