Every DNS message starts with the same twelve bytes. They were laid out when the network was small and polite, and every bit of them is spoken for: an ID, a few flags, four counters for the sections that follow. There is no spare byte. There is no field labelled “anything else you would like to tell us.”
That is the problem RFC 6891 solves, and it solves it with one of the more elegant hacks in the Internet’s plumbing: if the header cannot grow, grow somewhere else. EDNS(0) bolts a sidecar onto every query — a single pseudo-record called OPT — and inside it puts everything the header never had room for: how large a reply the asker can accept, a wider error code, a version number, and a bag of options that later generations could fill with whatever they needed.
The trade is permanent and small. Every query pays a few bytes of overhead so that no future idea requires a new protocol. The bill is invisible, which is exactly why almost nobody audits it.
Why DNS needed a side channel: the 512-byte ceiling
RFC 1035 capped UDP DNS messages at 512 bytes. Anything larger came back truncated, with the TC bit set, and the resolver retried over TCP. TCP works. TCP is also a handshake, a state table and a socket — real costs for a root server answering millions of queries a second.
Then DNSSEC arrived and made the ceiling unbearable. Signatures are large. A signed answer routinely does not fit in half a kilobyte, and “just use TCP” stops being advice and starts being a tax on every validating resolver on the planet.
The first attempt was RFC 2671, published in August 1999 — Paul Vixie’s EDNS0. It worked well enough to be deployed and badly enough to be revised. RFC 6891, published in October 2013 and obsoleting 2671, is the version the world actually runs.
What RFC 6891 puts on the wire: the OPT pseudo-record
OPT is a pseudo-record: type 41, owner name the root, living in the additional section. It is not zone data. It is never cached as an RRset, never signed as one, never delegated. It is a note pinned to the message about the message.
That distinction matters more than it sounds. OPT creates no delegation, asserts no authority, and changes nothing about what a name means. A middlebox that strips it has damaged a conversation, not the namespace.
The clever part is that RFC 6891 did not invent new fields. It reused three that already existed, with meanings that apply only inside an OPT record:
- CLASS stops being a class and becomes the requestor’s UDP payload size in bytes — the “how much can you take” number.
- TTL stops being a time and becomes a 32-bit packing crate: 8 bits of extended RCODE, 8 bits of EDNS version, and 16 bits of flags, the top one being DO, the DNSSEC OK bit.
- RDATA becomes the option space: a sequence of code-length-data triples, extensible forever, defined by whoever writes the next RFC.
Stack the header’s 4-bit RCODE on top of OPT’s 8 and you get 12 bits — 4,096 error codes instead of 16. That is the difference between “it failed” and “it failed because the DNSSEC chain was bogus, the zone was lame, or the operator blocked it on purpose.”
The tax arrives: middleboxes, fragmentation and DNS Flag Day
A specification can describe a sidecar. It cannot describe what a decade of firewalls, load balancers and home routers will do to it.
Some middleboxes dropped OPT records they did not recognise. Some servers answered FORMERR to a query they should have ignored politely. Some authoritative servers fell over on the DO bit. And the larger payloads EDNS permitted created a fresh problem: big UDP responses get fragmented, and a fragmented response with one lost fragment is not a slow answer — it is no answer at all.
So the industry did something the IETF cannot do by publishing: it set a deadline. DNS Flag Day, 1 February 2019, told the world that the major resolver and DNS software vendors would stop papering over non-EDNS-compliant servers. A second flag day on 1 October 2020 went after fragmentation and settled on a 1232-byte EDNS buffer — 1,280 bytes of IPv6 minimum MTU, minus 40 bytes of IPv6 header, minus 8 bytes of UDP header. Arithmetic, not opinion.
What actually moved into the option space
An extension mechanism is judged by what it attracted. EDNS(0) attracted almost everything:
- NSID (RFC 5001) — let a server name itself, so “which instance answered me” stops being a guess.
- DNS Cookies (RFC 7873) — a lightweight off-path spoofing defence that costs one round trip and no cryptography budget.
- EDNS Client Subnet (RFC 7871) — the controversial one: a resolver tells an authoritative server roughly where the client is, so a CDN can hand back a nearby address. It bought better routing and started a decade of argument about what a resolver is allowed to leak.
- TCP Keepalive (RFC 7828) and EDNS Padding (RFC 7830) — the second exists to stop encrypted DNS leaking information through packet size.
- Extended DNS Errors (RFC 8914) — the payoff for those 12 bits: resolvers can finally say why a name failed instead of returning a shrug.
Six mechanisms, one field, zero changes to the header. That is what a good extension point buys.
Publication is not adoption
RFC 6891 was published in October 2013. The world needed a flag day in 2019 to implement what the document had described. That gap is not a failure of the RFC; it is the normal physics of protocol work. A specification is a proposal about the future, and the future only arrives when somebody pays to install it.
David Clark’s formulation, recorded in RFC 7282, is the right lens: “We reject: kings, presidents and voting. We believe in: rough consensus and running code.” EDNS(0) is the running-code half, and running code arrives with an installation bill that no consensus meeting ever pays.
Why the sidecar is now load-bearing
Remove the OPT record tomorrow and DNS does not stop resolving names. It stops explaining itself. It stops signalling how much it can carry, stops reporting why it failed, stops padding away its own fingerprints, and stops having anywhere to put the next idea.
The header is still twelve bytes. It will still be twelve bytes in 2050. Everything the protocol needed to become, it became somewhere else — in a sidecar bolted to the back of every query, paid for a few bytes at a time, by everyone, forever.
Member Briefing
Read the full trend briefing
Members read the full briefing with the source notes behind every finding.
Strategic Circle
A daily briefing in your language, built from changes we have verified.
Join for USD 20/monthCancel anytime.
Members also get the full research library, a daily briefing on the networks they follow and the private forum.






