Back to Article List

Plan DNS propagation before moving a site

DNS-Propagation planen vor dem Website-Umzug - Plan DNS propagation before moving a site

DNS propagation is not your change spreading across the internet. It is thousands of resolvers each holding a cached copy of your old records until that copy's time-to-live (TTL) runs out. Once you know that, you can plan the switch: lower the TTL a few days before you move, and most visitors land on the new server within minutes of the change. Here is how to do it, and how to keep your email working while it happens.

What DNS propagation actually is

Your domain's records live on its authoritative nameservers, the servers your DNS provider runs. Visitors' devices don't ask those servers directly. They ask a resolver: the one run by their internet provider, their office network, or a public service. The resolver fetches the answer, keeps a copy and hands that copy to everyone who asks after them.

Every record carries a TTL, a number in seconds that tells resolvers how long they may use their cached copy before asking again. The DNS specification describes it plainly: cached data is eventually thrown away by a timeout. Until then, the resolver keeps giving out what it has.

So when you change a record, your authoritative nameservers give the new answer straight away. A resolver that cached the old answer five minutes ago keeps serving it until its copy expires. Another resolver that cached it an hour ago will switch sooner. That uneven timing is what people call propagation. Nothing is being pushed anywhere; old copies are simply expiring one by one.

The practical rule follows from this: for a record you change, the wait is roughly as long as its old TTL. On top of that sit smaller caches in operating systems and browsers, and a few resolvers that hold on to answers longer than they should.

Lowering the TTL days before the move

The TTL that decides your wait is the one resolvers already have. If your A record has a TTL of one day and you lower it this morning, resolvers that cached it last night still keep the old value, with the old TTL, until tonight. Lowering the TTL only helps once the old TTL has run out everywhere. That is why this step happens days before the move, not on the day.

An old but still sound piece of DNS operations advice (RFC 1912) puts it in one line: turn the value down temporarily beforehand, wait the previous value, make your changes, verify them, and turn it back up. In practice:

  1. Look up the current TTL of every record you plan to change: usually the A and AAAA records for your domain, the record for www, and the MX records if mail is moving too. Your DNS panel shows it, or you can read it from a lookup tool.
  2. Lower those TTLs to a few minutes, or to the lowest value your DNS provider allows. Some panels set a minimum.
  3. Wait at least as long as the old TTL. If it was a day, wait a day; adding a margin on top costs nothing.
  4. Get the site running on the new server and test it there before you touch DNS. You can preview it by adding a line to your computer's hosts file that points your domain at the new server's address, so only your machine sees the new site.

Once the wait is over, every resolver that asks about your domain will only cache the answer for a few minutes. Now the switch is quick, and so is undoing it if something goes wrong.

Changing records or changing nameservers

There are two ways to point a domain at a new server, and they behave differently.

ApproachWhat you changeWho controls the wait
Change recordsThe A/AAAA (and maybe MX) records at your current DNS providerYou, through the TTLs you lowered
Change nameserversThe nameservers listed for your domain at the registrarPartly the registry for your domain ending, whose delegation records carry TTLs you can't set

Changing records is the easiest move to plan. Your DNS stays where it is, you edit the address the records point to, and the low TTL you set earlier keeps the wait short.

Changing nameservers moves the whole zone to a new DNS provider. During the overlap, some resolvers ask the old nameservers and some ask the new ones, and you can't shorten that overlap. Two habits make it painless:

  • Copy the zone completely first. Recreate every record on the new nameservers before you switch: website records, mail records, verification TXT records, subdomains. Anything you forget simply stops resolving for visitors who reach the new nameservers.
  • Make both sides give the same answer. Before switching nameservers, point the records on the old DNS at the new server as well. Then it doesn't matter which nameservers a resolver asks: visitors land on the new site either way.

If you can, split the job in two: move the site by changing records, let things settle, then move the nameservers later as a separate, quiet step. And have the new home ready before any of this, whether that's web hosting with us or somewhere else, so the DNS change is the last thing you do, not the first.

Checking what different resolvers see

Don't judge the switch by refreshing your own browser. Your computer has its own cache, and so does the browser. Instead, ask DNS servers directly.

Start with the source of truth, your authoritative nameserver. On macOS or Linux:

dig @ns1.your-dns-provider.example example.com A +short

If that shows the new address, your change is live. Next, ask a few public resolvers what they have cached:

dig @1.1.1.1 example.com A +noall +answer
dig @9.9.9.9 example.com A +noall +answer

On Windows, nslookup example.com 1.1.1.1 does the same job. In the dig output, the number next to your domain is the TTL left in that resolver's cache. Watch it count down: when it reaches zero, that resolver fetches the new answer.

Online DNS checkers run the same query against resolvers in many countries at once, which gives you a quick picture of who has switched. Mixed results in the first minutes are normal; mixed results long after the old TTL has passed point to a mistake, such as a record you missed or a typo in the address.

For a real-world test, open the site on your phone over mobile data, which uses a different resolver from your home or office. If you need your own machine to catch up, flush its DNS cache and restart the browser.

Keeping mail flowing during the switch

Email is where moves go wrong quietly. A broken website is noticed in minutes; a missing mail record can bounce customer messages for a day before anyone asks why it's so quiet.

If your email stays where it is, the job is to leave its records untouched. When you change nameservers, check that the new zone has exact copies of:

  • the MX records, with the same priorities;
  • the SPF record, a TXT record that lists which servers may send your mail;
  • DKIM and DMARC records;
  • any autodiscover or autoconfig records your mail apps use.

Missing MX records mean bounced mail. Missing SPF or DKIM records mean your outgoing mail is more likely to land in spam.

If your email moves too, treat the MX records like the website records:

  1. Lower the MX TTL days in advance.
  2. Create every mailbox and alias on the new mail server before switching.
  3. Change the MX records and update SPF to allow the new server to send.
  4. Keep the old mailboxes open and check them for a while after the old TTL has passed. Senders whose resolvers still hold the old MX record keep delivering there until their cache expires.
  5. Copy old messages across with an IMAP migration tool, and update the settings in everyone's mail apps.

Sending mail servers usually retry when a server can't be reached, but don't count on that to cover a gap. Overlap is safer than a clean cut.

Raising the TTL again afterwards

Once the new site and mail are confirmed working everywhere you checked, put the TTLs back up. Short TTLs are a tool for the move, not a setting to keep. Long TTLs mean fewer lookups, quicker answers for returning visitors, and resolvers that keep working from their cache if your DNS provider has a brief problem.

Records that rarely change, such as MX records and the nameserver records for your zone, are the ones RFC 1912 singles out as good candidates for long TTLs. If you expect another change soon, leave the TTL low until that is done too.

Finally, don't cancel the old hosting the moment DNS looks right. Wait until the old TTL has passed with plenty of margin, then check the old server's logs and mailboxes. When visits and incoming mail there have stopped, the move is truly finished.

FAQ

How long does DNS propagation really take?

For most visitors it takes about as long as the old TTL on the record you changed. If you lowered the TTL to a few minutes days before the move, the switch is quick; if you didn't, expect to wait out the old value. Nameserver changes can take longer because part of the wait is set by the registry, and browsers and devices add their own small caches.

Can I speed up DNS propagation?

You can't push a change out to resolvers, but you can make the wait short by lowering the TTL well before you change anything. Once a change is made with a long TTL, the only thing you can speed up is your own view, by flushing your computer's DNS cache and restarting your browser.

Why do some visitors still see my old site?

Their resolver, device or browser still holds a cached copy of the old address and hasn't reached the end of its TTL yet. Keep the old site online and unchanged until the old TTL has passed, check public resolvers with a lookup tool to rule out a missed record, and ask the visitor to try another network or restart their browser.