EDNS (Extension Mechanisms for DNS)
EDNS is the extension framework that allows DNS messages to exceed the original 512-byte UDP limit and to carry option records used by features like DNSSEC, cookies, padding, and EDNS Client Subnet. It is defined by RFC 6891.
In plain English
The original DNS protocol from 1987 was designed when networks were small and slow, so it capped UDP responses at 512 bytes. EDNS is the upgrade that lets DNS carry the modern responses we need — long DNSSEC signatures, large TXT records, HTTPS RRs — without breaking compatibility.
How it works
EDNS, introduced by RFC 2671 and superseded by RFC 6891, repurposes the unused upper bits of the DNS header by adding a pseudo-RR of type OPT to the additional section. The OPT record advertises the maximum UDP payload size the sender can handle (typically 1232, 4096, or higher) and carries a list of EDNS Options — tagged key-value entries such as DNS Cookies (RFC 7873), EDNS Client Subnet (RFC 7871), Padding (RFC 7830), and Chain Query Requests (RFC 7901). If a resolver lacks EDNS support, the OPT is ignored and the responder falls back to plain DNS. The 1232-byte default was chosen to avoid IPv6 fragmentation; responses beyond that are truncated with the TC bit set, prompting a TCP retry. EDNS is mandatory for DNSSEC, so every modern recursive resolver speaks it.
Related terms
- DNS — the protocol EDNS extends
- DNSSEC — requires EDNS for large signed responses
- DoH — works seamlessly with large EDNS responses
- Recursive DNS — where EDNS is negotiated
- Authoritative DNS — must respect the client's EDNS buffer size
- QNAME minimisation — sibling privacy improvement
SecDNS perspective
SecDNS resolvers negotiate EDNS with a conservative 1232-byte buffer to avoid fragmentation, strip Client-Subnet to protect user privacy, and pad queries to constant length on encrypted transports.