
A DNS migration to Cloudflare is safe when every existing record is rebuilt in Cloudflare before you change nameservers, DNSSEC is off at the registrar first, and mail records stay DNS only. Moving the domain registration to Cloudflare is a separate, optional step you can take later. Skip the record check and email is what breaks, often for days before anyone notices.
We moved our own domains to Cloudflare and do the same for clients running Microsoft 365, Google Workspace, marketing platforms and form senders side by side. The move itself is quick. The work is the inventory before it and the email check after it.
What actually changes when you migrate to Cloudflare
Only the nameservers that answer for your domain change. Your registrar (where you bought the domain) keeps a pointer to those nameservers. Today it points at your current DNS provider, which might be the registrar itself, your web host or a service like Route 53. After the migration it points at the two nameservers Cloudflare assigns you.
Your website, mailboxes and apps stay where they are. The registration stays where it is too, unless you choose to transfer it.
The one requirement: every record that exists today has to exist in Cloudflare, with the same values, before you change the nameservers. If it does, the switch is invisible.
Step 1: Inventory every record
Get the full record list from your current provider. Do not rely on Cloudflare's import scan for it.
Cloudflare offers to scan your existing DNS and import what it finds. Use it, but its own warning says the scan may have missed uncommon records or custom subdomains and tells you to compare against your current provider, paying attention to the apex, A, AAAA and CNAME records and email records such as MX, SPF, DMARC, DKIM and MTA-STS. That warning is accurate. DNS has no way to list every name in a zone from the outside, so a scanner can only check names it guesses.
On our own move, the records that needed a second look were not the obvious ones. Our contact form sends mail from a forms subdomain with its own sending records, and our older domains relied on a third-party redirect service through records nobody had touched in years. Neither is the kind of name a scanner guesses.
Export the zone file or copy every record, then check it against these groups.
Mail routing. MX records for the root and any subdomain that receives mail. For Google Workspace this is typically a single record pointing at smtp.google.com. For Microsoft 365, use the exact value in your admin center, since Microsoft's MX hostnames vary by tenant. Include any A records an MX points at.
Sender authentication. The SPF TXT record at the root starting with v=spf1 (only one allowed). DKIM records for every sending service: Microsoft 365 uses CNAMEs at selector1._domainkey and selector2._domainkey, Google Workspace a TXT record by default at google._domainkey, and marketing platforms, CRMs and transactional senders each add their own. The DMARC TXT record at _dmarc. Records on sending subdomains such as mail. or forms. Our SPF, DKIM and DMARC guide explains what each does.
Verification and service records. Domain verification TXT records for Google Search Console, Microsoft 365, Meta, Apple, Stripe and similar services, the Microsoft autodiscover CNAME, any SRV records, and CAA records if you restrict certificate issuance.
Subdomains. Go through every one: www, shop, app, portal, status, help, links, and anything a vendor asked you to add years ago. Scanners miss these most often.
Put the inventory in a spreadsheet with name, type, value, TTL and purpose. That sheet is your checklist for every step below.
Step 2: Lower TTLs at the current provider
A day or two before the move, lower the TTLs on your important records to something short such as 300 seconds, especially MX and the website records. Wait at least one full old-TTL period so caches pick up the short values.
This does not speed up the nameserver change, which runs on the registry's own TTL. It does let you fix a wrong value in minutes after the switch.
Step 3: Build the zone in Cloudflare and compare
Add your domain to Cloudflare, let the scan run, then compare the imported records line by line against your inventory. Add anything missing and correct anything that differs.
Watch the proxy status column. Cloudflare can proxy A, AAAA and CNAME records (the orange cloud), which routes web traffic through its network and returns Cloudflare's addresses instead of your server's. You want that for your website. You do not want it for anything mail related or for verification CNAMEs. MX and TXT records cannot be proxied, but a mail server's A record or a DKIM CNAME can be, and proxying them breaks mail.
| Record | Proxy status |
|---|---|
| Root and www pointing at your website | Proxied, if you want Cloudflare in front of the site |
| MX, TXT, SRV, CAA | Always DNS only |
| Hostnames that MX records point at | DNS only |
| DKIM and other verification CNAMEs | DNS only |
Step 4: Turn off DNSSEC at the registrar first
If DNSSEC is on, turn it off at your registrar before you change nameservers. DNSSEC publishes a fingerprint of your current provider's signing keys (a DS record) at the registry. Change nameservers with it in place and resolvers reject Cloudflare's answers, which can make the whole domain unreachable.
Remove the DS record, wait for the change to take effect (give it a day if the record had a long TTL), and re-enable DNSSEC through Cloudflare once the domain is active.
Step 5: Change the nameservers
At your registrar, replace the existing nameservers with the two Cloudflare assigned to your domain, spelled exactly as shown. Do not leave the old ones listed alongside them. Cloudflare allows up to 24 hours to see the change, then emails you and marks the domain Active.
During that window some resolvers still ask the old provider, so leave it untouched until the move is stable.
Step 6: Check email after cutover
Test email as soon as Cloudflare shows the domain as Active. Do not wait for complaints.
- Look up MX, SPF, DKIM and DMARC against a public resolver such as 1.1.1.1 and confirm they match your inventory.
- Send from an outside account to a mailbox on the domain and confirm it arrives.
- Send from the domain to an outside account and confirm SPF, DKIM and DMARC all pass in the headers.
- Repeat the outbound test for each sending service: marketing platform, CRM, website form and transactional sender.
- Over the next few days, watch for bounces and check that Search Console and other verified services still show the domain as verified.
Leave the old zone in place for a week or two, then raise TTLs back to normal and document what each record is for. If DMARC reports are on, they are a good cross-check that first week; our article on reading DMARC reports covers what to look for.
Should you also transfer the domain to Cloudflare?
Moving DNS and transferring the registration are two different jobs. Moving DNS changes who answers for the domain. Transferring changes who you pay to own it. You can do the first without ever doing the second.
| Move DNS only | Also transfer registration | |
|---|---|---|
| What changes | Nameservers at your registrar | Registrar of record |
| Cost | Free on Cloudflare's free plan | One year of renewal at Cloudflare's price, added to your current expiry |
| Main benefit | Cloudflare DNS, proxy and security | At-cost renewals, one dashboard |
| Main limit | Two vendors to manage | The domain has to use Cloudflare's nameservers |
Our take: move DNS first, live with it for a few weeks, then decide on the transfer. Cloudflare sells registrations at cost, so renewals usually beat retail registrars. The trade is lock-in. A domain registered with Cloudflare has to use Cloudflare DNS, so if you ever want another DNS provider, you transfer the domain out first.
If you do transfer, the order per Cloudflare's transfer guide is:
- Confirm the domain is already active on Cloudflare DNS and its extension is supported.
- Check it was not registered or transferred in the last 60 days, which locks it under ICANN rules.
- Unlock it at the current registrar and request the authorization (EPP) code.
- Start the transfer in Cloudflare's Domain Registration section, enter the code and pay for the added year.
- Approve any confirmation email from the old registrar. Transfers often finish in a day or two, and the old registrar has up to five days to release it.
If you run several domains, our article on managing DNS at scale with Claude and Cloudflare covers keeping them consistent. If the DNS move is part of a bigger site move, work through our website migration checklist as well. This is routine work for our DNS management service.
Frequently asked questions
Will moving DNS to Cloudflare cause email downtime?
It should not, as long as every mail-related record exists in Cloudflare with the same values before you change nameservers, and mail-related hostnames are DNS only. Most email outages during a DNS migration come from a missing MX, DKIM or verification record, not from the move itself.
How long does it take to migrate DNS to Cloudflare?
The inventory and zone build take the longest. For a simple domain that is a short job, and a domain with many senders and subdomains takes longer. The nameserver change can take up to 24 hours for Cloudflare to confirm, and resolvers may use cached delegation for up to a couple of days.
Do I need to disable DNSSEC before moving to Cloudflare?
Yes, in almost every case. Turn it off at the registrar before changing nameservers, then re-enable it through Cloudflare after the domain is active. Leaving it on during the move can make the domain unreachable.
Should I transfer my domain to Cloudflare or just change the nameservers?
Change the nameservers first. That gets you Cloudflare DNS with no transfer. Transfer the registration later if you want at-cost renewals and one dashboard, and you are comfortable that the domain must then use Cloudflare's nameservers.
Why did Cloudflare say its scan may have missed records?
Because DNS cannot be listed from the outside, so Cloudflare can only check record names it guesses. Uncommon subdomains, DKIM selectors and vendor verification records are the usual misses. Compare the imported list against an export from your current provider before you switch.
