The Wild

DNS Migration Checklist for a Smooth Hosting Move

· 6 min read · Mammals

In this article
  1. Why DNS Migration Matters
  2. Pre-Migration Preparation
  3. Step-by-Step DNS Migration Process
  4. Common Problems and How to Avoid Them
  5. DNS Migration vs. Changing Nameservers
  6. Costs and Time Considerations
  7. Safety and Rollback Plan
  8. Frequently Asked Questions

To migrate hosting without downtime, you must update your DNS records at the domain registrar or DNS provider to point to the new host's nameservers, then wait for propagation, which can take up to 48 hours. A smooth move requires planning, copying all records, lowering TTLs in advance, and verifying everything before cutting over.

Why DNS Migration Matters

DNS (Domain Name System) is the phonebook of the internet—it translates your domain (like example.com) into an IP address that servers use to route traffic. When you change hosting providers, your website's files, databases, and email move to a new server with a different IP address. If you don't update DNS, visitors still go to the old server, which may be decommissioned, causing downtime or showing stale content. DNS migration is the process of updating these records so that your domain points to the new host's infrastructure.

Pre-Migration Preparation

Before touching any DNS settings, gather everything you need and create a rollback plan. Here’s what to do:

  • Inventory current records: Log into your current DNS provider and export or screenshot all records—A, AAAA, CNAME, MX, TXT, SRV, and NS. Most providers offer a zone file export; if not, copy them manually.
  • Identify all services: Note which records support email (MX), subdomains (CNAME), verification (TXT), and other services like FTP or game servers.
  • Lower TTL (Time to Live): TTL tells resolvers how long to cache a record. Lower it to 300 seconds (5 minutes) at least 24–48 hours before the switch. This ensures that when you change records, caches expire quickly, speeding up propagation.
  • Set up the new host: Have your new hosting account fully configured—website files uploaded, database imported, and email accounts created—so that when DNS points to it, everything works.
  • Document your current IPs and nameservers: Keep a copy of the old server IP and nameserver details in case you need to roll back.

Step-by-Step DNS Migration Process

Follow these steps in order to minimize risk:

  1. Copy all DNS records to the new host: In the new hosting control panel (cPanel, Plesk, or custom), recreate the exact same records you exported, replacing IP addresses with the new server's IPs. Double-check each record type.
  2. Test the new environment: Use a local hosts file edit or a temporary URL (if provided) to preview your site on the new server before switching DNS. Verify that pages load, forms work, and email sends/receives.
  3. Update nameservers (if changing hosts entirely): If your new host provides different nameservers (e.g., ns1.newhost.com), go to your domain registrar and change the NS records. If you’re keeping the same DNS provider but just changing IPs, you only update the A/AAAA records.
  4. Update individual records: If you're not changing nameservers, edit the A record for the root domain and www, and any other records that point to the old IP.
  5. Monitor propagation: Use online DNS checkers (like whatsmydns.net) to see when different regions pick up the new records. Wait for all to update.
  6. Verify after cutover: Once propagation is complete, test your website, email, and all subdomains from multiple networks. Check that SSL certificates work—if you use Let's Encrypt, they renew automatically, but if you have a custom cert, you may need to reissue it.
  7. Keep the old host active: Don't cancel the old hosting for at least 48 hours after the switch, so you can roll back if issues arise.

Common Problems and How to Avoid Them

Even with a checklist, things can go wrong. Here are frequent pitfalls:

  • Missing records: Forgetting a TXT record for SPF or DKIM can break email deliverability. Always copy every record, even if you don't know what it does.
  • TTL too high: If you didn't lower TTL in advance, changes can take up to 48 hours to propagate, causing mixed results where some visitors see the new site and others see the old.
  • Email downtime: MX records must be updated correctly, and if you're changing email providers, you need to migrate mailboxes and set up new MX records. Test sending and receiving after the change.
  • SSL certificate mismatches: If your new server doesn't have the right SSL certificate, visitors will see security warnings. Install the certificate before switching DNS.
  • Propagation confusion: Some people think DNS changes are instant—they're not. Even with low TTL, it can take a few hours for the whole internet to update.

DNS Migration vs. Changing Nameservers

These are two different things, though often confused. Changing nameservers means you're telling the world to use a different DNS provider entirely—like moving from GoDaddy's DNS to Cloudflare. DNS migration (as discussed) can involve changing nameservers, but it can also be just updating records within the same provider. If you change nameservers, you must recreate all records at the new provider, because the old zone file doesn't transfer automatically. If you only update IPs, you keep the same provider and just edit the A records. Knowing which one you're doing is critical for a smooth move.

Costs and Time Considerations

DNS migration itself is usually free—you're just changing settings. However, there can be indirect costs: if you use premium DNS services, you might pay for additional queries or features. Time-wise, the actual update takes minutes, but propagation takes hours. Plan for a maintenance window of 24–48 hours where you expect potential downtime, though with low TTL and careful execution, it can be under an hour. Some hosts offer free migration services, which can save time but still require you to verify DNS changes.

Safety and Rollback Plan

To protect against errors, always have a rollback plan. Keep a copy of your old DNS zone file and the old server IPs. If something breaks after propagation, you can revert the records or nameservers to the old values. Also, ensure you have backups of your website files and databases on the new host before making the switch. For email, keep the old mail server active for a few days to catch any messages that might still route there. If you're moving to a new server, test everything in a staging environment first—many hosts provide a temporary URL for this purpose.

Frequently Asked Questions

How long does DNS propagation take?

It typically takes 24 to 48 hours for DNS changes to propagate globally, but with TTL set to 300 seconds, most users see the new records within 5–30 minutes. Some ISPs cache DNS longer, so a few users might see the old site for up to 48 hours.

Do I need to change nameservers or just A records?

It depends on your hosting setup. If you're moving to a new hosting provider that gives you different nameservers, you must change NS records. If you're keeping the same DNS provider but just pointing to a new server IP, you only update A/AAAA records.

Can I migrate DNS without downtime?

Yes, if you lower TTL in advance, copy all records correctly, and test the new server before switching. There may be a brief period where some users see the old site, but with proper planning, downtime can be minimized to near zero.

What happens to my email during DNS migration?

Email depends on MX records. If you update MX records to point to the new mail server, email will flow to the new server after propagation. To avoid losing mail, keep the old mail server active for a few days and set up mail forwarding if possible.

Should I use a third-party DNS provider like Cloudflare?

Using a third-party DNS provider can make future migrations easier because you only update IPs at one place, not nameservers. It also offers faster TTL control and DDoS protection. However, it adds an extra layer of configuration, so it's not required for a smooth move.

What if I forget to copy a TXT record?

Missing TXT records can cause email authentication failures (SPF, DKIM) or break domain verification for services like Google Workspace. Always export your entire zone file and compare it after migration. If you miss one, you can add it later—it will propagate quickly if TTL is low.