Every protocol eventually meets a message it was never built to read. Most of them flinch: they drop it, mangle it, or quietly rewrite it into something they recognise. In September 2003, the Domain Name System was handed a rule that told it to do none of those things — to pick the parcel up, carry it across the network, and resist every urge to look inside.

That rule is RFC 3597, “Handling of Unknown DNS Resource Record (RR) Types,” a Standards Track document by Andreas Gustafsson. It is short, unglamorous, and one of the most consequential pieces of plumbing the Internet owns: it is the reason DNS can still grow.

Its opening is a confession. “Extending the Domain Name System (DNS) with new Resource Record (RR) types currently requires changes to name server software.” Its purpose is the cure: the document “specifies the changes necessary to allow future DNS implementations to handle new RR types transparently.”

Transparently is the whole trick. Not intelligently. Not helpfully. Transparently.

Before RFC 3597, comprehension was a veto

DNS is, at bottom, a registry of record types. A record is a name, a type number, a class, a time-to-live and a blob of data. Nothing in that structure requires the server in the middle to know what the blob means. The wire format already had a type field and a length field; a record of a type nobody had invented yet was, structurally, just bytes with a label attached.

The software did not see it that way. Every new record type — and the late 1990s produced them steadily, many of them for DNSSEC — meant that authoritative servers, recursive resolvers, zone-file parsers and diagnostic tools all had to be taught the new type before it could be served. A record type was only as deployable as the slowest box on the path.

That is a hidden gatekeeper, and it is the worst kind: not a committee that can be argued with, but an installed base that can only be upgraded. The middle of the network held an effective veto over the vocabulary of the protocol, and it never had to explain itself.

The RFC 3597 rule: carry it, do not read it

RFC 3597 removes that veto with a single obligation. Name servers and resolvers “MUST handle RRs of unknown type transparently,” treating the data “as unstructured binary data, storing and transmitting it without change.”

The consequence is quiet and enormous. Two endpoints that do understand a new record type can now talk to each other through a middle that does not. The upgrade path stops running through every box on the route and starts running through the two parties who actually care.

The document goes further than politeness to strangers. It applies the same discipline to types the server does understand: their data must be preserved exactly too, so that comparisons and signatures do not depend on which implementation happened to handle the message along the way. A server is not permitted to be helpful.

The bill: DNS name compression had to be sacrificed

Domain name compression is the trick that keeps DNS packets small. A repeated name is replaced by a pointer to an earlier copy — two bytes instead of however many the name would take. The pointers are offsets into one particular message, and they mean nothing outside it.

Now put an ignorant courier in the middle. It copies a record’s data into a new message without understanding it. The pointer inside that data still points at an offset — but the offset is now measured in a different packet, and it lands on whatever happens to sit there. The name arrives corrupted, and the corruption is invisible to the copyist, which is the worst property a corruption can have.

So the specification forbids the optimisation outright: servers “MUST NOT compress domain names embedded in the RDATA of types that are class-specific or not well-known.” New record types are permanently a little fatter than they need to be, because the old trick is denied to them. That is the price of extensibility, paid in bytes, forever.

Then the document does something rare and useful: it defines a word an earlier specification had used without defining. “Well-known” means the record types set down in RFC 1035 — the 1987 document that is still, in places, the constitution of DNS. Everything invented since is, by construction, not well-known, and therefore not compressible.

Writing down a record type nobody has defined yet

There is a second half to the problem that gets less attention: zone files. If a server must carry a type it does not understand, a human has to be able to type that type into a text file first.

RFC 3597 supplies the syntax. An unknown record’s data is written as a backslash-hash, a byte count and a hex string — the raw contents of the record, spelled out. It is ugly, and it is exactly right: a format that can express anything, including things that do not exist yet, without needing a parser update in order to express them.

That is the wire rule applied one layer up. The text format stops being a list of known types and becomes a container for bytes.

Case, canonical form, and the discipline of not tidying up

Two smaller rules close the loopholes. Case inside domain names must be preserved when a record is copied, because a name compared byte-for-byte later will not forgive a server that decided to normalise it. And the canonical form used for signing is defined separately, so that a server carrying bytes it cannot read still behaves predictably when somebody else signs them.

Both rules point the same direction: the courier does not get an opinion. Not about meaning, not about spelling, not about formatting. The only thing it is allowed to know is how many bytes it is holding.

Why RFC 3597 is the anti-lock-in document

Read RFC 3597 as software lifecycle history and it says something uncomfortable about the industry’s favourite subject. Lock-in is usually described as a commercial condition — a vendor, a contract, a switching cost. RFC 3597 describes a technical one, and it is more durable: a protocol whose middle layer must understand every message it forwards has handed its future to its least-updated component.

The installed base becomes the owner. Every extension is a negotiation with the slowest deployment, and the negotiation is usually lost, because the cost of upgrading the middle is paid by people who gain nothing from the new type.

RFC 3597 inverts that. The middle stops being an owner and becomes a courier. The protocol regains the ability to add vocabulary without asking permission from equipment that has no stake in the sentence. Lu Heng makes the same point about Internet coordination in his Note on Minimum Initial Specification, Localized Future Decision and Voluntary Adoption: “A system that cannot be forked, locally verified, or selectively accepted without destroying valid operation has probably hidden governance power inside its recordkeeping function.” RFC 3597 is that sentence applied to DNS, two decades early.

Not every protocol has learned it. IPv6 extension headers have spent two decades being dropped by middleboxes that did not recognise them — the same failure at a different layer, with a far larger bill. HTTP got there earlier and more thoroughly: proxies are required to forward unrecognised header fields rather than judge them. Where the discipline holds, protocols age well. Where it does not, they ossify in place, and the ossification is always blamed on the new idea rather than on the middle that refused to carry it.

The permanent cost of staying extensible

There is no free version of this. RFC 3597 buys a registry that can grow while the network stands still, and it pays for that with bytes that will never be saved, in records that will never be compressed, in a text format that looks like line noise.

The systems that last are the ones that left a corner of themselves deliberately unimproved. A protocol that optimises every part of itself optimises away its own room to grow — and the room is always cheapest to reserve before anyone knows what it is for.

DNS reserved it in 2003, in a document most of its users will never read, and then did the harder thing: it kept its hands off. The record arrived intact. Nobody looked inside. That is not a lack of curiosity. It is the whole design.