Skip to content

DNS cutover with minimum TTL — the timing reality

TTL is a hint, not a contract. Here is why a 300-second TTL does not give you a five-minute cutover, and how to plan the window that actually exists.

The runbook says “TTL is 300, so the cutover takes five minutes.” The change goes in, the new IP starts taking traffic, and forty minutes later one office is still hitting the old server. Someone blames caching, someone else blames the registrar, and the call gets longer than the cutover was supposed to be.

What’s happening

TTL is a hint, not a contract. Recursive resolvers honour it inconsistently. Public resolvers like 8.8.8.8 and 1.1.1.1 generally respect the value, but consumer ISP resolvers regularly cap minimum TTLs upward — some enforce a 30-minute floor regardless of what the authoritative zone publishes. Corporate networks add another layer: the office resolver caches the record, the OS caches the resolver’s answer, the browser caches the OS’s answer. Java applications and long-lived connection pools cache the IP at process start and never re-resolve. CDNs and email gateways often pin the upstream IP for the lifetime of a connection, which can be hours for keep-alive sessions.

How to verify

Before cutover, sample the TTL as different parts of the internet see it:

dig +short example.com @1.1.1.1
dig +short example.com @8.8.8.8
dig +noall +answer example.com @resolver1.opendns.com
for r in 1.1.1.1 8.8.8.8 9.9.9.9 208.67.222.222; do
  dig +noall +answer example.com @$r
done

After cutover, check from the client side, not from your own laptop. Pull the access logs on the old server every five minutes and watch the request rate decay. The curve, not the clock, tells you when the cutover is complete.

The fix

Lower TTLs to 300 seconds at least 48 hours before the planned cutover — long enough that the previous higher TTL has expired everywhere. Run the application stack in parallel: both source and destination accept traffic during the transition, with the source kept healthy until the old-server log rate is statistically zero. Budget the cutover window in hours, not minutes — typical decay tail is 60 to 90 minutes for web traffic, longer for mail and any client with hard-coded resolvers. After the window, restore the TTL to its production value.

For database-backed cutovers, never trust the DNS clock alone — gate writeable traffic on a feature flag or proxy decision, not on whose resolver got the new record first. We plan the full timeline as part of migration solutions.