How to Change Nameservers and Keep Website and Email Records
Plan a nameserver migration, preserve website and email DNS records, coordinate DNSSEC and verify the destination zone and returned NS set.
To change a domain’s nameservers, prepare the destination DNS zone, obtain its assigned nameserver set, and update the delegation at the registrar or relevant parent zone. Then verify both DNS and the services that use it. Changing nameservers does not automatically copy the old zone, move a website, or transfer domain registration.
A careful sequence reduces avoidable interruptions, but no generic checklist guarantees zero downtime. Your current and destination providers may have specific requirements for zone imports, DNSSEC, custom nameservers or registration restrictions. Use this guide to organize the work and the Bulk NS Checker to compare recursive NS answers along the way.
First decide whether a nameserver change is needed
If the task is simply to point a website at a new address, an A, AAAA or CNAME change at the current DNS host may be sufficient. A nameserver change is appropriate when you are moving authoritative DNS service or establishing a delegation to a different service.
A registration transfer is another operation. It may leave the nameserver delegation intact, but a bundled DNS subscription could have separate terms or dependencies. Identify what will happen to the existing DNS service before combining a registrar transfer with a DNS move. The nameservers versus DNS records guide helps separate these decisions.
For a delegated subdomain such as shop.example.com, the relevant change is usually an NS delegation in the example.com zone, rather than a registrar nameserver change for the whole domain. Cloudflare’s nameserver update documentation distinguishes that subdomain case from changes at the domain registration boundary.
1. Record the current setup and recovery path
Write down the exact zone name, registrar, current DNS host and current nameserver set. Confirm that you can access the accounts needed to make and reverse the change. If the domain is business-critical, assign someone to check email and application behavior while you monitor DNS.
Export the current zone if supported, and record provider-specific settings that may not be included in a standard zone file. Examples include proxy settings, address flattening, traffic policies and service integrations. An export is a useful starting point, not proof that the destination understands every feature.
Save a baseline from the Bulk DNS Checker for known website and email hostnames. This tool does not enumerate an entire zone: querying a handful of domains cannot discover every private, delegated or application-specific record you need to preserve.
Download a DNS audit worksheet
Use the domain audit CSV worksheet to record the domain, responsible service owner, expected nameserver and MX sets, observed answers, resolver and time. Its example.com row is illustrative; expected and observed values are blank for you to complete from your providers and actual lookups.
This is a planning worksheet for your spreadsheet, not a DNSBatch upload format. Copy only the domain column into a checker, then keep its exported findings with your change notes. Keep completed worksheets containing confidential domains or customer details private. You can reuse or adapt the blank worksheet without a required attribution link.
2. Prepare the destination zone before the cutover
Create the correct public zone at the new DNS host and import or recreate the required records. Pay particular attention to names used outside the main website:
- Apex and
wwwaddress or alias records, including IPv6 where used. - MX records and the target names they depend on.
- SPF, DKIM, DMARC and other TXT-based verification data.
- CAA records, delegated subdomains and custom service records.
- Application endpoints, validation records and names used by external services.
Use the destination provider’s generated apex NS and SOA records as instructed. Copying the old provider’s NS/SOA data blindly can create an internally inconsistent zone. AWS’s migration instructions illustrate this distinction for Route 53; other providers have their own import rules.
Check the destination’s actual record values against your inventory. Email authentication needs special attention because a website can appear healthy while outbound messages fail policy checks. The MX lookup guide and TXT verification guide cover useful targeted checks.
3. Get the nameservers assigned to this exact zone
Copy the complete assigned set from the destination account. Do not use a pair found in a tutorial, another customer’s domain or an old zone in a different account. Some providers allocate different nameservers to different zones, even when the provider brand is identical.
For an ordinary single-provider move, follow the documented replacement process rather than combining the old and new sets. Intentionally operating multiple DNS providers is possible, but it requires a coordinated design; merely listing independent services does not synchronize their records.
If you are moving several domains, group them by their actual expected nameserver sets. DNSBatch applies one expected set to every domain in a batch. It can compare up to 500 domains, but it cannot infer a different intended set for each zone from the provider label alone.
4. Plan caching and DNSSEC before changing delegation
Lowering an ordinary record’s TTL does not invalidate cached copies, nor does it necessarily lower the parent delegation’s TTL. Record caches, child-zone NS data and parent delegation data can have different lifetimes. Allow for the old values that resolvers may still legitimately hold.
DNSSEC adds a separate dependency: the parent’s DS data must agree with the signing arrangement for the authoritative zone. A move to servers with incompatible keys can produce validation failures even when the nameserver hostnames look correct. Plan the transition with both providers before changing delegation.
Do not treat this as an instruction to disable DNSSEC indiscriminately. Some migrations require a documented DS removal and waiting period; other supported designs use coordinated signing. The right procedure depends on the providers and existing chain of trust. DNSBatch does not validate DNSSEC or manage DS records for you.
5. Update the appropriate delegation
For a typical registered domain, enter the destination’s nameservers in the registrar’s nameserver/delegation settings. Avoid confusing that screen with an ordinary record editor at a DNS host. For a delegated subdomain, update the relevant NS set in the parent zone instead.
If you use custom nameservers inside the delegated domain, parent glue records may also need attention. Follow the registrar and DNS provider instructions for that case; publishing an address record in a zone that clients cannot yet reach may not be enough to bootstrap resolution.
Record when the change was saved and what values the interface accepted. This provides a useful reference for later checks and support requests. Do not change unrelated website records at the same time unless the migration plan specifically requires it; fewer simultaneous changes make failures easier to isolate.
6. Verify delegation, recursive answers and services separately
Use three distinct checks:
- Delegation: inspect the registrar or parent-zone settings and, where appropriate, a DNS trace. This examines how the hierarchy leads toward the zone.
- Recursive snapshot: compare the observed NS set with your assigned set in the Bulk NS Checker. Switch between Cloudflare and Google to collect separate snapshots.
- Service behavior: verify important records, load the website over HTTPS, test application endpoints, and check actual mail delivery and authentication.
A match in the checker is set equality with one recursive response. It does not prove that every client has refreshed, that every authoritative server serves the same zone, or that email and TLS work. A mismatch likewise needs interpretation: caches, a wrong expected set and an incorrect delegation are different problems. Use the nameserver mismatch workflow to separate them.
7. Keep the old service available until the transition is understood
Removing the old zone too soon can affect clients that still use cached delegation information. Keep it usable for the relevant overlap period recommended by your providers and migration plan, and monitor errors rather than relying on one successful lookup.
Rollback is also a DNS change. Restoring old nameservers does not instantly replace every cached answer, and a rollback must remain compatible with the current DNSSEC state. Retain the old configuration and the ability to restore it, but investigate the failing layer before repeatedly switching delegation back and forth.
When the move is stable, review normal TTL settings, finish any remaining DNSSEC steps, and retire the old service deliberately. Document the final nameserver set and where the zone is now managed so that future changes happen in the correct account.
Common questions about nameserver changes
How long does a nameserver change take?
There is no single worldwide completion time. Parent and child NS caching, ordinary record TTLs and provider processing can affect what different clients observe. See DNS propagation explained for why a countdown is less useful than recorded answers, timestamps and configuration checks.
Why does the new website work but email fail?
The destination zone may have website records but be missing mail routing or authentication data. Start with the missing MX record checklist, compare the returned routes with the provider’s assigned set, then inspect SPF policies and DMARC discovery if sending-side records may also be missing. Restore DKIM selectors using the email provider’s instructions and verify controlled messages separately. An NS match alone is not an email health check.
What should I do if lookups return SERVFAIL?
Check authoritative availability and DNSSEC compatibility instead of assuming the domain only needs more time. Cloudflare’s full-setup troubleshooting guide describes relevant provider-specific checks. Use the equivalent instructions for your actual DNS service and registrar.