Phase 2: Preparation
Careful preparation will minimize downtime and issues during the cutover.
At least 24-48 hours (or longer, ideally matching your longest current TTLs) before your planned migration window, lower the TTLs for all critical records in your BIND zone files. A common short TTL for migration is 300 seconds (5 minutes).
This ensures that DNS resolvers worldwide will cache your old records for a shorter period, allowing changes to propagate more quickly when you switch to Cloudflare.
- SOA Record: Also consider lowering the
MINIMUMfield in your SOA record, which dictates the TTL to be used for negative responses (RFC 2308 ↗).
Obtain a clean and current export of your zone files from your BIND servers in standard BIND format and ensure these files are complete and accurate.
-
Log in to your Cloudflare dashboard.
Go to Account home -
Add each domain you intend to migrate. Cloudflare will attempt to scan for existing DNS records.
Use Cloudflare's Import and Export feature (under DNS > Records) to upload your BIND zone files.
Go to Account home- Verification (Crucial):
- After import, meticulously compare the records in Cloudflare with your BIND zone files or a
digoutput of your current zone. - Pay close attention to
MXrecords,SRVrecords,TXTrecords (especially forSPF,DKIM,DMARC), and any complexCNAMEconfigurations. - Ensure FQDNs (Fully Qualified Domain Names) are correctly formatted (Cloudflare usually handles the trailing dot correctly on import, but verify).
- After import, meticulously compare the records in Cloudflare with your BIND zone files or a
- Proxy status (orange vs grey cloud):
- For
A,AAAA, andCNAMErecords that point to HTTP or HTTPS services you want to proxy through Cloudflare (for example, websites and APIs), you can enable the orange cloud to use Cloudflare CDN and security features. - Some services and ports are not supported behind the proxy, and certain record types (for example,
MXtargets and many non-HTTP services) must remain DNS only. For a detailed list, refer to Proxy status and limitations. - Recommendation for initial migration: To isolate the DNS migration from potential proxy-related issues, consider setting all records to DNS only (grey cloud) initially. After you confirm that DNS resolution is working correctly, enable the proxy (orange cloud) for specific HTTP(S) records and test again.
- For
Complete this step before you change your nameservers at the registrar.
- Action at registrar: Log in to your domain registrar and delete the existing DS records associated with your on-prem BIND DNSSEC keys for each domain.
- Wait for DS TTL: Wait at least the full DS record TTL published at the parent zone, and preferably up to 1.5 times that TTL, before you change nameservers. This ensures that validating resolvers stop expecting the old DNSSEC chain. The typical TTL duration for DS records is set to +24 hours (86,400 seconds).
- Impact of incorrect timing: If you change nameservers while resolvers still expect the old DS record, DNSSEC validation will fail and your domain may become unreachable for validating resolvers.