When can we use an address we saved earlier?
06Move the clock, change the keeper’s fact, and see which source answers a later request.
At time zero the first transaction receives 192.0.2.20. The selected lifetime says how long ordinary later reuse is allowed.
A fact arrives with a limited-use bookmark
192.0.2.20For www.example.org.Save the copy with a deadline 30 seconds after receipt
What happens if you change this?
Make one change, then watch again. Restart restores the original example.
Within the TTL return the cached data; after expiry perform resolution again.
Key idea: A saved answer can reduce work, but its timer is not a promise that the keeper’s facts cannot change.
Terms
- DNS cache
- A temporary memory of earlier answers.
- DNS TTL
- A lifetime in seconds for ordinary saved-record reuse.
- Cache hit
- A suitable saved answer is still usable for this request.
- Cache miss
- No suitable ordinary saved answer can be used; further lookup work may be needed.
- Cache expiry
- The saved record reaches its ordinary reuse deadline.
- Serve-stale
- A later extension can use selected expired data under additional conditions; it is not enabled in this experiment.
Rules & examples
A reuse timer limits an ordinary saved answer; maintained local zone data takes precedence.
These reference examples may differ from the selected experiment.
- TTL is expressed in seconds and controls caching lifetime.
- Authoritative local zone data takes precedence over cached information.
- A zero TTL prevents retention beyond the current transaction.
TTL is not a promise that authoritative data cannot change. Cached answers can remain valid for reuse until their allowed lifetime expires.
All selected TTLs and elapsed times are example values in seconds. The later request is a separate transaction, including when zero whole seconds have elapsed. Ordinary eligibility is TTL>0 and elapsed<TTL. A zero TTL permits the first transaction’s use but not later cache reuse. The source changes or becomes unavailable after the first successful answer. A new lookup is a logical resolution, not a claim of one network packet. A local authoritative zone takes precedence over cached information. RFC 8767 updates RFC 1034/1035 to permit serve-stale under additional conditions when refresh fails; that extension is outside this selected ordinary-reuse profile. Expiry here does not claim every modern resolver must discard every copy forever. No negative caching, signature validation or wall-clock changes are modeled.
Sources
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.