Moving a site between hosts is a thirty-second change in a control panel and a multi-day event in reality. The record propagates quickly; the caches that hold the old answer do not. Resolvers honour TTLs loosely, some ignore them, some cache negative answers for longer than the record’s own TTL, and a handful of corporate networks keep their own resolvers with settings nobody remembers.
The short version: before a migration, lower TTLs at least two TTL periods ahead; during the migration, expect some traffic to keep arriving at the old infrastructure; after it, keep the old infrastructure answering for far longer than feels reasonable.
What TTL actually controls
TTL is a maximum, not a guarantee. A resolver receives the record with a TTL and may cache it for that long, but many implementations cap values, some floor them, and a resolvers-under-load may refresh early. The practical consequence is that a TTL of sixty seconds does not mean every client switches within a minute; it means well-behaved caches expire within a minute and you should plan for the stragglers.
Negative caching is the trap most teams meet for the first time during an incident. When a name does not resolve, resolvers cache the negative answer using the SOA minimum TTL, which is often set to an hour or more by default. A typo in a record can therefore take an hour to fix for anyone who already queried it, and there is nothing to purge.
The pre-migration window
Lower the TTL of the records you will change at least two old-TTL periods before the change. If the TTL was twenty-four hours, start four days early. This is the part everyone knows and the part that gets skipped when the migration is scheduled in a hurry, which is why migrations scheduled in a hurry are the ones that produce a day of split traffic.
Also check who else holds a copy. A CDN, a load balancer with its own resolver, a monitoring service with pinned IPs, a partner that hardcodes an address, and an application with a long-lived connection pool all behave like caches with no TTL at all. Enumerate them, because a single hardcoded partner IP can keep a slice of traffic on the old host for months.
During the change: run both
The old infrastructure must keep serving correct responses while stragglers arrive. That usually means writing to both databases or proxying writes from old to new for the overlap window, and it means the old host must still have valid TLS certificates, correct redirects, and current content. Teams that tear down the old host the moment the record flips discover the stragglers by way of a support queue.
Keep the overlap window generous: a week is normal for a public site, longer if the audience includes corporate networks or mobile carriers with aggressive caching. The cost of keeping a small origin alive for a week is trivial compared with the cost of explaining an intermittent outage.
Measurement, not optimism
You can see the residue in the logs. Watch request volume on the old infrastructure over time: it should decay, and the shape of the decay tells you the effective TTL of your audience rather than the TTL you configured. A long flat tail means hardcoded clients or a stale resolver; a fast drop means you were lucky.
Sample from multiple networks, not from your own machine. Your laptop resolving correctly five minutes after the change says nothing about a mobile user behind a carrier resolver. Use external DNS checkers across regions, and check the answer’s TTL value to infer how long it will be held.
Rollback still has to be possible
Keep the old records and the old infrastructure in a state where flipping back takes minutes, for at least the overlap window. A migration that cannot be reversed within an hour is a migration with no error budget, and DNS is precisely the layer where a surprise is cheap to create and expensive to contain.
A worked example of a migration window
A site with a twenty-four-hour TTL is moved from one host to another on a Friday. The record is changed at 10:00 and traffic at the new host reaches about forty percent within an hour, then climbs slowly. By Saturday morning it is at seventy-eight percent, and it stays at seventy-eight percent for two more days because a partner’s integration has a hardcoded address and a large corporate network runs its own resolver that refreshes on a schedule nobody can name.
The old host is switched off on Sunday. The partner starts failing intermittently, the corporate users see a stale site or a connection error depending on their network, and the incident is diagnosed by comparing access logs on both hosts. The fix is to keep the old host answering for a week and to write to a shared database for the whole window, which is exactly what the original plan said and what the schedule dropped.
Rerun with the TTL lowered to five minutes four days beforehand, and the same migration reaches ninety-nine percent within a couple of hours. The remaining one percent is the hardcoded partner, which is found by the pre-migration checklist rather than by an incident on Sunday.
What to check before you commit
- Lower TTLs at least two old-TTL periods before the change.
- Set SOA minimum TTL deliberately; negative caching is not covered by your record TTL.
- List every cached copy you do not control: CDNs, partners, pinned IPs, long-lived pools.
- Keep the old host serving valid TLS and correct content through the overlap window.
- Watch old-host traffic decay as the measurement of effective audience TTL.
- Preserve a fast rollback for the whole overlap period.
DNS migration is a scheduling problem disguised as a technical one. The technical part is small and well understood; the scheduling part is where the residue lives, and the fix is simply to plan the window instead of assuming the change is done when the panel says so.


