SecDNS

EDNS (Extension Mechanisms for DNS)

EDNS is the framework that extends DNS beyond its original 512-byte limit, enabling larger responses, DNSSEC, and modern options like ECS, defined by RFC 6891.

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.

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.

Frequently asked questions

Why does EDNS matter?

DNSSEC, DoH, and modern TXT/HTTPS records often produce responses larger than 512 bytes. Without EDNS those responses force a costly UDP-to-TCP fallback or get truncated entirely.

What is the recommended EDNS buffer size today?

1232 bytes is the modern default. It keeps responses under the minimum IPv6 MTU and avoids fragmentation, while still leaving room for typical DNSSEC payloads.