How to Move DNS Hosting Without Email Downtime
Moving DNS hosting can silently break mail if one MX, SPF or DKIM record is missed. Follow this checklist to copy, test and switch nameservers safely.
11 min readUpdated Nov 19, 2026By XPASS Editorial Team

Moving DNS hosting is one of those jobs that looks small and can go badly wrong. You change a couple of nameservers at the registrar, the website keeps working, and everyone assumes all is well. Hours later someone mentions that nobody has received any email. The cause is usually the same: the new DNS zone was missing the MX or TXT records that the old one carried, and the nameserver switch made the empty zone the official answer.
This guide gives you a plan that keeps mail flowing the whole time. The idea is simple: build a complete copy of the zone at the new host, prove it works before it becomes live, and only then switch. It also covers the traps that catch people, such as records you did not know existed, DNSSEC and short or long TTLs. If you want background on the roles of different services, the article on the difference between DNS and a CDN shows what belongs in DNS and what does not.
Why email is the part that breaks
A website can fail loudly: you load the page and it is wrong. Email fails silently. When a sender wants to deliver a message, its server looks up your domain's MX records to find where to send it, as the mail protocol described in RFC 5321 expects. If no MX record exists, many senders fall back to the domain's address record, which is probably your web server and not your mail server, so the message is refused or lost. Senders often retry for hours or days, which hides the problem at first and then produces a burst of bounce messages.
Other records protect your reputation. An SPF record, defined in RFC 7208, lists the servers allowed to send for your domain. DKIM publishes a public key under a selector name, and DMARC states what receivers should do with failures. If these are missing at the new host, your outgoing mail may land in spam or be rejected, even though incoming mail seems fine.
Finally, mail clients and services use further records: CNAME records for autodiscover, SRV records for some services, and TXT records that prove ownership to cloud providers. These are easy to forget because nobody looks at them day to day.

Plan before touching anything
Spend your effort at the start. A good plan has five parts.
- Know why you are moving. Better tooling, faster changes, a provider that bundles DNS with other services, or consolidating domains in one account. The reason affects which features you need to check in the new host, such as support for ALIAS-type records or API access.
- Choose a quiet window. Pick a time when few emails are expected and when someone can watch the result. Avoid launches, campaigns and the end of month.
- Check who controls what. Confirm you can sign in to the registrar, and that DNS is managed where you think it is. The nameservers shown at the registrar tell you which provider holds the live zone.
- List every service that uses the domain. Website, email, helpdesk, newsletters, analytics, verification for cloud tools, VPN or office services. Each may rely on a record.
- Keep the old zone alive. Do not delete or edit anything at the old host until the move is complete and stable. That zone is your safety net.
Step 1: get a full copy of the old zone
The best source is a zone export. Many providers offer a downloadable file in standard zone-file format. If yours does not, copy the records manually from the dashboard into a spreadsheet. Whichever you choose, also check with dig, because a dashboard can hide records. Ask the old nameservers directly for the types that matter:
dig example.com ANY @ns1.oldhost.com
dig example.com MX @ns1.oldhost.com
dig example.com TXT @ns1.oldhost.com
dig _dmarc.example.com TXT @ns1.oldhost.com
dig selector1._domainkey.example.com TXT @ns1.oldhost.com
Some servers refuse ANY queries, so query each type separately. Remember to look at subdomains as well. The article on backing up DNS records before editing goes into detail on what to save and how to store it.
Record the following for every entry: name, type, value, TTL and priority where it applies. Pay particular attention to:
- MX records with their priority numbers, since lower numbers are preferred.
- TXT records for SPF, domain verification and DMARC.
- DKIM records, which are TXT or CNAME records under
_domainkeynames. You may not know the selector names. Look in your email provider's settings or at the headers of a sent message. - CNAME records for mail autodiscover, website aliases and verification.
- SRV and CAA records, which are easy to overlook.
- NS records for subdomains that are delegated elsewhere.
- AAAA records for IPv6 alongside each A record.
Step 2: recreate the zone at the new host
Add the new zone at the new provider without changing the registrar. Then enter every record exactly. A few details deserve care:
- Trailing dots and full names. Some interfaces want
mail.example.com.with a final dot; others add the domain automatically, so entering the full name createsmail.example.com.example.com. Read the examples your provider shows. - TXT quoting and length. Long DKIM keys are split into several quoted strings. Many panels do this for you, but verify that the value is intact.
- Root CNAME. A CNAME at the bare domain is not allowed alongside other records. If the old host used a proprietary alias feature, find the equivalent at the new one.
- Proxy or CDN features. If the old provider also proxied web traffic, check what the new one does with the same records so that the website behaves identically.
- Do not add anything new yet. The goal is an identical copy. Improvements come after the move.
When you finish, compare the new zone against the old one line by line, or export both and use a text comparison tool.
Step 3: test the new nameservers before the switch
The new host gives you its own nameserver names. Query them directly, even though the domain is not delegated to them yet:
dig example.com MX @ns1.newhost.com
dig example.com TXT @ns1.newhost.com
dig www.example.com A @ns1.newhost.com
Every answer should match what the old nameservers return. Check the SOA and NS records as well. Test the records that matter most for mail: MX, SPF, DKIM selectors and DMARC. If your email provider offers a diagnostics page, run it after the switch as a second opinion. At this stage nothing is live, so mistakes cost nothing.
Step 4: lower the TTL ahead of time
A day or more before the switch, lower the TTL on records at the old host to a short value such as 300 seconds. In addition, check the TTL of the NS records at the registrar's parent zone, which you cannot always change, and which often sits at a long value such as 48 hours. Because resolvers cache NS information separately, some will go on asking the old nameservers for a while after the switch. That is the reason you keep the old zone running.
Lowering TTL early matters because it only helps once the old, longer-lived copies have expired. The article on DNS cache and how to flush it explains why waiting for the TTL is unavoidable.
Step 5: switch the nameservers
At the registrar, replace the old nameservers with the new ones. Use all the nameservers the new provider lists, typed exactly. If DNSSEC is enabled on the domain, handle it first:
- If the old provider signs the zone and the new one will too, you will need to publish the new provider's DS record at the registrar. Follow the documented order: some providers want the DS removed first, then the nameservers changed, then a new DS added. Others support a multi-signer setup.
- If the new provider does not support DNSSEC, remove the DS record at the registrar before changing nameservers, or the domain will fail validation and become unreachable for validating resolvers. See RFC 4033 for the concepts.
If you are not sure about DNSSEC, ask both providers before proceeding. This is the one step where a wrong order can make the domain unreachable.
Step 6: verify and monitor
Do these checks in the first hour and again the next day.
- Run
dig NS example.comagainst several public resolvers. Over time more of them will return the new nameservers. - Send test email from the domain to an outside mailbox, and receive one from outside. Open the message source and look for SPF, DKIM and DMARC results.
- Load the website and other services, and verify any third-party tools that verify ownership through DNS.
- Watch mail logs or your provider's dashboard for bounces and delays.
- Leave the old zone in place for at least a few days, longer than the longest TTL involved.
A worked example
Kamon runs a small agency and moves his DNS from the domain registrar's basic panel to a dedicated DNS host. His old zone has the website A record, a www CNAME, two MX records, an SPF TXT, a DKIM key under selector1, a DMARC record and a verification TXT for his cloud tools.
He exports the zone, creates it at the new host and compares both lists. He notices a CNAME for autodiscover that he had forgotten. He tests the new nameservers directly and every record matches. The day before the switch he lowers TTLs to 300 seconds. On a Sunday morning he changes the nameservers at the registrar.
Within an hour his phone, which uses a different resolver, still asks the old nameservers. That is fine, because the old zone has the same data. He sends test emails both ways and checks the headers: SPF, DKIM and DMARC pass. Three days later he raises the TTLs again and, a week after that, deletes the old zone.
Limits and what to watch for
- A complete copy is the goal, not a better zone. Resist cleaning up during the move, because every change adds uncertainty about the cause if something fails.
- You cannot control all caches. Even with short TTLs, some resolvers keep NS data for longer. Keep the old zone alive.
- Hidden records exist. Dashboards can hide records created by other services or by an API. Always check with
digas well. - DNSSEC needs the right order. A mismatch between DS and keys can take the domain offline for validating resolvers. Ask providers if unsure.
- Changes at the old host after the switch are not seen. If you must edit a record during the transition, change it in both zones.
- Email routing may involve other providers. Spam filters or relays may use their own records. Check their documents for DNS requirements.
- Do not move in a rush. If your domain runs important services, schedule the work, and have a rollback plan: restoring the old nameservers at the registrar is the rollback.
- Registrar lock and transfer rules are separate. Moving DNS hosting is not a domain transfer. The registration stays where it is unless you transfer it on purpose.
Summary
Moving DNS hosting safely means building an exact copy of the zone first, checking that the new nameservers answer correctly, lowering TTLs ahead of time and only then changing nameservers at the registrar. Email is the main risk, so inventory every MX, SPF, DKIM, DMARC and verification record, test with dig against the new nameservers, and send test messages afterwards. Keep the old zone alive until caches have expired, and treat DNSSEC with care. When you are ready to manage names and records in one place, the domains page is a good starting point.
Frequently asked questions
Why does email stop when DNS hosting is moved?
Mail delivery depends on MX records, and its trust checks depend on TXT records for SPF, DKIM and DMARC. If the new DNS zone lacks any of them when the nameservers change, senders cannot find your mail server or reject your messages.
What is the safest order of steps?
Export the old zone, recreate every record at the new host, test the new nameservers directly, lower TTLs in advance, then switch the nameservers at the registrar and keep the old zone running until caches expire.
How long should I keep the old DNS zone?
At least as long as the longest TTL on the old records and the nameserver TTL, and in practice a few days. Resolvers that still use the old nameservers keep receiving the same correct answers.
Do I need to do anything about DNSSEC?
If DNSSEC is enabled, a mismatch between the DS record at the registrar and the keys at the new host can make the domain fail validation. Remove or update the DS record deliberately, following the order your providers document.
How do I know the migration worked?
Query the new nameservers directly and compare every record with the old zone, send and receive test emails, check that SPF, DKIM and DMARC pass in a message header, and confirm that public resolvers return the new nameservers.
References
About the author

Bob Kanokphon Thongdee
- Founder of XPASS VPN
- Co-founder of eSIMonline.asia
- More than 7 years in online marketing
- Founder of Cojourney Visa and Cojourney Travel
Ready to register your domain?
Search a name, compare extensions and pay once for the years you choose.
.com registration from $18.81 for the first year
Search domainsKeep reading

Domain & DNS Guides
DNS vs CDN: What Is the Difference?
DNS tells browsers where your site lives, while a CDN delivers copies of your content from nearby locations. Here is how the two fit together and where they differ.
9 min read

Domain & DNS Guides
Which DNS Records Should You Back Up Before Editing?
A single wrong DNS edit can take down a website or stop email. Learn exactly which records and settings to save first, how to capture them and how to roll back.
9 min read

Domain & DNS Guides
What Is a DNS Cache and How to Flush It
DNS caching makes browsing faster, but stale entries can show an old site or a false error. Learn the cache layers and the commands to clear each one.
9 min read