Troubleshooting

NXDOMAIN vs NODATA in DNS

NXDOMAIN means the queried name does not exist according to the response. NODATA is a successful response without the requested record set.

Updated

Read response status

A NOERROR response with no AAAA answer can occur when a name has an A record but no AAAA. NXDOMAIN conveys a different claim about the existence of the name.

Negative caching

Resolvers may cache negative answers according to the relevant SOA information and their policy. Immediately adding a missing record does not necessarily update every cached answer.

Check the exact query

Compare the same fully qualified name with A and AAAA queries. Aliases and DNSSEC can complicate interpretation. An empty answer section alone does not justify concluding NXDOMAIN.

Compare record types

A name can have an A record and no AAAA record. An AAAA query may therefore produce NOERROR with an empty answer rather than NXDOMAIN. Always retain the response code and relevant authority information; an empty result by itself does not establish that the name does not exist.

Step-by-step example

Use sample DNS responses to understand the difference between a missing name and a missing record type.

  1. 01

    Read the requested type

    A name can have an A record but no AAAA record. Ask for each separately; one answer cannot determine the other.

    A
    192.0.2.10
    AAAA
    No requested data
    Illustration · example, not a live result
  2. 02

    Read the response code

    In an illustrative response, NOERROR with no requested AAAA data means the AAAA lookup did not yield that type. NXDOMAIN indicates the name does not exist in the resolver's view; aliases and delegations can add nuance.

    NOERROR
    Check answer data
    NXDOMAIN
    Name error
    Illustration · example, not a live result
  3. 03

    Verify changes

    If you administer the domain, compare the authoritative configuration and a recursive answer, allow for negative caching, and check that the hostname spelling is correct. Do not change unrelated records merely because a record type is absent.

    Authoritative
    Configured records
    Recursive
    Cached observation
    Illustration · example, not a live result

Check your understanding

Do not interpret the absence of AAAA as a failure of IPv4 or as proof of a broken website.

Try this tool →

Try this

Compare an A and AAAA query for a domain you administer and record the response codes, not just the addresses.

DNS record lookup →

Technical references