Visual RFC.
ALL RFCs / RFC 1034
Read the RFC ↗
RFC 1034 / EDGE CASES

Does no address mean the name is missing?

08

Compare a missing name, an empty address drawer and an unfinished lookup; then ask again after a repair.

RFC 1034 · § 5.2.3EXAMPLE
1 / 4 · Ask one name for one kind of fact

The first request is for an address. The selected keeper state determines what can be learned.

A name and a kind make one question

The app asksWhere is the website?mail-only.example.org.Question kind: website address · A

First request · time 0

Change the first lookup result below to compare different situations

What happens if you change this?

Make one change, then watch again. Restart restores the original example.

4 / 4
04
Cache the distinct outcomes separately.

SOA-bounded NXDOMAIN/NODATA caching records absence. RFC 9520 requires a separate resolution-failure cache; failure is not nonexistence.

Does no address mean the name is missing?Three independent lookup outcomes: missing name, missing type, and resolution failure. SOA-bounded absence caching applies to the first two; failure caching is separate.missing.example.org.NXDOMAINName does not existexample.org. / MXNOERROR + no MXName exists; type absentUnreachable serverSERVFAIL / timeoutNo conclusion about existenceNXDOMAIN / NODATA cache: SOA-bounded absenceTTL = min(SOA TTL, SOA MINIMUM)Failure cache is separate; existence remains unknown

Key idea: “No such name”, “no fact of this kind” and “could not finish” mean different things, even when none gives an address.

Terms
NXDOMAIN
The reported name does not exist. This is different from failing to hear an answer.
NODATA
The name exists, but has no requested kind of fact.
NOERROR
Response code zero; inspect the records to see whether the requested fact is present.
SERVFAIL
The helper could not finish; absence has not been established.
Negative caching
Temporarily remember a result such as a missing name or missing kind of fact.
SOA MINIMUM
A zone setting used with the SOA record’s own TTL to bound a negative answer’s lifetime.
Failure cache
A separate short memory that prevents repeating failed work too quickly.

Look up a term in the glossary ↗

Rules & examples

Missing names, missing kinds of facts and failure to finish are separate outcomes.

These reference examples may differ from the selected experiment.

  • A name error means the queried name does not exist.
  • An existing name can lack the requested record type without being a name error.
  • Temporary failures should be reported separately and not treated as proof of nonexistence.

RFC 1034 originally describes negative caching as optional. RFC 2308 substantially revises those rules; use the later specification for modern implementations.

This combines RFC1034’s result distinctions with later cache rules. First requests use A/IN without aliases or wildcards. NXDOMAIN uses response code 3; NODATA is not a separate code: the selected authoritative no-data reply uses code 0, empty Answer and zone SOA in Authority. SERVFAIL uses code 2 and is not evidence of absence. RFC2308 §§3,5,6 replaces the original negative-cache rules: selected SOA TTL 30 and SOA.MINIMUM 20 produce a 20-second negative lifetime, decremented on reuse. Name-error memory matches this exact name/class across types; no-data memory matches name/type/class. No descendant inference is implemented. RFC9520 §3.2 requires resolution-failure caching for 1–300 seconds; the chosen 5-second failure delay and exact name/type/class key are one documented policy, not universal. At the deadline entries are not reused. After the first attempt, the fixture creates the missing name, adds the missing address, repairs service, or changes the old address; those changes do not instantly rewrite saved entries. Positive address TTL is 30. No DNSSEC denial proofs, raw response parser, transport, persistent failures/backoff, serve-stale or system caches are modeled.

Sources
Protocol participantThreat or exceptionProtocol controlSimplified drawings · precise section references
New to this? Start hereA quick picture + helpful background

A message needs an address.

Think of a packet as a small addressed envelope. Devices pass it onward; transport protocols decide what delivery promises an application gets.

Helpful first, if these ideas are unfamiliar

These pictures are analogies to help you learn. The linked RFC explains the actual rules.

Related RFCs and changes

“Updates” changes part of an earlier RFC. “Obsoletes” replaces it. This list shows selected related documents.

What changed
RFC 1034 § 4.3.4RFC 2308 § 5

RFC 2308 specifies negative caching more precisely; its TTL is the smaller of the SOA TTL and SOA MINIMUM.

Read the updated RFC section ↗

All chapters in RFC 1034

Drawing view

Scroll the drawing to see every part. Playback controls stay above it.

RFC 9700 / CHAPTERS

Chapters

For full details, tables, algorithms, and exceptions, read the original RFC.

RFC status and corrections ↗