Summary

  • RFC 2308, March 1998, Standards Track, updates the DNS core documents and defines negative caching: the caching of the non-existence of a name or a record set.
  • The document states the overload plainly: "The SOA minimum field has been overloaded in the past to have three different meanings, the minimum TTL value of all RRs in a zone, the default TTL of RRs which did not contain a TTL value and the TTL of negative responses."
  • It settles the choice: the first meaning "has never in practice been used and is hereby deprecated", the second matters only at the primary server, and the third becomes the field's defined purpose.

A number that answered three questions

The start of authority record is the administrative handle of a zone. One of its fields was supposed to say how long records may be cached, and over the years three separate questions were answered with it: what is the floor for any TTL in this zone, what do you use when a record has no TTL, and how long may a resolver keep an answer that says nothing exists.

Each question is legitimate. Each wants a different value in a healthy zone. One field cannot hold three answers, and a zone file can only hold one.

The meaning nobody used

The most interesting sentence in RFC 2308 is about the original meaning. The zone-wide minimum TTL was the specification's first intent, and the document says it "has never in practice been used and is hereby deprecated".

A standard admitting that its own first reading was never implemented is a small, useful thing. It also explains why the field could be overloaded for years without anyone noticing: the reading that would have clashed with the others was not in use.

Why a negative answer needs a lifetime anyway

An answer that says a name does not exist is information, and information that is cached too long creates its own failures. A hostname added five minutes ago may still be reported missing by resolvers holding an old negative answer.

Caching it too briefly creates the opposite: every miss becomes a query, and the traffic from asking about names that do not exist can be a large share of what a resolver handles.

What the 1998 document changed

The mechanism it standardises is modest. An authoritative server reporting a negative answer must include the zone's SOA in the authority section of the response, and the TTL on that record says how long the negative answer may be cached.

That is enough to make negative caching interoperable, because a resolver no longer has to invent a lifetime; it reads one from the answer it was given.

From optional to expected

The document also changes the status of the practice itself. Negative caching "was an optional part of the DNS specification" and, given how much traffic it saves, "should no longer be seen as an optional part of a DNS resolver".

That is the ordinary path of a performance feature: optional in the specification, universal in deployment, then mandatory in the next revision. The revision is where the field's three meanings finally had to be separated.