Blog

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

Which change you're making, what to do, and which clock sets the wait
Your situationWhat to doWhy (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 testThat the new provider answers correctly for every name before the switch
Editing one record (an A, MX or CNAME), nameservers unchangedLower that record's TTL at least one old TTL ahead of the edit, then make the changeRFC 1035: a record may be cached for its TTL in seconds; TTL 3600 is one hourThe record's current TTL in a lookup
Email hosted by a separate providerCopy the MX records, the SPF and DMARC TXT records and every DKIM record (TXT or CNAME) exactlyCloudflare's setup guide lists MX and these TXT records as the email records to review before a switchEvery 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 onTurn 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 afterwardsCloudflare: changing nameservers with DNSSEC active can make the domain unreachableWhether a DS record shows for the domain
Moving the domain to Cloudflare RegistrarSwitch to Cloudflare's nameservers first; third-party nameservers aren't an option thereCloudflare: every domain on its registrar uses Cloudflare nameserversThat the DNS host you want to keep isn't a different provider
Choosing how many nameservers to listAt least 2; RFC 2182 advises more than twoRFC 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 zoneThat you list exactly the nameservers your DNS provider assigned
Also transferring the domain to another registrarChange nameservers and transfer as separate steps, nameservers first if the domain uses the old registrar's default nameserversNamecheap: 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 leavesThe 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

  1. 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.
  2. Create the same records at the new provider before touching the registrar.
  3. 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.
  4. 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 DS should 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.
  5. 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.
  6. Check the registry has the new set: dig @a.gtld-servers.net example.com NS (add +tcp if UDP times out, as it did for us).
  7. 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

What each TTL means for the wait, from our .com measurement and the DNS standards
ClockSecondsHours or minutesWhat sets it
TTL 3600 on a record36001 hourYou, at your DNS provider
.com delegation (our measurement)17280048 hoursThe .com zone, not your account
example.com's NS records at its own DNS host (our measurement)8640024 hoursThe DNS provider hosting the zone
.com negative answer, NXDOMAIN (our measurement)90015 minutesThe .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 TTL25920072 hoursCloudflare'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 set34560096 hoursAdds 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 2026
Our dig queries on 2026-12-04 against a.gtld-servers.net and example.com's DNS host, abridged to the header, record and server lines

This 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

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