You are planning to move db.example.com to a new IP at 14:00. Its A record has a TTL of 3600 s. 10 minutes before the cutover you drop the TTL to 60; at 14:00 you change the address. How long after 14:00 can a client still be handed the old IP, and why?
- Exactly 3600 s after 14:00 for everyone, because the TTL restarts when the record changes. TTL counts down from each cache's fetch, not from the change; a cache that fetched long before the change has less residual, and the maximum is old TTL minus lead time.
- Up to 50 minutes after 14:00: a resolver that cached the record just before you lowered the TTL still holds the old IP with the old 3600 s TTL and never re-asks until that expires; the 60 s TTL only governs resolvers that refetched after the change. To make 14:00 clean you had to lower the TTL at least 3600 s before. Each cache counts its own copy down from its own fetch time; the worst-case staleness after the cutover is old TTL minus lead time, and it differs per resolver.
- About 60 s — once the authoritative server publishes the 60 s TTL, caches everywhere pick up the new TTL within a minute. A cache never re-checks a record until its own copy expires, so a TTL change is invisible to any cache still holding the old copy with the old TTL.
- Zero — authoritative servers send NOTIFY when a record changes, so resolver caches are flushed. NOTIFY runs between a zone's primary and its secondaries; recursive resolvers are never told about changes and serve what they cached.
Caches that fetched before you lowered the TTL keep the old IP for the full old TTL, so lower the TTL at least one old TTL before the change.
A TTL is an instruction to caches, and every cache in the path — the recursive resolver, a node-local cache, the application's own resolver cache — counts its copy down independently from the moment it fetched the record. Nothing at the authority can reach into those caches: a cache learns about a new TTL or a new address only when its current copy expires and it asks again. So the resolvers that matter for a cutover are the ones that fetched before you lowered the TTL; they hold the old value for up to the old TTL, which is why the TTL must be lowered at least one old TTL ahead of the change. Plan for the application layer too: JVM resolver caches and long-lived connection pools are caches that ignore DNS TTLs entirely.
Saying the change "propagates in about a minute" once the TTL is 60. Nothing pushes to a cache; a resolver that fetched just before you lowered the TTL keeps the old answer for the whole old TTL.