How to fix a nameserver mismatch when your domain is not resolving
A nameserver mismatch means your registrar points the domain at one DNS provider while your records live at another. Fix it by setting the registrar's nameservers to the provider that holds the correct records, then waiting for the change to spread.
Nameservers are the servers that answer the question "where does this domain live?" Your registrar (the company you bought the domain from) publishes which nameservers are in charge. If those are not the ones holding your website and email records, visitors see errors, email bounces, or an old version of your site.
What the problem is and what people see
There are really two places involved. The registrar stores the list of nameservers for your domain. The DNS host (which may be the same company or a different one) stores the actual records: where the website is, where email goes, and so on. A mismatch happens when these two do not agree.
Common causes:
- You moved your website or DNS to a new provider but never changed the nameservers at the registrar.
- You changed nameservers, but the new provider has no records for your domain yet, or only some of them.
- The registrar lists nameservers from two different providers, so some visitors get one answer and some get another.
- An old nameserver was left in the list after a migration and now points at an empty or outdated zone.
- Only one nameserver is listed, or one of them no longer responds.
What people see depends on the cause. Typical signs are DNS_PROBE_FINISHED_NXDOMAIN or "server not found" in the browser, a site that works for you but not for a customer, a site that works on some days and not others, an old copy of the site, or email that stops arriving.
Why it matters
If your domain does not resolve, nobody can reach your site, and search engines that cannot fetch your pages for a while may drop them from results. Email is hit too: if the MX records cannot be found, incoming mail bounces or is delayed. Outgoing mail can also fail checks such as SPF and DKIM when the records that prove your identity are missing, which pushes messages to spam (see emails going to spam).
There is a trust and security side as well. Nameservers left pointing at a provider account you no longer use or control can be a risk, because whoever controls that zone controls what your domain says. Clean nameserver settings are part of basic domain hygiene.
How to check if you have it
You can check this for free in a few minutes.
- Log in to your registrar and write down the nameservers listed for the domain. They usually look like
ns1.example-host.comandns2.example-host.com. - Ask the public internet what it sees. In a terminal, run
dig NS yourdomain.com +short(on Windows,nslookup -type=NS yourdomain.com). Without a terminal, use the Dig tool in the Google Admin Toolbox, or the ICANN Lookup page (lookup.icann.org), which shows the nameservers registered for the domain. - Compare the two lists. They should match.
- Log in to the DNS host named in those nameservers and check that a zone for your domain exists and contains your A, CNAME, MX and TXT records.
- Ask each nameserver directly:
dig yourdomain.com A @ns1.example-host.com. If one returns an answer and another returns nothing or an error, you have a mismatch.
A few warning signs: the nameservers belong to a provider you stopped using, there is only one nameserver, the list mixes two providers, or a nameserver answers with "refused" or does not answer at all.
How to fix it in general
The rule is simple: one provider holds your DNS, and the registrar points to exactly that provider's nameservers.
- Decide where DNS should live. Usually this is wherever your website or email is managed, or a DNS service such as Cloudflare. Pick one.
- Copy your records first. In that provider, create the zone and add every record you need: website A or CNAME records, MX records for email, and TXT records for SPF, DKIM, DMARC and domain verification. Compare against the old zone if you can still reach it. Missing MX or TXT records are the most common cause of broken email after a switch.
- Check DNSSEC. If DNSSEC is switched on at your registrar (a DS record is published), changing nameservers without handling it can make the domain fail to resolve for validating resolvers. Remove the DS record at the registrar before the switch, or set it up again with the new provider.
- Change the nameservers at the registrar. Replace the whole list with the two or more nameservers your chosen provider gave you. Do not mix providers. Cloudflare, for example, gives each account a specific pair, so copy exactly the names shown in your dashboard.
- Remove leftovers. Delete old nameservers from the list, and later remove old zones or accounts you no longer need.
- Wait. Nameserver changes are often visible within an hour or two but can take up to 48 hours to reach everyone, because the old values are cached.
Platform notes
Menu names change between versions, so look for a section called Nameservers, DNS or Domain settings.
- Cloudflare: after adding the site, Cloudflare shows two nameservers to enter at your registrar. The domain stays inactive until the registrar uses them. See the Cloudflare nameserver guide.
- GoDaddy: in the domain's DNS settings, look for Nameservers and choose to enter your own. See the GoDaddy guide.
- Namecheap: the Nameservers dropdown on the domain page usually offers Namecheap BasicDNS or Custom DNS.
- Shopify, Wix and Squarespace: if you bought the domain elsewhere, these platforms often let you connect with DNS records at your current DNS host instead of changing nameservers. Which option applies depends on how the domain was bought and connected, so follow the connection instructions shown in the platform's domain settings.
- Netlify: you can either use Netlify DNS and its nameservers, or keep your DNS elsewhere and add records. Do not do half of each.
Guides for each of these are available on the site under /fix/nameserver-misconfigured/.
How to confirm the fix worked
- Run
dig NS yourdomain.com +shortagain. The result should match the registrar exactly, with no old servers left. - Query each nameserver directly with
dig yourdomain.com A @nameserverand confirm they all return the same answer. - Check that
dig MX yourdomain.com +shortreturns your mail servers. - Open the site in a private window and from a phone on mobile data, which avoids your own cached results.
- Send a test email to and from the domain.
If some checks still show old values, wait and test again later. Caches expire on their own.
How to stop it coming back
- Before any migration, write down the current nameservers and export or screenshot every DNS record.
- Change nameservers as the last step of a move, only after the new zone is complete.
- Keep a short note of who holds the registrar login and which provider holds DNS.
- Use at least two nameservers from the same provider.
- Turn on registrar lock and two step login on the registrar account.
- Recheck after any change of hosting, agency or email provider.
Nameserver and related domain checks are part of the week 10 service at SiteMonday (domain, SSL and email deliverability), which reports what it finds with a ranked fix list. The fixing itself is up to you or your developer.
Questions
How long does a nameserver change take to work?
Often an hour or two, but it can take up to 48 hours for every network to stop using the old values. During that time some visitors may see the old setup.
Can I use nameservers from two different providers?
No, not as a normal setup. Each provider holds its own separate records, so visitors can get different or missing answers depending on which server replies.
My site works for me but not for others. Is that a nameserver problem?
It can be. Your device may have cached older values, while others get the answer from the current nameservers. Test from a different network and query the nameservers directly.
Will changing nameservers break my email?
It can if the new zone is missing your MX and TXT records. Copy all records to the new provider before you switch the nameservers.
What is the difference between nameservers and DNS records?
Nameservers say which provider is in charge of your domain. DNS records, such as A, MX and TXT, are the details that provider holds about where your site and email go.
Do I need to change nameservers to connect my domain to a website builder?
Not always. Many builders let you keep your nameservers and add a few DNS records instead. Check the builder's domain instructions and follow only one method.