Somewhere tonight a secondary name server will refuse a zone transfer and blame the key. The key will be fine. The clock will be four minutes off.

That is TSIG in one line: a shared secret and a timestamp, holding together the two conversations that decide what is actually inside a DNS zone — the dynamic update that changes it and the transfer that copies it to everyone else.

TSIG — Secret Key Transaction Authentication for DNS — is the point-to-point authentication the domain name system has leaned on for a quarter of a century. RFC 8945, published in November 2020, defines it as "transaction-level authentication using shared secrets and one-way hashing," obsoletes RFC 2845 and RFC 4635, and then does something rare in a standards document: it states exactly where the mechanism stops working. Keys must be guarded like private keys. Key management grows quadratically with the number of peers. The protocol is, in its own words, "unsuitable for general server-to-server authentication."

It survived anyway. Not despite that paragraph — because of it.

The gap RFC 2136 left open

In April 1997, RFC 2136 gave DNS something it had never had: a way to change a zone without editing a file by hand. Dynamic update said what may change — add this record, delete that one, apply only if this prerequisite holds. It did not say who was allowed to ask.

That silence was not an oversight. The update memo left access control to other documents, and the document most deployments reached for arrived three years later with a deliberately modest answer.

Two parties, one secret, no hierarchy

TSIG's design is the smallest possible reply to the question. Two parties share a secret. Each hashes the message with it. Each checks that the other's hash is right. No certificates, no third parties, no trust anchor, no revocation list — just two configurations that have to match.

If the hash matches, the request came from someone who knows the secret, and in a two-party relationship knowing the secret is the same as knowing the sender. That is the whole trick, and it is why TSIG needs no infrastructure to operate and no authority to appeal to.

Time is part of the signature

A shared secret on its own would let an old signed message be replayed forever. TSIG therefore signs a timestamp along with the message and carries a Fudge field — "an unsigned 16-bit integer specifying the allowed time difference in seconds permitted in the Time Signed field."

Those two fields are the TSIG Timers, and they are hashed in wire format, so a captured message stops being valid once the window closes. The design is compact, and it has one operational consequence every DNS operator learns the hard way: clocks must agree. A server whose time drifts outside the fudge window rejects signatures it should have accepted, and the failure surfaces as a key problem rather than a clock problem.

Which is why the first question in a TSIG incident is never about the secret. It is about NTP.

What DNSSEC does not cover

TSIG outlived the arrival of DNSSEC for a reason stated in one sentence of the memo. A zone transfer carries "the whole zone transfer including any glue records sent," and "the protocol described by DNSSEC does not protect glue records and unsigned records."

The two mechanisms answer different questions. DNSSEC lets any resolver verify that a record it received is the record the zone signed — a statement to the world, checkable by strangers. TSIG lets the primary verify that the secondary asking for a transfer is the secondary it authorised, and lets both sides sign the entire stream they exchange — a statement between two parties who already know each other.

One is for the world. The other is for a relationship. Confusing the two is how people conclude that DNSSEC replaced TSIG. It never did.

The honest paragraph about scaling

Section 1.1 contains the sentence most specifications would have softened. Keys "must be protected in a manner similar to private keys, lest a third party masquerade as one of the intended parties." And then:

"The proposal is unsuitable for general server-to-server authentication and for servers that speak with many other servers, since key management would become unwieldy with the number of shared keys going up quadratically. But it is suitable for many resolvers on hosts that only talk to a few recursive servers."

That is a mechanism declaring its own boundary in public. Every pair of parties needs its own secret, so a hundred servers that all talk to each other need 4,950 of them; a host with two upstream resolvers needs two. The arithmetic picks the use case, and the document says so instead of implying universality.

Read that passage again and notice what it is not doing. It is not promising to grow. It is not sketching a roadmap. It is telling you the shape of the problem it fits, and trusting you to notice when your problem stops fitting.

Distribution is somebody else's problem

The abstract ends with the most practical line in the document: "No recommendation is made here for distributing the shared secrets; it is expected that a network administrator will statically configure name servers and clients using some out-of-band mechanism."

That sentence is where TSIG's reputation comes from, good and bad. Statically configured secrets are simple to reason about and miserable to rotate. They leak through backups, configuration templates and ticketing systems. They cannot be discovered, only copied. And because the protocol refuses to solve distribution, every operator solves it privately, badly, and twice.

The refusal is also honest. A protocol that specified key distribution would have needed an authority to run it — and the entire point of TSIG was that there is no authority to run.

Twenty-three years, same paragraph

Standards documents hide their people, so it is worth pulling the names out of the headers. RFC 2136 was written by Paul Vixie, Susan Thomson, Yakov Rekhter and Jim Bound. Three years later Vixie returned with Olafur Gudmundsson, Donald Eastlake 3rd and Brian Wellington to write RFC 2845, the first TSIG specification.

Eastlake then stayed. He wrote RFC 4635 in 2006 to standardise the HMAC-SHA family of TSIG algorithm identifiers, and in November 2020 he and Gudmundsson published RFC 8945, which obsoleted both earlier documents and — twenty years on — carried forward the same candid paragraph about quadratic key growth.

That is what maintenance looks like in infrastructure: not a triumphant second version, but the same small mechanism, re-specified by people who could have replaced it and chose instead to make it accurate.

Why a modest mechanism survived

TSIG is not elegant the way public-key systems are. It has outlived several attempts to replace it because it solves the case it was built for with almost no machinery: the operations that move a zone run between a small number of servers that already trust each other, and for that shape of problem a shared secret plus a timestamp is enough.

There is a larger point buried in a DNS RFC. Not every problem on the internet was solved by adding a hierarchy. Some were solved by admitting the relationship is small, writing down exactly how small, and refusing to pretend otherwise.

Lu Heng makes the same point about coordination in his Note on minimum specification and voluntary adoption: "The common layer is not an institution." TSIG is that sentence rendered in protocol — a common layer small enough to verify locally, honest enough to leave the rest to the parties who have to live with it.

Somewhere tonight the clock is still four minutes off. The retry will succeed, no ticket will be filed, and the least glamorous mechanism in DNS will go on doing precisely what it promised — no more, and no less.