DNS Not Resolving After Server Migration? Nameserver & Propagation Troubleshooting Guide

Priya

Content Writer & Researcher

Last Updated: 22 September 2026
DNS Not Resolving After Server Migration? Nameserver & Propagation Troubleshooting Guide
πŸ–₯️

Server Migration Causing DNS Chaos? We Fix It Right the First Time

CloudHouse Technologies manages complete server migrations including DNS record updates, TTL pre-staging, and propagation monitoring. No guesswork β€” just clean cutover with zero downtime. Talk to our migration team today.

πŸ–₯️12,400+PCs Fixed
⭐4.9β˜…Google Rating
⚑<15 minAvg. Response
πŸ›‘οΈISO 27001Certified

You've just completed a server migration β€” the data transferred cleanly, the new server is running β€” and then you notice that some domains aren't resolving. Some visitors see the new site, others still hit the old server, and a few get nothing at all. DNS issues after a server migration are among the most stressful post-migration problems because the root causes are spread across multiple systems and time zones. This guide gives you a systematic way to diagnose and fix them fast.

Why DNS Breaks After a Server Migration

A server migration doesn't automatically update DNS. DNS records point domains to IP addresses, and those pointers live in two places: the domain registrar's nameserver settings and the authoritative nameserver's zone file. When you move to a new server with a new IP address, you must update these records manually β€” and until propagation completes globally, some resolvers still cache the old IP.

The three most common causes of DNS failure after migration are:

  • Nameservers not updated β€” the domain still points to the old hosting provider's nameservers
  • Zone file records not updated β€” the nameserver is correct but the A record still contains the old IP
  • TTL caching β€” DNS resolvers around the world cached the old record before you changed it, and the TTL hasn't expired yet

πŸ’‘ None of these worked? Skip the guesswork.

Get Expert Help β†’

Step 1: Confirm What DNS Currently Shows

1Check the authoritative answer for the domain

Use dig to bypass local resolver cache and query the authoritative nameserver directly:

dig +trace yourdomain.com A | tail -20

The final answer should show your new server's IP. If it shows the old IP, the zone record hasn't been updated yet.

2Check which nameservers the domain is delegated to
dig NS yourdomain.com +short

If these nameservers still belong to your old hosting provider, all zone file changes on the new server are irrelevant until you update the NS delegation at the registrar.

3Check global propagation status

Tools like whatsmydns.net show the resolved IP from multiple geographic locations simultaneously. This tells you whether you're seeing a global outage or just a regional caching delay.

1Log into your domain registrar (GoDaddy, Namecheap, Cloudflare Registrar, etc.)

2. Update the nameserver fields to point to your new hosting provider's nameservers. For cPanel servers this is typically:

ns1.yourhostingprovider.com
ns2.yourhostingprovider.com

3. Save and wait. Nameserver delegation changes propagate in 24–48 hours. During this window, DNS resolution for the domain is unpredictable because different resolvers may use either the old or new nameservers.

4. Reduce the impact of the wait by temporarily adding the new A record to BOTH old and new nameservers if you have access to both. This ensures that whichever nameserver a resolver queries, it gets the correct new IP.

Step 3: Fix Zone File Records (Nameserver Level)

Once the correct nameservers are in place (or if nameservers were already correct and only the A record is wrong), update the zone file on the authoritative nameserver.

1. For cPanel/WHM servers

Log into WHM β†’ DNS Functions β†’ Edit DNS Zone. Select the domain and update:

  • A record for the bare domain (@) β†’ new server IP
  • A record for www β†’ new server IP
  • MX records β†’ verify these still point to the correct mail server (migration often breaks mail)
2For Plesk servers

Go to Plesk β†’ Domains β†’ [domain] β†’ DNS Settings. Update the A records for @ and www to the new IP.

3For DirectAdmin servers

Log in as admin β†’ DNS Administration β†’ [domain]. Edit the A record entries directly.

4Verify the zone file change propagated from the nameserver itself:

dig @ns1.yourhostingprovider.com yourdomain.com A +short

If this returns the new IP immediately, the zone file is correct. The remaining wait is just TTL-based caching in recursive resolvers worldwide.

Step 4: Fix TTL Caching Issues

TTL (Time To Live) is the number of seconds DNS resolvers are allowed to cache a record. If you changed the A record but the old TTL was 86400 (24 hours), resolvers that cached it just before your change won't query the nameserver again for up to 24 hours.

1. Lower the TTL before your next migration

Best practice is to reduce TTL to 300 (5 minutes) 24–48 hours before a migration. This way, when you flip the A record, the old cached entry expires globally within 5 minutes rather than 24 hours. After propagation is confirmed, raise TTL back to 3600 or 86400.

2If the TTL is already high and the migration has happened

You cannot speed up global TTL expiry β€” you can only wait. However, you can help specific users by asking them to flush their local DNS cache:

# Windows
ipconfig /flushdns

# macOS
sudo dscacheutil -flushcache; sudo killall -HUP mDNSResponder

# Linux
sudo systemd-resolve --flush-caches

For users hitting the old server, you can also add the new IP to their local hosts file as a temporary workaround:

NEW_SERVER_IP  yourdomain.com
NEW_SERVER_IP  www.yourdomain.com
1MX records
dig MX yourdomain.com +short

These should point to your mail server hostname, not the old server IP. If mail runs on the same server, the MX hostname (e.g., mail.yourdomain.com) must resolve to the new IP via its own A record.

2SPF record
dig TXT yourdomain.com +short | grep spf

If the SPF record contains the old server's IP (ip4:OLD_IP), update it to include the new IP. Otherwise outbound email from the new server will fail SPF checks and land in spam.

3PTR (reverse DNS) record

Reverse DNS must be set at the hosting provider level for the new IP. Contact your new host to create a PTR record mapping the new IP to mail.yourdomain.com. Missing PTR records cause mail rejection at major providers.

Step 6: Prevent DNS Problems on Future Migrations

1. Use a pre-migration checklist: lower TTLs 48 hours before, document every DNS record before migrating, verify zone files on the new server before cutting over

2. Keep the old server running for 48–72 hours post-migration so visitors resolving the old IP still land somewhere while propagation completes

3. Use Cloudflare as your DNS provider β€” Cloudflare's anycast network propagates record changes globally in under 5 minutes, eliminating most TTL-wait headaches

4. Set up monitoring on the new server IP immediately so you catch any resolution failures within minutes rather than hours

DNS problems after migration are time-sensitive β€” every hour of incorrect resolution means lost visitors and potential revenue. If you need a managed migration with zero DNS downtime, CloudHouse Technologies' server migration service handles every DNS record, TTL reduction, and propagation verification so your domains come up correctly the first time.

Get the Free Linux Server Admin Cheatsheet (PDF)

Essential commands for server management, networking, and troubleshooting β€” all on one printable page.

Running Linux servers? Let us manage them for you.

Our Managed Linux Server plans cover updates, security hardening, monitoring, and 24/7 incident response β€” so your servers stay up and your team stays focused.

  • Proactive OS patching and security updates
  • 24Γ—7 monitoring with instant alerting
  • Backup configuration and disaster recovery
  • Dedicated Linux engineers on call
See Pricing Plans β†’

What our customers say

β€œOur production server went down at 2 AM. CloudHouse had it back online in under 20 minutes. Incredible response time.”

Arun S.

CTO, SaaS Startup

β€œThey migrated our entire infrastructure from Ubuntu 18 to 22 with zero downtime. Couldn't have asked for better.”

Deepak N.

DevOps Lead

Frequently Asked Questions

DNS propagation typically takes 24–48 hours for nameserver changes and 1–4 hours for A record changes (depending on the old TTL value). You can speed this up by reducing TTL to 300 seconds at least 24 hours before the migration.

Need this done for you?

Server Migration Service

Move Linux and Windows servers with zero-downtime planning.

Learn more

Book your free 15-minute diagnosis

A certified technician will call you back within 15 minutes during business hours.

Share this article

Leave a Comment

Comments (0)

Loading comments...