How to Fix a Website That Went Down After a Nameserver Change
A nameserver change moves your whole DNS zone to a new place. Learn why sites break afterwards and how to diagnose and fix the problem step by step.
10 min readUpdated Nov 19, 2026By XPASS Editorial Team

You change the nameservers for your domain, usually because you are moving to a new DNS host, a new hosting company or a performance service. A few minutes later the website that worked yesterday shows an error. Email may be bouncing too. It is a stressful moment, but in most cases the cause is ordinary and fixable once you understand what a nameserver change really does.
This guide explains what happens behind the scenes when nameservers change, the most common reasons a site breaks afterwards, and a step-by-step method to find the exact cause. It also covers how to prepare so that the next move is uneventful. If you want the background on records first, read what a DNS zone is and which record types it holds.
What a nameserver change actually does
Your domain has a parent, the registry of its top-level domain such as .com. The registry stores a small piece of information for your domain: the list of nameservers that are authoritative for it. This is called the delegation. When a visitor's resolver wants to find your website, it asks the root, then the registry, and the registry answers "ask these nameservers about this domain".
Those nameservers hold the DNS zone: the A records that point to your web server, the MX records for mail, the TXT records for verification and email authentication, and so on. The concepts are described in RFC 1034 and the record formats in RFC 1035.
Here is the key point. Changing nameservers does not copy your records. It only changes where the world looks for them. The new nameservers must already contain a correct zone, because from the moment the delegation changes, they are the source of truth. If the zone there is empty or incomplete, the answers will be empty or incomplete too.

The most common reasons a site breaks
Almost every post-change outage falls into one of the groups below.
- The new zone is empty or missing records. You added the domain to the new DNS host but never recreated the records. Resolvers asking the new servers receive no answer for the website name, and the browser reports that the server cannot be found.
- The A or AAAA record points to the wrong place. Maybe the old provider used a special internal address, or you copied a record that was correct for the old environment only.
- The www host or a subdomain was forgotten. The bare domain works but www does not, or the reverse. CNAME records for www, app, shop or mail are easy to overlook.
- Resolvers are still using cached data. Some users see the old site, some see an error, and you see something different again. This is expected for a while.
- A stale DS record is left at the registry. With DNSSEC enabled on the old provider, the registry may still hold a DS record. The new nameservers sign nothing or use other keys, so validating resolvers return a failure. The article on enabling DNSSEC and verifying the result explains the chain of trust.
- Mismatched nameservers at the registry. Only some of the nameservers were changed, or a typo was made, so a share of queries goes to a server that knows nothing about your domain.
- The new host expects different verification. Some platforms need a verification TXT record or a specific CNAME before they serve your site or issue a certificate. Until that happens the site shows a default page or a certificate warning.
- Email records were lost. MX, SPF, DKIM and DMARC records live in the same zone. If they are missing, mail breaks even though the website recovers.
Step 1: confirm what the world sees
Start by establishing which nameservers are currently published. From a terminal, you can run:
dig NS example.com +short
Replace example.com with your domain. You should see exactly the nameservers you intended, and all of them. If you still see the old ones, the change has not been accepted yet or was saved incorrectly at the registrar. Log in to the registrar and check the nameserver field, not only the DNS panel of a host. On Windows, nslookup -type=NS example.com gives similar results.
For a view that does not depend on your own machine, use a web-based DNS lookup tool, which queries from a separate network. Even a single outside check helps you separate "my computer is confused" from "everybody sees this".
Step 2: ask the new nameservers directly
This is the most useful test. Query a new nameserver by name, which bypasses all caches:
dig @ns1.newhost.example example.com A +norecurse
dig @ns1.newhost.example www.example.com A +norecurse
dig @ns1.newhost.example example.com MX +norecurse
Replace the server name with one of the nameservers your new provider gave you. Look at the status in the answer. A status of NOERROR with the expected address means the zone is fine. NXDOMAIN or an empty answer means the record is missing. A status of REFUSED often means the domain has not been added to that provider's account. If this direct query is correct but the public result is wrong, the issue is delegation or caching. If it is wrong here, fix the zone first.
Step 3: compare the old zone and the new zone
If the old provider still hosts the zone, export it or open it side by side with the new one. Make a table of every record: name, type, value, and TTL. Compare line by line. Pay attention to:
- The A and AAAA records for the root and www.
- CNAME records, since a CNAME cannot coexist with other records on the same name.
- MX records with the right priorities.
- TXT records, including SPF, DKIM selectors, DMARC and site verification strings.
- SRV, CAA and any records used by third-party services.
If the old zone has already been deleted, check any backup, a zone file export, an email from your previous provider, or the service pages of the tools you use, since they often show the records you need. Public DNS history tools and the old resolver caches can also give hints, but treat them as clues, not as authority.
Step 4: check delegation consistency
The parent registry and the child zone should agree on the nameserver list. Run:
dig NS example.com @a.gtld-servers.net +norecurse
dig NS example.com @ns1.newhost.example +norecurse
The first command asks a .com registry server and the second asks your new nameserver. The sets of nameserver names should match. When they do not, some resolvers get one answer and others a different one, which leads to the "works for me, not for you" pattern. If your domain uses another extension, use a nameserver of that registry instead; the IANA root zone database lists them. Also confirm that every listed nameserver answers. One dead or misspelled entry causes intermittent failures, because resolvers choose between the servers.
Step 5: look for a DNSSEC mismatch
If the domain had DNSSEC before the move, check whether the registry still publishes a DS record:
dig DS example.com +short
If it returns data, and your new provider does not sign the zone with the matching key, validating resolvers such as many public and ISP resolvers will treat your domain as broken. Typical symptoms: some networks fail with SERVFAIL while others work, because only validating resolvers care. The remedy is to remove the DS record at the registrar, wait for caches to clear, and then enable DNSSEC on the new provider with a fresh DS record if you want it. The background is in RFC 4033.
Step 6: verify the web server and certificate
Once the direct answers from the new nameservers are correct and the delegation is consistent, test the server itself. Request the site using the IP address, or use a command such as curl -I https://example.com. A few notes:
- If DNS returns the right address but the connection times out, check the server firewall and whether the hosting service is running.
- If the page loads with a certificate warning, the certificate may be bound to a different name or may need to be reissued after the move. Some platforms issue certificates only after DNS points to them.
- If you now point to a new host, make sure it knows your domain name. Many hosting systems serve a default page for any unknown host name.
A short worked example
Imagine example.com used the registrar's default nameservers, with an A record pointing to 203.0.113.10 and MX records for a mail service. The owner moves to a separate DNS host and changes the nameservers at the registrar. Ten minutes later the site fails and mail bounces.
Querying the new nameserver directly with dig @ns1.newhost.example example.com A returns NOERROR but an empty answer. The domain was added at the new host, but no records were created. The owner copies the A record, the www CNAME, the MX records and the SPF and DKIM TXT records from the old panel, which is still available. Another direct query now returns 203.0.113.10. Public resolvers that cached the empty answer keep failing briefly, because negative answers are cached too, and then recover. The site and mail return without touching the registrar again.
Notice the order: the fix happened at the new DNS host, not at the registrar, and the direct query confirmed it before anyone waited for propagation.
Quick reference table
| Symptom | Likely cause | What to do |
|---|---|---|
| Browser says the server cannot be found | Empty zone or missing A record at new host | Add the records, test with a direct query |
| Works on one network, fails on another | Caching or inconsistent nameserver list | Check NS at registry and at each server, wait for TTL |
| SERVFAIL on some resolvers | Stale DS record from old DNSSEC setup | Remove or replace the DS at the registrar |
| Root domain works, www fails | Missing CNAME or A for www | Create the www record |
| Certificate warning | Certificate not issued for the new setup | Reissue or validate again after DNS is correct |
| Site works, email bounces | MX, SPF or DKIM records were not copied | Recreate mail records from the old zone |
| Default hosting page appears | Host does not know your domain | Add the domain in the hosting panel |
What to do when you need the site back quickly
If the business cannot wait, the fastest safe option is often to revert. Put the old nameservers back at the registrar, as long as the old zone still exists and has not been deleted. Resolvers will gradually return to the old answers. Because TTLs apply in both directions, expect a similar delay. Then build and test the new zone properly, comparing it with the old one, and repeat the change at a quieter hour.
Another option is to leave the delegation alone and repair the new zone quickly while keeping an eye on a direct query. Choose according to how complete the new zone is and how much traffic you can afford to lose.
How to prepare the next move
Most of the pain comes from changing the delegation before the new zone is ready. A safer routine looks like this:
- Lower the TTL on your important records a day or two before the move, for example to a few minutes. This makes later corrections reach people sooner. Raise it again after things are stable.
- Export or copy every record from the current zone, including TXT and CAA records.
- Create the zone at the new provider and re-enter the records. Many providers can import a zone file.
- Test each record by querying the new nameservers directly, before changing anything at the registrar.
- If DNSSEC is on, plan the DS record: decide whether to remove it first and enable it again afterwards.
- Change the nameservers at a quiet time, and keep the old zone untouched for several days.
- Watch the site, email and certificates, and only then clean up the old provider.
Keeping a simple record of your domain's records in a document, or in a note outside your DNS panel, protects you from a deleted zone. When you manage the domain and DNS in the same place, as on the domains page, there is one less handoff to get wrong.
Limits and what to watch for
- Propagation is not one event. Different resolvers update at different times, so no tool can promise a single moment when everyone sees the change. Be careful about declaring success after one successful test.
- Negative caching exists. If a resolver asked while your records were missing, it may remember that "no such record" for a while.
- Your own device caches too. The browser and the operating system keep a local copy. Test from another network, such as a mobile connection, before assuming the setup is broken.
- Registry and registrar rules differ. Some extensions need extra steps, glue records for nameservers inside the same domain, or a waiting period after a transfer. Read the rules for your extension.
- Do not edit blindly. Changing several things at once, such as the A record, the nameservers and the certificate, makes it impossible to know which change helped. Change one thing, test it, and write down the result.
- Mail needs the same care as the website. A website can recover while mail is still failing, so check both.
If the symptom is a specific browser error, the guide to fixing DNS_PROBE_FINISHED_NXDOMAIN walks through that error in detail.
Summary
A nameserver change moves authority for your domain to a different set of servers; it does not move your records. When a site goes down afterwards, the usual causes are an empty or incomplete zone, wrong or missing records, a stale DS record, an inconsistent nameserver list, or ordinary caching. Work in order: confirm the published nameservers, query the new nameservers directly, compare the old and new zones, check delegation and DNSSEC, and finally test the server and certificate. Prepare the next change by lowering TTLs, building and testing the new zone first, and keeping the old one for a few days. When you are ready to review or manage your domain and its DNS settings, the domains page is the place to start.
Frequently asked questions
Why did my website stop working right after I changed nameservers?
Changing nameservers tells the world to ask a different set of servers about your domain. If the new servers do not hold a complete copy of your DNS records, or if resolvers still remember the old answers, visitors may see errors until the new zone is correct and caches expire.
How long does a nameserver change take to work?
There is no single number. The change at the registry is often quick, but resolvers cache the old delegation and old records according to their TTL values, so some visitors may see the new setup earlier than others. Plan for a window of hours and sometimes up to a couple of days.
Should I switch the nameservers back?
Often yes, if the site is business critical and you cannot fix the new zone quickly. Reverting to the old nameservers restores the old records, provided the old zone still exists. Fix the new zone first on the side, then switch again.
Can DNSSEC cause a site to fail after a nameserver change?
Yes. If the registry still publishes a DS record for keys that the new nameservers do not use, validating resolvers treat answers as invalid and the domain can appear to be down. Remove or update the DS record in step with the move.
How can I tell whether the problem is DNS or the web server?
Ask the new nameservers directly for your A record, and then compare it with the IP address of your hosting. If the address is right and the site still fails, the problem is likely on the server, the certificate or a firewall rather than in DNS.
References
About the author

Bob Kanokphon Thongdee
- Founder of XPASS VPN
- Co-founder of eSIMonline.asia
- More than 7 years in online marketing
- Founder of Cojourney Visa and Cojourney Travel
Ready to register your domain?
Search a name, compare extensions and pay once for the years you choose.
.com registration from $18.81 for the first year
Search domainsKeep reading

Domain & DNS Guides
What Is a DNS Zone, and Which Record Types Does It Contain?
A DNS zone is the set of records that tells the internet where your website, email and services live. Learn the main record types and how to read them.
10 min read

Domain & DNS Guides
How to Fix DNS_PROBE_FINISHED_NXDOMAIN
DNS_PROBE_FINISHED_NXDOMAIN means the name could not be resolved. Here is how to find out whether the fault is on your device or in the domain's DNS, and how to fix each case.
10 min read

Domain & DNS Guides
How to Enable DNSSEC and Verify the Result
Enabling DNSSEC takes two parts, signing the zone and publishing a DS record. Follow the steps, then verify the chain of trust and know how to roll back.
10 min read