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
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
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.
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.
BASH
# 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 +norecursecom. 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:
TEXT
;; 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.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
BASH
# 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 +answerWhen the TLD still shows the old set
- 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.
Making the overlap harmless
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.