DNS

DNS NXDOMAIN (RCODE 3) vs NOERROR (RCODE 0)

DNS NXDOMAIN and NOERROR are the two most common DNS responses, representing opposite outcomes. NXDOMAIN means the queried domain name does not exist at all, while NOERROR means the domain exists even if the specific record type was not found (empty answer with NOERROR).

Description

Non-Existent Domain. The queried domain name does not exist in the DNS namespace.

When You See It

The domain has no DNS records at all — either it was never registered, has expired, or you have a typo in the hostname.

How to Fix

Double-check the domain spelling. If you own the domain, verify your registrar settings and ensure the nameservers are correctly delegated.

Description

No error condition. The query completed successfully and the response contains the requested data.

When You See It

This is the normal, successful response to any DNS query — the name was resolved and the answer section contains the requested records.

How to Fix

No fix needed. RCODE 0 means the DNS lookup succeeded as expected.

Key Differences

1.

NXDOMAIN means the domain name itself does not exist — no records of any type exist for this name.

2.

NOERROR means the name exists — the query succeeded, though the answer section may be empty if the specific record type is absent.

3.

NOERROR with an empty answer means the domain exists but has no records of the requested type (e.g., no AAAA record).

4.

NXDOMAIN is cached per the SOA negative TTL; NOERROR responses are cached per the record's TTL.

5.

NXDOMAIN triggers 'DNS_PROBE_FINISHED_NXDOMAIN' in browsers; NOERROR with empty answer may trigger a different code path.

When to Use Which

NXDOMAIN is generated by authoritative nameservers when a queried name has no records of any type. NOERROR is the standard success response. When debugging DNS issues, remember that NOERROR with an empty answer is different from NXDOMAIN — the domain exists, but the specific record type (A, AAAA, MX, etc.) is not configured. Use `dig example.com ANY` to check what records exist.

Learn More