All exhibits

EXHIBIT 03 SOA ARCHIVE 1998

Time to live

A DNS answer comes with an expiry. Changing a record does not recall copies already in caches.

A DNS answer has a timer attached. Its time to live, or TTL, tells a resolver how long it may keep the answer before asking an authoritative server again. RFC 1035 describes it as the interval for which a record “may be cached.”[1]RFC 1035, Domain names: implementation and specificationThe TTL field and cache lifetime

That is why changing a record does not instantly change the whole internet. A resolver that fetched the old address a moment before your edit can keep serving it until its timer expires. Another resolver, with an empty cache, may see the new address straight away. Both can be behaving correctly.

New answer at 12:00Old answer may remain until 13:00

The slider sets the record's TTL in hours. A resolver that cached it just before the change may keep that old answer until the timer runs out.

Plan the change before the change

Suppose your current A record has a TTL of twelve hours. You lower it to five minutes, then switch the address one minute later. Resolvers that cached the old record before you lowered the TTL still have up to twelve hours left on their copy. The new five-minute setting cannot travel backward into a cache already filled.

If you need a shorter window for a planned move, lower the TTL first and wait out the old TTL. Then change the address. This does not guarantee that every device or application behaves exactly as the DNS specification suggests, but it removes the predictable long cache window.

A TTL is permission to remember, not a message you can recall later.

Missing names have timers too

Resolvers also cache negative answers. If a server says a name does not exist, that answer can be remembered. RFC 2308 specifies that the cache lifetime for such an answer comes from the smaller of the SOA record’s TTL and its MINIMUM field.[2]RFC 2308, Negative caching of DNS queriesHow resolvers cache answers that a name or type does not exist Create a new name immediately after someone receives an NXDOMAIN answer, and they may keep seeing “not found” for a while.

Does TTL mean the browser must wait?

No. DNS caching is one layer. Browsers, operating systems, applications, and HTTP caches have their own behavior. TTL sets a limit for DNS record caching by a resolver; it does not promise when every open connection will move to a new server.

The clock is simple. The number of clocks involved in a real move is not.

Notes & sources

  1. [1]RFC 1035, Domain names: implementation and specificationThe TTL field and cache lifetime
  2. [2]RFC 2308, Negative caching of DNS queriesHow resolvers cache answers that a name or type does not exist

Archive years refer to the original protocol or source material, not to the publication date of these essays.