Search Tools

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.

What to calculate

Dates and times use Japan Standard Time (UTC+09:00).

The time at which the resolver received the answer. Seconds are treated as 00.

Enter the received TTL in seconds. A TTL of 0 seconds is not cached.

Dates and times use Japan Standard Time (UTC+09:00).

Optional. An authoritative change alone does not invalidate an existing cache entry.

Dates and times use Japan Standard Time (UTC+09:00).

Optional. Assumes successful reacquisition with the same received TTL. This differs from a query alone or an authoritative update.

Dates and times use Japan Standard Time (UTC+09:00).

Optional. Check whether the ordinary cache entry is valid at this time.

Results

Results update automatically when the required values are entered.

Report an issue

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.