Negative caching TTL
How long resolvers may cache the answer that a name or record does not exist; RFC 2308 sets it from the zone's SOA record.
What it means
Resolvers cache absence as well as presence. When a query returns NXDOMAIN or an empty answer, the reply includes the zone's SOA record, and the answer may be cached for the smaller of the SOA's own TTL and its MINIMUM field (RFC 2308). RFC 2308 suggests resolvers cap it, with one to three hours as a sensible default.
This explains a common surprise. Someone checks _dmarc.example.com before creating it, gets NXDOMAIN, then publishes the record, and that resolver keeps answering "does not exist" until the negative cache expires.
Avoid querying records before they exist, or keep the SOA minimum modest.
Related terms
On this site
Sources
What this definition rests on. The wording is ours; the facts are theirs.
- RFC 2308: Negative Caching of DNS Queries (DNS NCACHE), section 5rfc-editor.org
- RFC 2308: Negative Caching of DNS Queries (DNS NCACHE), section 4rfc-editor.org
- RFC 9499: DNS Terminology, section 6rfc-editor.org
All 432 terms in the glossaryThe wiki: blocklists and bounce codes