Summary

  • RFC 6891, April 2013, defines EDNS(0) — the mechanism that gives DNS the room the protocol had run out of.
  • The problem is stated numerically: the header's second word holds a 4-bit opcode and a 4-bit response code, and "most of the RCODE values are now in use".
  • The solution is an OPT pseudo-record whose CLASS field carries "requestor's UDP payload size" and whose TTL carries "extended RCODE and flags".

A header with no room left

DNS messages begin with a fixed header whose flag space was budgeted by optimists: a few bits reserved for future use, most of them later spent, and a 4-bit response code field that ran out of values long before the protocol ran out of problems.

Adding a capability therefore meant choosing between two bad options. Invent a new version of DNS and wait for the entire Internet to upgrade at once — which is another way of saying wait forever — or find a way to add fields that old implementations would not choke on.

The trick: put it where nobody has to read it

EDNS puts its information in an extra record attached to the message, filed in the additional section where extra data already goes. A server that has never heard of EDNS ignores it. That is not a side effect of the design. That is the design.

Extension as an optional attachment rather than a negotiation handshake: the cost of ignorance is silence instead of failure, and deployment can proceed one resolver at a time.

Version zero, and the meaning of silence

The OPT record carries a version, and full conformance with this specification is version zero. Requestors are encouraged to use the lowest version that expresses the transaction, which keeps the compatibility surface as small as the job allows.

Absence is meaningful too. No OPT means the sender knows nothing about extensions, so a responder must fall back to the smallest capable behaviour. The protocol reads a missing record as a statement about the sender, not as an error.

Raising the ceiling, and the bill that follows

The record's class field lets a requester announce how much UDP payload it can reassemble. That field exists because DNSSEC keys and large text records made the old 512-byte answer limit obsolete.

Bigger UDP answers avoid falling back to TCP, which is the point. They also create the fragmentation problems DNS operators have been arguing about ever since, because a payload size describes the path, not the server that advertises it.

Borrowed fields, extended codes

The TTL field, meaningless for a pseudo-record, carries the upper bits of an extended response code plus flag space — including the bit DNSSEC validation depends on.

Reusing fields whose original meaning does not apply is efficient and slightly unnerving. It is why EDNS is easy to implement and hard to reason about a decade later: the wire format rewards whoever reads the specification once and punishes whoever has to debug it at three in the morning.

The lesson: design for the party that ignores you

Backward-compatible extension means old parties silently opt out, so the extension has to be designed for their ignorance as carefully as for its own function. The ignored case is not the edge case. It is the case that will run for a decade.

Which gives the general rule: when a header is full, do not invent a version. Attach a record that can be ignored, then spend the rest of the specification on what happens when it is.

The pattern travels well beyond DNS. A common layer kept thin, with change arriving only when someone chooses to run it, is how coordination systems survive their own success. The alternative — a version bump everyone must accept before anything works — assumes the world upgrades on command. The world does not.