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).

설명

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

이 코드를 보게 되는 경우

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

해결 방법

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

설명

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

이 코드를 보게 되는 경우

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

해결 방법

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

주요 차이점

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.

언제 어떤 것을 사용할지

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.

더 알아보기