Change nameservers to Cloudflare for 10+ domains: the fast way
Add many zones to Cloudflare, collect the nameserver pairs, switch nameservers in bulk, and handle DNSSEC in the right order. Steps from Cloudflare's docs.
On this page
To move many domains to Cloudflare DNS, do it in three passes rather than domain by domain. First add every domain to Cloudflare as a zone and check the imported records. Then collect the nameserver pair Cloudflare assigned to each zone. Finally, change the nameservers at your registrar with one bulk action per nameserver pair. DNSSEC needs one extra step before that last pass. The steps below follow Cloudflare's own documentation, checked 29 Oct 2026.
If your domains are spread across several registrars, our general guide to changing nameservers for multiple domains shows the bulk menu at GoDaddy, Namecheap, Porkbun and Dynadot.
Before you start: two limits worth knowing
Cloudflare's guide to adding multiple sites via automation states two limits:
- You can add "a maximum of 25 domains every 10 minutes."
- If you have more than 50 domains in the account and more of them are pending than active, you are blocked from adding more.
So for 10 to 25 domains, one pass works. For 100 domains, add them in batches of 25 and activate each batch before adding the next. Also note that on the Free plan, a zone that isn't activated within 28 days is deleted automatically (Cloudflare, domain status). Don't add zones weeks before you are ready to switch.
Step 1: Add the domains to Cloudflare
In the dashboard (fine for 10–20 domains). Select Onboard a domain, enter the apex domain (example.com, not www.example.com), pick a plan, and let Cloudflare scan for existing DNS records (Cloudflare, full setup). Repeat for each domain.
Through the API (better for 25+ domains). Cloudflare's automation guide uses a short loop that calls the create-zone endpoint (POST /zones) once per domain, writes each zone's assigned nameservers to a CSV file, and then triggers a DNS record scan for each zone. You need an API token with permission to create zones. If you manage infrastructure as code, Terraform's cloudflare_zone resource does the same thing.
Either way, the output you want is a list like this:
| Domain | Zone status | Cloudflare nameservers |
|---|---|---|
| example.com | Pending | ada.ns.cloudflare.com, bob.ns.cloudflare.com |
| example.net | Pending | ada.ns.cloudflare.com, bob.ns.cloudflare.com |
| example.org | Pending | cruz.ns.cloudflare.com, dee.ns.cloudflare.com |
The names above are placeholders. Use the ones your dashboard or API shows.
Step 2: Check the records before anything else
This is the step that prevents outages. Cloudflare's quick scan finds common records, but Cloudflare itself warns that "not all records are picked up". Custom hostnames and DKIM keys with non-standard names are typical misses. It says you should always review the records and add missing ones before changing nameservers.
For each domain, compare the new zone with the old one:
- Website: A, AAAA and CNAME records for the apex and www.
- Mail: MX records, plus the SPF, DKIM and DMARC TXT records. A missing DKIM record doesn't break mail immediately, but it hurts deliverability.
- Verification: Google, Microsoft and other TXT records. Losing these can disconnect services quietly.
- Everything else: SRV records, subdomains for apps, and CAA records.
If your old DNS host can export a BIND zone file, import it instead of relying on the scan. Cloudflare's import tool accepts zone files up to 256 KiB.
One decision to make per record: proxied (orange cloud) or DNS only. Only A, AAAA and CNAME records can be proxied, so mail records stay DNS only. If you are unsure about a web record, start with DNS only and switch on the proxy once the domain is active.
Step 3: Group domains by nameserver pair
Cloudflare's docs say it tries to give all zones in an account the same pair. They also say "you may get different nameserver names, even for domains that are within the same account" (Cloudflare, nameserver options). One documented cause is a conflict: someone added the same domain to another Cloudflare account.
Sort your list by nameserver pair. Each group becomes one bulk change at the registrar. Mixing up pairs is the classic mistake: a domain pointed at another zone's nameservers stays pending and doesn't resolve as expected.
Step 4: Handle DNSSEC first
Check each domain for a DS record at the registry (dig DS example.com +short; any output means DNSSEC is on). Cloudflare's setup guide is explicit. If DNSSEC is active, "you must turn it off at your registrar before replacing nameservers", because changing nameservers with DNSSEC active "can cause your domain to become unreachable." Stale DS records from the old provider also block the zone from activating (Cloudflare, pending nameservers).
The safe order is:
- Remove the DS record at the registrar.
- Wait for the old DS record to expire from caches. Its TTL is often a day or more, so check it with
dig DS. - Change the nameservers (step 5).
- Once the zone is active, enable DNSSEC in Cloudflare under DNS > Settings and add the DS record it shows at your registrar (Cloudflare DNSSEC).
If you can't afford any unsigned window, Cloudflare documents a multi-signer migration that keeps DNSSEC on throughout. It requires your old DNS provider to let you add DNSKEY records at the zone apex, so check that first.
At GetNameDot: if a domain uses DNSSEC on our Premium DNS, switch DNSSEC off on its service page first. We remove the DS record from the registry automatically. Our dashboard doesn't currently have a form for adding a DS record from an outside DNS provider such as Cloudflare (checked 29 Oct 2026). If you need DNSSEC on Cloudflare for a domain registered with us, contact support before you plan around it.
Step 5: Switch the nameservers in bulk
Change each group at your registrar with its bulk tool. At GetNameDot, one action covers up to 50 domains:
- Open My domains and tick the domains of one nameserver group. Mixed extensions are fine.
- From Bulk action for selected…, choose Change nameservers…, then Custom nameservers.
- Enter the two Cloudflare hostnames for that group and click Apply.
The same pair is set on every selected domain. Afterwards you get a per-domain report of what was done, what was submitted to the registry, what was already set and what was skipped, with a reason for each skipped domain. If you tick more than 50, the first 50 are changed and the report tells you how many were left. See bulk domain management for the other bulk actions.
If your domains are registered at Cloudflare Registrar, there's nothing to change: Cloudflare's FAQ says all domains there use Cloudflare nameservers (Registrar FAQ).
Step 6: Verify and activate
Cloudflare's first check runs about 60 seconds after setup, then at increasing intervals. You can speed things up with Overview > Re-check now on each zone (Cloudflare, move a domain). Cloudflare's guide says to allow up to 24 hours for the registrar update, and you get an email when the zone becomes active.
For a batch, script the check instead of clicking through zones:
dig NS example.com +shortshould return only the two Cloudflare names.dig A example.com @ada.ns.cloudflare.com(with your pair) confirms Cloudflare answers with the right records.- Send a test email to and from each domain that receives mail.
Keep the old DNS host running for at least 48 hours. Resolvers that cached the old delegation keep asking the old servers until their cache expires.
Troubleshooting a large move
| Symptom | Likely cause | Fix |
|---|---|---|
| Can't add more zones | 25-per-10-minutes limit, or too many pending zones | Wait, or activate the current batch first |
| Zone stuck on Pending | Wrong pair, a leftover old nameserver, or a stale DS record | Compare dig NS with the zone's assigned pair; remove the DS record |
| Site works, mail fails | MX or SPF/DKIM missing from the new zone | Copy the mail records from the old zone |
| Some users can't resolve the domain | DS record still at the registry | Remove it, or add Cloudflare's DS record |
| Nameserver change refused for one domain | The domain is locked by the registry, expired, or still being registered | Check its status with a WHOIS lookup |
If you run your own nameservers instead of Cloudflare's, the in-domain ones need glue records first. See glue records and child nameservers.
Frequently asked questions
Do all my domains get the same Cloudflare nameservers?
Usually, but not always. Cloudflare's docs say it favors consistent nameserver names across all zones in an account, but that you may get different names even for domains in the same account. Copy the pair shown for each zone instead of assuming.
How many domains can I add to Cloudflare at once?
Cloudflare's automation guide says you can sign up a maximum of 25 domains every 10 minutes. It also blocks new additions if you have more than 50 domains and more of them are pending than active, so activate in batches.
Do I have to turn off DNSSEC before moving to Cloudflare?
Yes, in the standard setup. Cloudflare says that if DNSSEC is active you must turn it off at your registrar before replacing nameservers, or the domain can become unreachable. Cloudflare also documents a multi-signer migration that keeps DNSSEC on, if your old DNS provider supports it.
How long until a zone is active on Cloudflare?
Cloudflare tells you to wait up to 24 hours while the registrar updates your nameservers. It checks automatically, starting 60 seconds after setup and then at growing intervals, and you can trigger a re-check from the zone's Overview page.
What happens to a zone I add but never activate?
On the Free plan, Cloudflare automatically deletes a pending zone that isn't activated within 28 days. Pending zones on paid plans stay pending until the plan is removed.