Troubleshooting

Where DNS caching happens

Caching avoids repeated lookups. Several independent caches can preserve older DNS data even after the zone changes.

Updated

Independent layers

A browser, operating system and recursive resolver may all cache results. An application using its own resolver may bypass the OS cache. A change at one layer need not invalidate the others.

Positive and negative answers

A record answer has a TTL. Negative answers can also be cached. Resolvers may impose policy limits and some can serve stale data during upstream failure.

Test the right layer

Compare a fresh authoritative answer with a recursive answer and its remaining TTL. Clearing a local cache only affects that local layer. Avoid flushing caches on systems you do not administer.

Trace the layers

Suppose an authoritative server changes an A record from 192.0.2.10 to 192.0.2.20. A recursive resolver with a still-valid old answer can continue returning .10; a browser may also retain information. Record where each observation came from instead of treating every difference as a failure.

Step-by-step example

Imagine an A record changing from 192.0.2.10 to 192.0.2.20. Both are documentation addresses.

  1. 01

    Observe a cached answer

    A recursive resolver may have previously retrieved the old record with TTL 300 seconds. It can reuse a cached copy until expiration, subject to resolver policy.

    Old A record
    192.0.2.10
    TTL
    300 seconds
    Illustration · example, not a live result
  2. 02

    Compare after the change

    Changing the authoritative record does not instantly invalidate every cached answer. One resolver may show the old value while another queries the new value.

    Resolver A
    192.0.2.10 (cached)
    Resolver B
    192.0.2.20 (new)
    Illustration · example, not a live result
  3. 03

    Wait and verify

    Check the affected record again after the relevant TTL. Your browser and OS may cache separately. Flushing one local cache cannot flush all recursive resolvers. Use the DNS lookup tool for a fixed-resolver observation.

    Cache lifetime
    Expires
    Next query
    Refresh record
    Illustration · example, not a live result

Check your understanding

Record TTL and timestamps before diagnosing inconsistency; a cached answer is not automatically an incorrect authoritative record.

Try this tool →

Try this

If a recently changed domain returns old data, note the returned record and TTL before making another change.

DNS record lookup →

Technical references