Skip to main content

DNS Response Codes

DNS response codes (RCODEs) indicate the status of a DNS query. The 4-bit RCODE field in the DNS header carries codes 0–15. Extended RCODEs (16–65535) are carried in EDNS0 OPT records. Source: IANA DNS Parameters registry.

Core RCODEs (0–11)

Carried in the 4-bit RCODE field of the DNS message header. Defined in RFC 1035 and extensions (RFC 2136, RFC 8490).

Extended RCODEs (16+)

Carried in the EDNS0 OPT record (RFC 6891). Used for TSIG authentication errors, TKEY negotiation, and DNS Cookies.