Summary

  • RFC 1034, published in November 1987, defines the TTL as "a time limit on how long an RR can be kept in a cache" — set by "the administrator for the zone where the data originates", not by the network and not by the machine.
  • The same memo notes that "a zero TTL prohibits caching", recommends lifetimes "on the order of days for the typical host", and hands operators the only change-announcement mechanism the system has: lower the number before a move, raise it again afterwards.

What a lifetime is for

Strip the cache out and every lookup walks all the way to the authoritative server; the internet would spend most of its capacity asking the same questions and getting the same answers. Put the cache back and you get speed, plus a new problem: an answer keeps being served after it has stopped being true.

The TTL is the number that splits the difference. It is not a property of the machine and not a property of the network. It is a declaration by the administrator of the zone — a statement, measured in seconds, about how long strangers are permitted to keep believing something.

Days, not seconds

Read the recommendation again: for a typical host, the TTL "should be on the order of days". Not seconds. Not minutes. The memo is not describing a technical constraint; it is describing a culture. Names change rarely, and when they change, somebody planned it.

It also sets the cost of being wrong. Change a server address behind a one-day TTL and some fraction of the internet will keep dialling the old one for a day, while the operator watches two machines answer to the same name and hopes the busy one is the right one.

The ritual the memo invented without saying so

The interesting sentence is the operational advice: if a change can be anticipated, "the TTL can be reduced prior to the change to minimize inconsistency during the change, and then increased back to its former value following the change".

Read that twice. The protocol has no way to push an update. There is no recall button, no broadcast, no authority that reaches into a resolver in Frankfurt and tells it to forget. So the entire burden of a fast, clean change falls on an operator lowering a number in advance, waiting, moving, and putting it back.

The memo assumes the operator knows the future. The convention that grew around that sentence — the pre-migration TTL drop, performed like a ritual, often by people who no longer remember why — is now the only mechanism this system has for announcing that a change is coming. Announcement, here, means arithmetic.

Zero, and the cost of refusing to cache

A zero TTL is legal, and it means what it says: no caching. You buy perfect freshness and pay for it in load. Every client asks again, every time, and the authoritative server's traffic becomes proportional to the number of queries rather than the number of changes. Freshness, it turns out, is a subscription.

Large providers learned the trade the expensive way, and the number they settle on is read by outsiders as a signal. A short TTL on a record is a public hint that something is about to move — a tell, published in advance, in a field almost nobody outside the industry knows how to read.

Remembering what does not exist

Section 4.3.4 adds optional negative caching: a resolver may cache the answer "this name does not exist", with a TTL of its own.

That is the same trade seen from the other side. Without it, every lookup of a missing name reaches the authority and gets the same nothing back. With it, the nothing is remembered — and a name registered a minute ago can stay missing for as long as the negative record lives. The internet's memory of absence is exactly as durable as its memory of presence, and exactly as hard to correct.

Why the design has held

The TTL has survived nearly four decades of everything else changing because it is the simplest contract a publisher and a reader can sign: one integer, one meaning, no negotiation, no signature, no enforcement.

Its weakness is equally simple. The number is chosen once, by whoever happens to run the zone, and every reader afterwards inherits that choice — including the ones who arrive years later with a very different idea of how quickly the world changes, and no way to say so.

What the memo really describes is a system held together by declarations. A record does not command the network; it describes what the network's owner intends, and the network complies because complying is cheaper than not. That is a thin thread for something this large to hang on. It has held because almost everyone, almost always, keeps the promise — and because the alternative, a protocol that could force the issue, would require an authority nobody was willing to appoint.