You switched nameservers at the registrar, the panel said the change was saved, and an hour later dig example.com NS still lists the old provider. The obvious question is whether the change failed or whether something is still holding on to the old answer. From your laptop those two cases look identical, and they need opposite responses: one means fix something at the registrar, the other means wait. The quickest way to tell them apart is to stop asking your resolver and ask the servers that actually publish the delegation, the TLD nameservers.
Two NS sets live in two different zones
Most of the confusion comes from the fact that a domain's nameservers are written down in two places.
The first copy lives in the parent zone. For example.com, the parent is the .com zone run by the registry. It holds NS records saying which nameservers are responsible for example.com. This is the delegation. When you change nameservers in the registrar panel, the registrar sends that change to the registry, and the registry updates this copy. You never edit it directly.
The second copy lives in the child zone itself, the zone file hosted at your DNS provider. Every zone has NS records at its apex (the bare domain), and they are supposed to match the delegation. Nothing enforces that. Changing nameservers at the registrar does not touch the NS records inside the old provider's zone, and the new provider's zone lists whatever it was set up to list.
When you run dig example.com NS without naming a server, the query goes to whatever recursive resolver your machine uses. That resolver hands back the NS set it has in cache, and it may have learned that set from either zone.
How a resolver learns and caches a delegation
Here is what a recursive resolver does for example.com when its cache is empty:
- It asks a root server. The root does not know
example.com, so it replies with a referral: the NS records for.com. - It asks one of the
.comservers. These are not authoritative forexample.comeither, so they reply with another referral. The NS records forexample.comarrive in the AUTHORITY section, the answer section is empty, and theaa(authoritative answer) flag is not set. If the nameservers sit inside the domain itself, such asns1.example.com, the reply also carries glue: A or AAAA records for those hostnames so the resolver can reach them. The TTL on these records is set by the registry, not by you. - The resolver caches that NS set and sends the real question to one of the listed nameservers. That server answers with the
aaflag set. - If the resolver later receives NS records for
example.comfrom the child zone itself, either because someone queried NS directly or because the authoritative server included them in its reply, it may replace the cached referral data. RFC 2181 ranks authoritative answer data above referral data. Resolver implementations differ in how they apply this: some prefer the child's NS set, some stick closer to the parent's.
Now apply that to a nameserver change. A resolver that cached the old delegation before you switched keeps sending queries to the old servers until that cache entry expires. If the old provider still hosts the zone, those servers keep answering authoritatively, and their replies can include their own NS records, which still list the old servers. Depending on the resolver, that can refresh the cached NS set with the old zone's TTL and stretch the old delegation out longer than the parent TTL alone would suggest.
None of this is visible from the registrar panel, and nothing you do there can clear caches in other people's resolvers. What you can do is check what the parent zone publishes right now.
Asking the parent zone directly
dig +trace performs the resolution itself, starting from the root servers and following each referral, instead of asking your resolver for a cached answer. The part to read is the block returned by the TLD servers. For a more targeted check, find the TLD's nameservers and query one of them without recursion.
# Walk the delegation from the root, bypassing your resolver's cached NS set
dig +trace example.com NS
# List the TLD's own nameservers, then ask one of them directly
dig com. NS +short
dig @a.gtld-servers.net example.com NS +norecurse
For a different TLD, replace com. with that TLD and use one of the names it returns. TLD server names differ per registry.
Illustrative output format of the direct TLD query:
;; flags: qr; QUERY: 1, ANSWER: 0, AUTHORITY: 2, ADDITIONAL: 1
;; AUTHORITY SECTION:
example.com. 172800 IN NS ns1.newdns.example.
example.com. 172800 IN NS ns2.newdns.example.
An empty answer section and no aa flag are normal here. This is a referral, and the AUTHORITY section is the delegation the registry is handing out. If it lists the new nameservers, the registrar change reached the registry and is live in the TLD zone. The TTL shown is how long resolvers are allowed to cache that referral, and it is the minimum you should expect old answers to linger. Querying two or three of the TLD servers is a reasonable sanity check, since there is normally a short window after an update where not every server has it yet.
Comparing what each layer says
Once you know what the parent publishes, compare it against the two child zones and a public resolver:
# What the new provider's zone says about itself
dig @ns1.newdns.example example.com NS +norecurse
# What the old provider is still serving
dig @ns1.olddns.example example.com NS +norecurse
# What a public resolver has cached; run it twice and watch the TTL count down
dig @1.1.1.1 example.com NS +noall +answer
If the TLD shows the new set but your resolver or a public resolver shows the old one, the change worked and you are looking at cache. The TTL in the resolver's answer counts down from the value it cached, so it tells you roughly how long that particular entry has left. Different resolvers cached at different moments, which is why one network sees the new provider while another still sees the old.
If the old provider's servers still answer with the old NS set, they are actively feeding that answer to any resolver that still talks to them. That is worth fixing, covered below.
If the new provider's zone lists nameservers that differ from the delegation, fix that too. A mismatch rarely breaks resolution outright, but child-preferring resolvers will use whatever the child zone says, and it makes later troubleshooting harder.
On a support desk this comparison is usually the first check on any ticket that reads changed nameservers, still not working. It separates registrar problems from waiting problems in under a minute, which saves a lot of back and forth.
When the TLD still shows the old set
If the parent zone itself still hands out the old nameservers, waiting will not help. The change has not been published, and the cause is upstream of DNS caching. Common reasons:
- The registrar has not submitted the change yet, or it is waiting on something such as contact email verification or an unpaid renewal.
- The domain carries a status that blocks updates.
clientUpdateProhibitedis set by the registrar and can usually be lifted from the registrar panel or by their support.serverUpdateProhibitedis set by the registry and needs a request through the registrar. A WHOIS or RDAP lookup shows the current status codes. - The registry rejected the nameserver hostnames, for example because a hostname inside the domain was not registered as a host with glue, or because of a typo. Rules differ per TLD.
- The registry publishes zone updates on a schedule rather than immediately. Whether this applies depends on the TLD, so check the registry's or registrar's documentation instead of assuming.
If the domain uses DNSSEC, the DS record also lives in the parent zone, and a stale one causes a different failure entirely. That case is covered in Moved to Cloudflare Nameservers and Got SERVFAIL From a Stale DS Record.
Making the overlap harmless
Since you cannot purge other people's caches, the practical goal is to make it irrelevant which nameservers a resolver happens to ask.
Keep the zone at the old provider alive, with records identical to the new zone, until well past the parent's NS TTL. Deleting it on day one is what turns a slow propagation into an outage, because resolvers still pointed at the old servers start getting errors or empty answers.
If the old provider lets you edit apex NS records, change them to the new nameservers. Resolvers that land on the old servers then receive the new NS set in an authoritative reply and move on sooner, instead of having the old delegation reinforced.
Make sure the new zone's apex NS records match what you set at the registrar. Then leave it alone and recheck the TLD query and a couple of public resolvers after the TTL has passed.
One limit to keep in mind for the next migration: you can lower the TTL on records inside your own zone ahead of time, but the TTL on the delegation in the parent zone belongs to the registry. Plan for it rather than trying to work around it.
The short version: when dig shows old nameservers, ask the TLD servers before doing anything else. If the parent already publishes the new set, the change succeeded, and your job is to keep both providers serving the same data until caches age out. If the parent still shows the old set, go back to the registrar and find out why the update never reached the registry.