Changing nameservers without breaking your site or email: what moves, what breaks, and the real wait
Changing nameservers hands the whole DNS zone to a new provider at once, so any record the new provider doesn't have stops existing for every resolver that has switched over, and resolvers can keep using the old provider for 48 hours or more after the registry updates (about 72 hours from when you save the change if the registrar takes the full 24 hours Cloudflare's guide allows, and longer if a resolver re-caches the old provider's own NS records). Copy every record first, including MX and the SPF, DKIM and DMARC records your email depends on, turn DNSSEC off at the registrar and wait out the 86400-second .com DS TTL after the registry drops the DS before switching, and keep the old provider answering until the old delegation has expired from caches.
By tld.reviews research · Published · Updated
A nameserver change waits on up to three things: the registrar's update (up to 24 hours in Cloudflare's guide), the .com delegation TTL of 172800 seconds (48 hours, our measurement on 2026-12-04, set by the .com zone rather than your account), and possibly the old provider's own NS TTL; with DNSSEC on, the 86400-second DS TTL comes first. Editing a single record instead waits only on that record's TTL: 3600 means a resolver may cache it for 3600 seconds, one hour.
Answer by situation
| Your situation | What to do | Why (sourced number) | Check first |
|---|---|---|---|
| Moving DNS to a new provider (a nameserver change) | Recreate every record at the new provider, switch nameservers, and keep the old zone's records serving for at least 48 hours after the registry updates, or the old zone's NS TTL after you point its NS records at the new nameservers, whichever is later (48 hours plus that TTL if you can't) | Resolvers may keep the old nameservers for the .com delegation TTL, 172800 seconds in our test | That the new provider answers correctly for every name before the switch |
| Editing one record (an A, MX or CNAME), nameservers unchanged | Lower that record's TTL at least one old TTL ahead of the edit, then make the change | RFC 1035: a record may be cached for its TTL in seconds; TTL 3600 is one hour | The record's current TTL in a lookup |
| Email hosted by a separate provider | Copy the MX records, the SPF and DMARC TXT records and every DKIM record (TXT or CNAME) exactly | Cloudflare's setup guide lists MX and these TXT records as the email records to review before a switch | Every DKIM selector name: in the old zone, from the email provider, or in the s= tag of the DKIM-Signature header on mail you've sent |
| DNSSEC is on | Turn it off at the registrar, confirm the DS is gone at the registry, wait 86400 seconds (our .com DS measurement; Cloudflare's transfer page also says at least 24 hours), then switch; re-enable it at the new provider afterwards | Cloudflare: changing nameservers with DNSSEC active can make the domain unreachable | Whether a DS record shows for the domain |
| Moving the domain to Cloudflare Registrar | Switch to Cloudflare's nameservers first; third-party nameservers aren't an option there | Cloudflare: every domain on its registrar uses Cloudflare nameservers | That the DNS host you want to keep isn't a different provider |
| Choosing how many nameservers to list | At least 2; RFC 2182 advises more than two | RFC 1034 requires at least 2 servers per zone; a registrar can cap the maximum (NameSilo's help page: 13; others Not verified). More than the provider assigns means adding a secondary provider that serves the same zone | That you list exactly the nameservers your DNS provider assigned |
| Also transferring the domain to another registrar | Change nameservers and transfer as separate steps, nameservers first if the domain uses the old registrar's default nameservers | Namecheap: nameservers stay the same during a transfer to it, and downtime comes from the old registrar's default nameservers, which stop working once the domain leaves | The transfer walkthrough |
What you need before switching
- Every record in the current zone: an export or zone file from the current provider, or a copy of its records page. A lookup tool can't list subdomains you don't know about.
- The record TTLs, so you know how long each old answer can live in caches.
- Your email provider's required records: MX, the SPF TXT record, each DKIM record under
_domainkey(a TXT record, or a CNAME if your email provider hosts the key) and the DMARC TXT record at_dmarc. - Whether DNSSEC is on, and access to the registrar account to turn it off and to change nameservers.
- The new provider's assigned nameservers, exactly as it lists them.
Switching nameservers without a gap, step by step
- Export the current zone. Make a checklist of the apex A or AAAA record, www, every CNAME (including verification CNAMEs for other services), MX, the SPF, DKIM and DMARC records, and any SRV or CAA records.
- Create the same records at the new provider before touching the registrar.
- Query the new provider's nameservers directly (for example
dig @new-nameserver example.com MX) and compare each answer with the old zone. If a name is missing, a resolver that switches will get NXDOMAIN for it. - If DNSSEC is on, turn it off at the registrar, then check the registry no longer has a DS record:
dig +tcp @a.gtld-servers.net example.com DSshould return none in the answer. From then, wait at least 86400 seconds (24 hours), the .com DS TTL in our measurement, so validating resolvers drop the cached DS; Cloudflare's transfer page also says to wait at least 24 hours. - Change the nameservers at the registrar to the new provider's, at least 2 of them. Cloudflare's guide allows up to 24 hours for the registrar to update them.
- Check the registry has the new set:
dig @a.gtld-servers.net example.com NS(add+tcpif UDP times out, as it did for us). - Where the old provider lets you, change the NS records in the old zone to the new nameservers as soon as the registry shows the new set. The old provider still answers queries itself, but a resolver that re-fetches the NS records from it then picks up the new nameservers instead of re-caching the old ones. Keep every other record there serving until 48 hours after the registry updates or the old zone's NS TTL after your NS edit, whichever is later. With example.com's 86400-second NS TTL and a same-day edit, that is 48 hours; if you couldn't edit the NS records, it is 48 hours plus the old zone's NS TTL (72 hours at 86400 seconds). Then remove the old zone and re-enable DNSSEC at the new provider.
Tip: Edit records at the new provider only after the switch has settled. Until then, some resolvers still use the old zone, and a record changed in only one place gives two answers.
The clocks behind the wait, in seconds and hours
| Clock | Seconds | Hours or minutes | What sets it |
|---|---|---|---|
| TTL 3600 on a record | 3600 | 1 hour | You, at your DNS provider |
| .com delegation (our measurement) | 172800 | 48 hours | The .com zone, not your account |
| example.com's NS records at its own DNS host (our measurement) | 86400 | 24 hours | The DNS provider hosting the zone |
| .com negative answer, NXDOMAIN (our measurement) | 900 | 15 minutes | The .com zone's SOA record (RFC 2308: the lesser of its TTL and MINIMUM) |
| Registrar update plus the .com delegation, before any old-zone NS TTL | 259200 | 72 hours | Cloudflare's up to 24 hours for the registrar, then 48 hours of cached delegation |
| The same, plus example.com's NS TTL if a resolver re-caches the old NS set | 345600 | 96 hours | Adds the old provider's NS TTL; avoided by pointing the old zone's NS records at the new nameservers as soon as the registry shows the new set |
Our delegation TTL measurement
$ dig +tcp @a.gtld-servers.net example.com NS
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 39912
;; flags: qr rd; QUERY: 1, ANSWER: 0, AUTHORITY: 2, ADDITIONAL: 13
;; AUTHORITY SECTION:
example.com. 172800 IN NS hera.ns.cloudflare.com.
example.com. 172800 IN NS elliott.ns.cloudflare.com.
;; SERVER: 192.5.6.30#53(192.5.6.30)
;; WHEN: Fri Dec 04 01:14:03 +08 2026
$ dig +tcp @hera.ns.cloudflare.com example.com NS +norec
;; flags: qr aa; QUERY: 1, ANSWER: 2, AUTHORITY: 0, ADDITIONAL: 1
example.com. 86400 IN NS elliott.ns.cloudflare.com.
example.com. 86400 IN NS hera.ns.cloudflare.com.
;; SERVER: 173.245.58.162#53(173.245.58.162)
;; WHEN: Fri Dec 04 01:27:26 +08 2026
$ dig +tcp @a.gtld-servers.net this-name-does-not-exist-tldreviews-20261204.com A
;; ->>HEADER<<- opcode: QUERY, status: NXDOMAIN, id: 50791
com. 900 IN SOA a.gtld-servers.net. nstld.verisign-grs.com. 1796318073 1800 900 604800 900
;; SERVER: 192.5.6.30#53(192.5.6.30)
;; WHEN: Fri Dec 04 01:15:03 +08 2026
$ dig +tcp @a.gtld-servers.net cloudflare.com DS
;; flags: qr aa rd; QUERY: 1, ANSWER: 1, AUTHORITY: 13, ADDITIONAL: 27
cloudflare.com. 86400 IN DS 2371 13 2 32996839A6D808AFE3EB4A795A0E6A7A39A76FC52FF228B22B76F6D6 3826F2B9
;; SERVER: 192.5.6.30#53(192.5.6.30)
;; WHEN: Fri Dec 04 03:21:21 +08 2026This is our measurement, not a registry statement, and it covers .com only. UDP queries from our network timed out, so we used TCP. A resolver may hold the .com referral for 172800 seconds, and since RFC 2181 ranks an answer from the zone's own servers above a referral, one that asks the old provider can replace it with that provider's NS set and keep it for that NS TTL (86400 seconds for example.com). That can stretch the wait past 48 hours, which is why the old zone's NS records should point at the new nameservers as soon as the registry updates, where the provider allows it.
The DS TTL in the last query (86400 seconds) is how long a validating resolver may keep a DS record after the registry removes it, which is why the DNSSEC wait counts from when the registry drops it, not from when you switch DNSSEC off.
When this answer doesn't work: what would change it
- Keeping DNSSEC on: turning it off leaves the domain unsigned for the whole move. Cloudflare documents a migration with DNSSEC kept on when the old provider can add the new provider's DNSKEY records at the zone apex and serve them. Without that support, the switch means a period without DNSSEC.
- Another extension: we measured .com only. Other registries publish their own delegation TTLs, so query that TLD's servers the same way.
- A resolver that caps TTLs: RFC 2181 makes a TTL a maximum, not a requirement, so some visitors may switch sooner than these waits.
- A registrar that requires its own DNS: Cloudflare Registrar does, so the choice of DNS provider and registrar is one decision there.
- Your registrar's limits: a registrar can cap how many nameservers you list, so check yours before adding a secondary provider.
- The domain is already down: if it isn't resolving before you start, read its status first; see why a domain stopped working.
Questions about nameservers and TTL
TTL 3600: seconds or minutes?
Seconds. RFC 1035 defines a TTL as the number of seconds a record may be cached before it should be discarded, so 3600 is 60 minutes. It is a maximum: a resolver may drop it sooner, and one that cached the record just before your edit can serve the old value for up to an hour.
Does changing nameservers affect email, or only the website?
Both: MX and the SPF, DKIM and DMARC records live in the same zone as the website's. With identical email records at the new provider first, mail keeps flowing. If MX is missing there, senders that have switched fall back to the domain's A or AAAA record (RFC 5321's implicit MX), so mail goes to that host, or fails if it doesn't accept mail.
Nameserver change or record change: which wait applies?
A record change waits for that record's own TTL, which you set. A nameserver change waits for the .com delegation TTL, 172800 seconds in our test, plus up to the old provider's NS TTL if a resolver re-cached its NS records. With DNSSEC on, the 86400-second DS wait comes before the switch.
How many nameservers: is two enough, or are more safer?
RFC 1034 requires at least 2, and RFC 2182 advises more than two, since with two listed the zone runs on one whenever either is down. Going past what your provider assigns means a second provider serving the same zone: more resilience, but records and DNSSEC keys must stay in sync. With one provider, list exactly what it assigned.
Where to ask about this
Questions, or an edge case we missed on nameserver changes: email corrections@tld.reviews. The contact page lists what to include.
Sources
- How to transfer a domain without downtime
- Why your domain stopped working: status, fix and deadline
- tld.reviews measurement: .com delegation, negative-answer and DS TTLs from a.gtld-servers.net (dig, 2026-12-04)
- Cloudflare DNS docs: set up a primary zone (full setup)
- RFC 1035: Domain names, implementation and specification
- RFC 5321: Simple Mail Transfer Protocol
- RFC 2181: Clarifications to the DNS specification
- RFC 2308: Negative caching of DNS queries (DNS NCACHE)
- RFC 1034: Domain names, concepts and facilities
- RFC 2182: Selection and operation of secondary DNS servers
- Cloudflare Registrar FAQ
- Cloudflare Registrar: Transfer your domain to Cloudflare
- NameSilo help: nameserver manager
- Namecheap help: will the nameservers associated with my domain be transferred over?
- Namecheap help: transfer a domain to Namecheap with minimal downtime
tld.reviews is run by NameSilo. NameSilo is priced, compared and ranked by the same rules as every other registrar: prices come from each registrar's official pricing page or API, rankings order the registrars in our comparison records by lowest verified price, and a registrar without a verified price there isn't ranked. How rankings are calculated · About tld.reviews