BIND zone file Cloudflare DNS
Import a zone file into Cloudflare DNS.
18 record types move as they are. 2 things work differently at Cloudflare, and the preview shows exactly which of your records they affect.
Free preview. Read-only. Nothing changes until you apply.
Zone file to Cloudflare DNS migration differences
Generated from the same provider capability data the migration engine uses.
Moves as-is
- A
- AAAA
- CNAME
- MX
- TXT
- NS
- SRV
- CAA
- PTR
- DS
- HTTPS
- SVCB
- TLSA
- SSHFP
- NAPTR
- LOC
- CERT
- URI
DHCID, DNAME, OPENPGPKEY, RP, SMIMEA aren't available
TTLs below 60s are raised
A typical Zone file zone at Cloudflare
Example records for example.com. Open any flagged row to read why it changed.
Zone file Cloudflare
- ExactA@
192.0.2.60
- ExactMX@
10 mx1.mail.example.net. +1
- ExactTXT@
"v=spf1 include:_spf.example.net -all"
- ExactCAA@
0 issue "letsencrypt.org"
- ExactTXT_dmarc
"v=DMARC1; p=reject; rua=mailto:dmarc@example.com"
- ExactSRV_sip._tls
100 1 443 sip.example.net.
- TranslatedAfast
192.0.2.61
TTL 30s is outside the allowed range. Set to 60s.
- ExactSSHFPssh
4 2 9d97e98f8af710c7e4f3b5b0b1f1b8c0c7e2a4b8c5a0e3b1f8d2c7a9b0e1f2a3
- ExactCNAMEwww
example.com.
| Status | Type | Name | At Cloudflare | TTL | Details |
|---|---|---|---|---|---|
| Exact | A | @ |
| 1h | |
| Exact | MX | @ |
| 1h | |
| Exact | TXT | @ |
| 1h | |
| Exact | CAA | @ |
| 1h | |
| Exact | TXT | _dmarc |
| 1h | |
| Exact | SRV | _sip._tls |
| 1h | |
| Translated | A | fast |
| 1m | |
| Exact | SSHFP | ssh |
| 1h | |
| Exact | CNAME | www |
| 1h |
Set up the connections
Use the provider-specific credential guides before you preview, then keep the migration checklist beside the cutover plan.
How the move works
- 1
Connect Zone file
Paste or upload the zone file you want to move.
- 2
Connect Cloudflare
Connect Cloudflare (Scoped API token). Write access is only used when you apply.
- 3
Review the preview
Check every record marked Review or Unsupported. Each one explains what changes and why.
- 4
Apply to Cloudflare
We snapshot the Cloudflare zone, write in batches, and leave Zone file untouched.
- 5
Verify
We query Cloudflare's own nameservers for every record and compare the answers before you switch.
- 6
Switch nameservers
Lower TTLs a day or two ahead, remove any DS record if DNSSEC is on, then point the domain at the new nameservers at your registrar.
Good to know about Zone file
- Zone files can't express provider features like proxying, alias records or routing policies.
Access we need: No credentials. Everything stays in your browser until you choose to save it.
Good to know about Cloudflare
- Proxied (orange-cloud) records hide the origin IP. Moving them to another provider sends traffic straight to the origin.
- Apex CNAMEs are flattened by Cloudflare. Other providers need an ALIAS record or static A/AAAA records instead.
- Cloudflare Registrar only allows Cloudflare nameservers, so domains registered there must be transferred out first.
Access we need: Zone → Zone → Read and Zone → DNS → Read for the preview, Zone → DNS → Edit to apply (Zone → Zone → Edit only covers zone settings, not DNS records). Include the zone, or All zones, under Zone Resources. Redirect and Worker route records also need Zone → Single Redirect → Edit and Zone → Workers Routes → Edit.
Migration notes for Zone file to Cloudflare
Reviewed
The source is a BIND zone file you paste or upload, so there are no credentials to read it; the work is fitting standard records into Cloudflare, which cannot represent proxying from a file.
Export at Zone file
- No source credentials: you paste or upload the RFC 1035 zone file exported from your current DNS host.
- A zone file cannot express provider features like proxying, alias records or routing policies — only the records it actually contains move.
Import at Cloudflare
- At Cloudflare the adapter uses a scoped API token (Zone · DNS · Read to preview, Zone · DNS · Edit to apply). Cloudflare also accepts a BIND zone file directly via its own Import and Export tool.
- Records default to not-proxied unless you opt in; turn on the proxy for web-facing A, AAAA and CNAME records after apply if you want it.
Watch for
- Cloudflare's minimum TTL is 60 seconds, so any shorter TTL in the file is raised to 60 and shown as translated.
- A CNAME at the apex in the file is allowed at Cloudflare and flattened to A/AAAA answers automatically.
- Cloudflare's own importer rejects the $INCLUDE directive and limits the file to 256 KiB; DNSMigrator normalizes the records before writing through the API.
- Nothing in a plain zone file turns proxying on — that is a Cloudflare-side setting you apply after import.
Example
A zone-file line @ 30 IN A 192.0.2.61 (TTL 30) is written at Cloudflare as example.com A 192.0.2.61 with the TTL raised to the 60-second floor. An apex @ IN CNAME target.example.net. is accepted and CNAME-flattened at Cloudflare.
Rollback
Rollback reverses only DNSMigrator's writes at Cloudflare; the source zone file is never modified, so re-importing it is always available as a manual fallback.
Questions
Will there be downtime moving from Zone file to Cloudflare?
Not if both providers serve the same answers during the switch. The records are copied to Cloudflare and verified before you change nameservers, so resolvers get the same answer from either side while caches expire.
Do I have to delete anything at Zone file?
No. Preview, apply and rollback never write to Zone file; the only optional change there is lowering TTLs before cutover. Keep the old zone for a week after cutover so you can switch back if anything looks wrong.
What about DNSSEC?
If DNSSEC is on, remove the DS record at your registrar and wait for it to expire before switching nameservers. Then enable DNSSEC at Cloudflare and publish its new DS record. The cutover plan walks you through each step.
Ready to see your own zone?