News
tech

Your DNS Change Runs on the Old TTL, Not the New One

A DNS record's TTL is the number of seconds other networks may keep a cached copy. Google's admin guidance puts it plainly: a record's current TTL decides how long any change you make now takes to land, so your cutover window was set before you planned the cutover.

Every DNS record carries a TTL: a number of seconds that tells the rest of the internet how long it may keep a cached copy. RFC 1035 defines it as the interval a record "may be cached before it should be discarded." The word doing the work is may. A TTL is a ceiling on someone else's memory, and your edit cannot reach into that memory and clear it.

That is why a DNS change so often looks half-applied. You repoint the website, or move the MX record to a new mail host, and it works on your phone and not on the office computer. Nothing is broken. Two networks are reading two different answers, and both are behaving correctly.

The TTL in force is the one that was there before you touched anything

Google's Workspace admin guidance states it in a single line: "A record's current TTL determines how long it will take any change you make now to go into effect." It gives the arithmetic as well. A record sitting at 86400 seconds can take up to 24 hours for an edit to reach everyone.

Here is the part that catches people out. Lowering the TTL does nothing for the change you are making in the same sitting. Google is explicit that the shorter TTL only takes effect after the prior period expires. Any resolver already holding the old record is also holding the old countdown, and it will run that down to zero before it asks your DNS again. Save a TTL of 300 and a new mail host in the same minute, and the switch is still governed by 86400.

The order that works

Three steps, and the gap between them is the entire point.

  1. Read the current TTL on the exact record you intend to change, days ahead. Not the zone default, the record.
  2. Lower it, then wait at least as long as the original value. If it was 86400, that is a full day of doing nothing. The wait is what buys you a short cutover.
  3. Make the real change. Now your worst case is the lowered number, so a five minute TTL means a five minute disagreement instead of a day of one.

Even then, read the numbers as a floor on the delay rather than a promise. Cloudflare sets its Auto TTL to 300 seconds and still warns that you may wait longer than five minutes to see a record change, because caches further down the chain refresh on their own schedule. Changing nameservers rather than a record is slower again, because that delegation lives in the registry's zone and not in your DNS panel.

When you cannot wait

Sometimes the move is tomorrow and the TTL is a day old habit you inherited. Stop trying to make the change fast and make the overlap safe instead. Keep the old mailbox accepting mail. Keep the old site serving its pages. Leave the old leasing number answering and forwarding to the new one. Handled that way, a cutover has no outage at all, only a window where both ends work, and that window shuts by itself when the last cached copy expires.

None of this argues for permanently short TTLs. Once a domain has settled, long values are fine, and Google recommends 86400 for records that are known to be correct. The habit worth keeping is narrower: the first action in any move is a TTL change, and the second action is waiting. Most cutovers that go badly were not broken by the switch. They were broken a day earlier, by nobody doing the step that looks like nothing.


Back to all articles