DNS cache TTL and expiry timeline
Check the ordinary TTL expiry of a DNS answer in a single resolver and its timing relative to authoritative updates and reacquisition
Time calculation for a single cache entry based on acquisition time and TTL. Updating authoritative DNS does not necessarily remove existing cache entries immediately.
Results
—
- TTL used in the calculation
- —
- Initial scheduled TTL expiry
- —
- State at check time
- —
- Remaining validity at check time
- —
- Latest possible retention of the pre-update answer
- —
Results update automatically when the required values are entered.
Method, applicability and sources
Calculation method
Ordinary validity interval = [acquisition time, acquisition time + TTL seconds). For a negative response with SOA, effective TTL = min(SOA TTL, SOA.MINIMUM). TTL = 0 means no caching. Negative responses without SOA follow the RFC 2308 recommendation not to cache. Successful reacquisition is assumed to replace the entry with the same effective TTL; an authoritative DNS change alone does not extend expiry. Dates/times are displayed in Japan time with second precision.
Worked example (hypothetical values)
Example: an answer received at 2026/11/13 10:00 with TTL 300 seconds normally expires at 10:05:00. Even if authoritative DNS is updated at 10:02, this cache may retain the previous answer until 10:05 unless it is reacquired.
Applicability and limitations
A cache entry in a single DNS resolver with known acquisition time and received TTL. Actual queries; resolver-specific TTL caps, prefetching, or serve-stale after expiry; upstream/client cache layers; DNSSEC validation; guaranteed propagation completion; and retention periods for SERVFAIL or failure responses.
Methods used
- Positive DNS answer TTL (RFC 8767 §4): scope Ordinary TTL of an acquired RR, without resolver-specific caps; region global
- NXDOMAIN/NODATA negative caching (RFC 2308 §§3,5,6): scope Negative answers with SOA; the recommended no-storage model is used when SOA is absent; region global
Method and sources
Method: RFC 8767 §4 (2020) / RFC 2308 §§3,5,6 (1998). Data recorded: 2026-11-13.