Names Organizer
Windows 10 & 11 Buy license · $49.95
DNS and security

Moving a Website to a New Host: The DNS Checklist That Avoids Downtime

Move a website to a new host without DNS downtime: record your DNS, lower TTLs, copy email records, switch at the right time and confirm it worked.

Updated 5 minute read The Names Organizer team

To move a website to a new host without downtime, keep the old site running until DNS has fully switched over. In practice: write down every current DNS record, lower the TTL on the records you will change a day or two ahead, set up and test the site on the new host, recreate any email records exactly, then update the A and AAAA records (or the nameservers) to point to the new host. Check the result against several resolvers, wait at least as long as the old TTL plus a safety margin, confirm the site, SSL certificate and email all work, and only then cancel the old hosting.

Most downtime during a host move comes from three mistakes: forgetting email records, changing nameservers without recreating the zone, and cancelling the old host too early. This checklist avoids all three.

First decide: change records or change nameservers?

There are two ways to point a domain at a new host, and they carry different risks.

ApproachWhen to use itMain risk
Change only the A and AAAA recordsYour DNS is with a registrar or DNS provider you are keepingLow: only the website moves, email and other records stay as they are
Change the nameservers to the new hostThe new host will manage your DNS, or the old host managed it and you are leavingHigher: every record must exist at the new host before you switch

If you can, keep DNS with a provider that is separate from your web host. Moves then only ever involve changing a couple of records.

One to two days before: prepare

  1. Record every DNS record. Export the zone if your provider allows it, or list every A, AAAA, CNAME, MX, TXT, SRV and CAA record by hand. Include subdomains such as www, mail, shop and any verification records.
  2. Note the current nameservers from a public lookup.
  3. Find out where email is hosted. If your MX records point at your old web host, email is moving too, and mailboxes need migrating. If they point at a separate email service, email should be unaffected as long as you copy the records.
  4. Lower the TTL on the records you will change, for example from 3600 or 86400 seconds down to 300. Do this at least one full old-TTL period before the switch, so caches pick up the short value. See what TTL to use for DNS.
  5. Set up the site on the new host and copy files and databases.

To check the records from your PC, see how to check DNS records on Windows. Save the output to a text file so you have a before copy.

Test before you switch

You can preview the site on the new server before any visitor sees it by editing the Windows hosts file:

  1. Open Notepad as administrator.
  2. Open C:\Windows\System32\drivers\etc\hosts.
  3. Add a line with the new server's IP and your domain, for example 203.0.113.10 example.com, and another for www.example.com.
  4. Save, run ipconfig /flushdns, and browse the site. Check pages, forms, logins and checkout.
  5. Remove the lines when you are done, or you will keep seeing the new server after the switch even if something goes wrong for everyone else.

Some hosts also offer a temporary preview URL. Make sure the new host can issue an SSL certificate for your domain; many issue it automatically only after DNS points to them, so plan for a short window where you check it immediately after the switch.

Switch day

If you are changing records:

  1. Update the A record (and AAAA if the new host supports IPv6) for the bare domain.
  2. Update www, whether it is an A record or a CNAME.
  3. Leave MX and email-related TXT records alone unless email is also moving.

If you are changing nameservers:

  1. Recreate every record from your list at the new host's DNS, including MX, SPF, DKIM, DMARC and verification records.
  2. Compare the new zone against your list line by line.
  3. Change the nameservers at your registrar.

Nameserver changes can take longer to settle than record changes, because the delegation TTL is set by the parent registry and is often a day or two. Our article on nameserver changes that are not working explains why.

After the switch: verify

  • Query the authoritative nameserver and a couple of public resolvers to confirm they return the new IP.
  • Load the site over HTTPS and check the certificate is valid and covers both the bare domain and www.
  • Send test emails to and from the domain.
  • Check forms, payments and any scheduled tasks on the new server.
  • Watch the old server's access logs. When traffic there drops to almost nothing, resolvers have caught up.

If something goes wrong

Because you lowered the TTL and kept the old host running, rolling back is quick: put the old A records (or nameservers) back, and most visitors return to the old server within minutes. Common problems after a switch:

  • Email stopped: an MX, SPF or DKIM record was not recreated. Compare the zone with your saved list.
  • Certificate warning: the new host has not issued a certificate yet. Trigger it in the hosting panel now that DNS points there.
  • Some people see the old site: their resolver is still caching the old answer. This clears on its own once the old TTL expires.

Cleaning up

  1. Raise the TTL back to a normal value, such as 3600 seconds, once you are happy.
  2. Wait a few days before cancelling the old hosting. Keep a final backup of it.
  3. Remove DNS records that pointed to services on the old host, so nothing dangles.
  4. Update your records of where the domain is hosted.

Keeping a before-and-after record

A host move goes most smoothly when you have an accurate copy of the DNS from before you started. Names Organizer, a domain manager for Windows, keeps each domain's nameservers, DNS records, hosting and IP details alongside its registrar and expiry information. Its DNS and nameservers report lists the records per domain, ready to print or save as PDF or text before you change anything. After the move, a refresh shows what changed, and Names Organizer can warn you if nameservers or DNS records change unexpectedly later, or if the website stops responding. For agencies moving several client sites, that report is a simple checklist to work from.

Frequently asked questions

Should I change nameservers or just the A record when moving hosts?

If your DNS is with a third party you want to keep, change only the A and AAAA records. Changing nameservers moves the whole zone, so every record must be recreated first.

How do I avoid losing email when changing hosts?

Copy the MX, SPF, DKIM and DMARC records exactly before switching, and check whether email is hosted with your old web host.

When can I cancel my old hosting?

Wait until the new DNS has fully propagated and you have checked the site and email, usually a few days after the switch.

Get three guides like this every month, plus software update notices.Subscribe →