Summary
- NXDOMAIN and NODATA are not two spellings of failure. NXDOMAIN says the effective query name does not exist; NODATA says the name exists, or may exist, but carries no record of the requested type. Their cache keys differ because their evidentiary scope differs.
- RFC 2308 made a negative answer both transferable and mortal. An authoritative SOA supplies the zone context and a lifetime derived from the smaller of the SOA TTL and
MINIMUM; a resolver must stop using the denial when that countdown reaches zero. - DNSSEC, NXDOMAIN cuts and aggressive negative caching later let one validated denial answer a wider set of questions. That efficiency raises the price of a mistaken scope or an excessive lifetime — without ever turning DNS evidence into legal ownership or permanent truth.
An empty answer is not a verdict
Ask a name server for the A record of service.example and it may hand you back nothing at all. That nothing is a Rorschach test. The name might not exist. The name might exist with MX and TXT records and simply no A. The server might be pointing the resolver somewhere else. It might be broken, unreachable, or sulking behind SERVFAIL.
Four wildly different worlds, one blank reply. Get the interpretation wrong and you do not misread a packet — you misread the namespace.
Cache the wrong reading and the damage compounds. Decide the whole name is gone when only A is missing, and a later MX lookup may never reach an authority that had mail data all along. Remember only that A is missing when the authority actually said NXDOMAIN, and every resolver on the path keeps paying for AAAA, TXT and SRV questions about a name already declared dead.
So DNS learned to say two kinds of nothing. NXDOMAIN is the Name Error response: after any CNAME chain is followed, it applies to the effective query name and class. NODATA has no response code of its own — it must be inferred from NOERROR, the absence of a relevant answer, and authority data that separates a negative response from a referral. It applies to the effective name, the requested type and the class.
Two kinds of nothing, two different cache keys
That asymmetry is why the cache tuples formalised by RFC 2308 are not bureaucratic fussiness. NXDOMAIN is stored under <QNAME, QCLASS>. NODATA is stored under <QNAME, QTYPE, QCLASS>. One extra field in the key, and the Internet stops confusing 'this name is gone' with 'this name has no such record.'
A small change in the key prevents a very large change in apparent reality.
CNAMEs move the subject of the denial
The label a user typed is not always the label an authority denied. An alias can exist perfectly well and point, through one or more CNAMEs, at a canonical target that does not. The NXDOMAIN belongs to the last target in the chain — not to the alias that cheerfully supplied the CNAME.
This is precisely why RFC 2308 defined QNAME with such care. A cache that pins the denial to the first convenient label can make a valid alias vanish, or reuse evidence outside its actual subject. Correct negative caching starts with identity: which exact name did the authority deny?
NODATA deserves the same discipline. An empty answer at the end of a chain may show that the canonical target has no record of the requested type. It does not prove the alias lacks other types, and it certainly does not prove that every label along the way is nonexistent.
1987: a good idea left optional
RFC 1034 described negative caching in 1987 and then shrugged. Optional. Nice if you had it. Remembering a miss could cut repeated traffic and shave response time, especially when search paths and automated software kept generating the same losing questions.
But the original design carried a propagation flaw that would embarrass any modern engineer: a server could not safely hand its cached negative response to another resolver along with the same useful evidence and the same remaining lifetime. The memory was local. The knowledge did not travel.
From optional memory to a portable statement
Published in March 1998, RFC 2308 closed that gap and made negative caching non-optional for any resolver that caches at all. An authoritative server reporting NXDOMAIN or NODATA must place the containing zone's SOA record in the authority section. That record does two jobs at once: it names the zone doing the talking, and it carries the timing material needed to reuse the statement elsewhere.
The negative lifetime is the smaller of the SOA record's TTL and the SOA MINIMUM value. The resolver stores the SOA alongside the negative result. When it later serves that result from cache, the TTL it displays has already been spending itself down. At zero, the denial must not be used again.
The author line of RFC 2308 records Mark Andrews's CSIRO affiliation — a nice piece of provenance for the historically curious, not the point of the story. The standard itself, and every amendment since, came out of the IETF's documentary process.
Why the clock has to travel with the word 'no'
The DNS namespace is a tree. Queries, unfortunately, travel through a graph of forwarders, and misconfigured servers love to forward to each other. Hand a negative answer to that arrangement without a portable countdown and something remarkable happens: each server receives it, stamps a fresh local lifetime on it, and passes it along. A statement designed to expire can circulate like a rumour that refuses to die.
Hence the rule that negative answers without an SOA should not be cached at all. A short lifetime at one server means nothing if the next server restarts the clock. The SOA is not ornamental metadata; it lets independent caches agree on the decline of the same claim.
The repair also cleaned up an overloaded field. RFC 1035 had described SOA MINIMUM as a lower bound for exported TTLs. Implementations cheerfully used it as a minimum, a default and a negative-cache timer — three jobs, one integer. RFC 2308 deprecated the unused universal-minimum meaning, moved zone-file defaults into $TTL, and kept MINIMUM for the one job it still does: feeding the negative lifetime. Running code exposed the ambiguity; the later standard narrowed it.
The implementers got there before the prose did
RFC 2308 contains a retrospective implementation history rather than a heroic inventor story, and it is the better for it. It records CHIVES work in the late 1980s, when repeated search-path misses and expensive DNS errors made negative caching operationally irresistible. It records BIND work in the early 1990s that distinguished a name error from NOERROR_NODATA, first with a fixed short lifetime, later retaining the SOA needed to return evidence alongside the cached result.
Read those accounts and you can watch the idea sharpen in the hands of people who had to make it work at three in the morning. RFC 2181's insistence on RRset precision and RFC 2308's tuples belong to the same insight: 'no answer' is not a mood. It is a typed, scoped claim.
The appendix is not a deployment census and does not pretend to be. It cannot tell you what fraction of the Internet behaved which way on any given Tuesday. It does show the direction of travel — from an empty reply, to a remembered condition, to a portable result whose subject, type and lifetime any other resolver could inspect.
The creation delay hidden inside efficiency
A correct negative answer can become wrong simply because the zone changed. Create a name while recursive resolvers still hold its NXDOMAIN and those clients keep seeing nothing. Add an AAAA record after NODATA for AAAA has been cached and the name stays visible while its IPv6 reachability lags behind the authoritative truth.
The TTL is therefore a trade, not a confidence score. Longer negative lifetimes cut repeated queries and spare the authority; they also stretch the window in which a creation or a repair stays invisible. RFC 2308 notes that resolvers may cap published values, calls one-to-three-hour defaults workable, and warns that values beyond a day had proved troublesome in practice.
There is no global expiry instant. Resolvers receive answers at different moments and impose different caps. A zone can be perfectly correct right now while a slice of the world still observes a bounded, older denial. Rollout planning that looks only at what the authority serves is planning for the wrong Internet.
And failures must stay outside the claim. Timeout, an unreachable server and SERVFAIL are not nonexistence. RFC 2308 gives a few failure conditions their own tightly limited optional caching treatment. An application that converts a temporary inability to answer into NXDOMAIN turns a recoverable outage into a durable decision — rejecting mail, abandoning service discovery, writing off a customer.
When one denial started answering many questions
DNSSEC added cryptography to absence. RFC 4034 defines NSEC records that chain names in canonical order and list the types present at each owner; RFC 4035 defines how validators use them to prove NXDOMAIN or NODATA.
The distinction survives the signature. A gap between owner names proves a name is absent. A type bitmap at an existing owner proves a type is absent. Cryptography authenticates the statement; it does not make the two statements interchangeable.
RFC 5155 brought NSEC3, with hashed owner names and Opt-Out — and Opt-Out is an explicit evidentiary limit, because a covering NSEC3 record does not prove every possible name beneath it absent.
RFC 8020 later let an NXDOMAIN at a node stop queries below that node within defined boundaries. The rule simply follows the tree: nothing can live beneath a name that does not exist. It does not apply to NODATA, because a name missing one record type can still hold others, and can still have children.
RFC 8198 then let a validating resolver reuse cached NSEC or NSEC3 evidence aggressively: one authenticated range can synthesize a negative answer to a question that never went upstream. The saving is larger than ordinary exact-query caching. So is the cost of stale denial evidence when a new name appears inside that range.
Bounded protocol evidence
The negative-answer chain is a clean separation of powers. A zone operator chooses the current contents and the timing values. An authoritative server constructs the response. A recursive resolver classifies it, picks the tuple, validates where applicable, applies local limits and eventually throws it away. An application decides what the result means for a user or a transaction.
Each role holds real power. None owns reality outside its layer. A DNSSEC signature proves origin and integrity within the DNS chain; it does not prove legal entitlement to a name, the nonexistence of an organisation, or the wisdom of a deletion. A record in a ledger is evidence, not title. A cache can amplify a valid denial without ever earning the right to make it permanent.
The historical achievement was precise and modest, which is exactly why it lasted. DNS turned an absence into evidence that could travel: it named what was missing, identified who could speak for the relevant zone, and fixed how long independent resolvers were allowed to reuse the statement.
DNS never learned to make something out of nothing. It learned to say precisely which nothing, on whose authority, and for how long — and then to let the claim die on schedule.
Sources and limits
The original caching and SOA context is documented in RFC 1034 and RFC 1035; RFC 2181 supplies RRset clarification. The negative-response definitions, tuples, SOA lifetime, forwarding-loop warning and implementation history come from RFC 2308.
Authenticated denial is bounded by RFC 4034, RFC 4035 and RFC 5155. The later NXDOMAIN subtree rule is RFC 8020, and validated range synthesis is RFC 8198. Later behaviour is not projected back onto early resolvers, and the RFC 2308 appendix is treated as retrospective implementation evidence rather than a complete measurement record.
Member Briefing
Read the full trend briefing
Members read the full briefing with the source notes behind every finding.
Strategic Circle
A daily briefing in your language, built from changes we have verified.
Join for USD 20/monthCancel anytime.
Members also get the full research library, a daily briefing on the networks they follow and the private forum.






