DNS Cookies and RFC 7873: sixteen bytes that ended an argument
The most consequential security upgrade the Domain Name System has received in the past decade involves no certificate authority, no key ceremony, no trust anchor, no rollover schedule, no accreditation committee and no vote. It is a DNS Cookie — not the kind that follows you around the web, the kind specified in RFC 7873: eight bytes from the client, eight to thirty-two back from the server, and one job, which is to prove that whoever sent a DNS query can also receive a DNS reply at the address it claims.
That is a modest claim, and it is the claim that matters. Most of the DNS abuse a protocol can cheaply fix comes from an off-path attacker: someone who can forge a source address on a packet but cannot watch the reply arrive at that address. RFC 7873 makes the reply arrive carrying a value the forger has never seen. The entire defence is that sentence, and it costs sixteen bytes.
What RFC 7873 actually specifies
Published in May 2016 as a Proposed Standard, RFC 7873 defines a DNS Cookie as a lightweight DNS transaction security mechanism: limited protection for servers and clients against denial-of-service, amplification and cache-poisoning attacks mounted by off-path attackers. The wire format is almost insultingly small. A Client Cookie is eight octets — a version byte, three reserved bytes, a timestamp. A Server Cookie is eight to thirty-two octets, computed with SipHash-2-4 over the client cookie, the client's address, the server's address and a secret the server keeps to itself.
No public key. No certificate. No PKI. No configuration file, no registry of participants, no fee, no compliance report. A server that wants cookies generates a secret and starts answering. A resolver that wants cookies starts sending them. Neither has to ask the other, and neither has to ask anyone else.
Why the off-path attacker loses
The off-path attacker's entire advantage is blindness. It can put any source address it likes on a packet, but it cannot watch the reply arrive at that address, so it cannot learn what the legitimate party learned. A cookie converts that blindness into a cost. To forge a convincing query the attacker must produce a server cookie it has never seen, derived from a secret it does not hold, over an address it does not own. An eight-byte client cookie plus a keyed hash is not a wall. It is a filter — and a filter is all you need when the alternative is guessing.
The same property does something unglamorous and valuable on the server side: it caps amplification. A server that requires a valid cookie before shipping a large answer cannot be turned into a traffic amplifier by a spoofed one-packet query, because the query has to survive a round trip first.
NAT, anycast and the reason DNS Cookies spread
Two deployment facts explain why DNS Cookies went from specification to default in a way most DNS security work never managed.
The first is that it tolerates the messy Internet. NAT and NAT-PT do not break it, because the server computes over the client address as the server sees it. Nothing needs to be globally agreed, because nothing is globally shared.
The second is that it can be deployed from one side. An authoritative server can turn cookies on without persuading a single resolver. A resolver can start sending them without persuading a single server. Server-only deployment already delivers most of the benefit, which means the first mover is not the loser — a rare and decisive property in protocol design.
Anycast was the one genuine snag. RFC 7873's server cookie is opaque, and nodes in an anycast set that do not share state cannot validate each other's work. RFC 9018, published in 2021, closed that gap with a deterministic computation over a shared secret, so any node can verify any other node's cookie without a conversation. Five years to patch the awkward corner, and no governance crisis in between.
The governance lesson hiding in a hash
Here is the part worth pinning to a wall. RFC 7873 is a near-perfect specimen of what Lu Heng calls a minimum initial specification in his Note on minimum specification, local decision and voluntary adoption: deterministic, locally verifiable, and containing nothing that requires a continuing institution to adjudicate. There is no cookie authority. There is no cookie policy development process. There is no cookie membership fee, no cookie accreditation, no cookie ombudsman. There is a hash, a secret, and a rule that fits on one page.
Adoption is voluntary and non-adoption is not a defect. A resolver that never sends a cookie still resolves names. A server that never sets one still answers queries. As Lu Heng puts it, "Non-Adoption does not create invalid status," and "The common layer is not an institution." The cookie layer demonstrates both claims at production scale, across a large and growing share of the world's authoritative servers and resolvers, without anyone having to be persuaded that the arrangement was legitimate.
Compare the deployment economics of DNSSEC, which solves a different and harder problem — authenticity of the data itself — and therefore needs a root of trust, a chain, key ceremonies, rollover schedules and a decade of patient institutional work. DNSSEC is architecture. DNS Cookies are a handshake. The handshake shipped first, everywhere, quietly, and nobody had to be convinced.
What a DNS Cookie does not prove
The mechanism is honest about its own limits, which is more than most governance mechanisms manage.
A cookie proves reachability, not identity. It says the sender can receive a reply at the address it claims. It does not say who the sender is, what it is entitled to, or whether it should be trusted with anything else. An on-path attacker who can watch the traffic sees the cookie and can replay it; cookies raise the cost of blind forgery and leave a determined eavesdropper exactly where they were. They provide no confidentiality. They are not a substitute for DNSSEC, for TLS, or for knowing your counterparty.
That is the point. The claim and the proof match. A sixteen-byte token that says "I am reachable here" and then proves it is worth more than a stack of assertions that say "we are authoritative" and prove nothing.
Delegation holds the power. Evidence does the work.
The DNS keeps its structural power in the delegation layer: the parent zone decides who is authoritative for the child, and that referral is the closest thing the naming system has to a title deed. Yet the most effective security improvement to the delegated space in twenty years required nothing from that layer at all. It lives at the edges, in the resolvers and authoritative servers that actually answer queries, and it works because each of them can verify it locally without asking permission from anyone above.
That is the pattern worth remembering. Power sits in the hierarchy. Evidence sits at the edge. The edge is cheaper, faster, and — this is the part that stings — more trusted, because it can be checked.
Sixteen bytes, no keys, no certificates, no permission, and no institution to petition afterwards. The cheapest defence DNS ever got is also the one that never needed to win an argument. It just worked, and the argument quietly stopped mattering.
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.






