Migrating DNS records from Cloudflare to cPanel

Migrating DNS records from Cloudflare to cPanel

Both Cloudflare and cpanel store DNS zones in standard BIND files. When moving a DNS zone from cPanel to Cloudflare, Cloudflare checks and inserts DNS entries automatically. But, when transferring DNS from Cloudflare to cPanel we must manually add the entries.

The easiest way is to export the DNS zone from Cloudflare and import it in cPanel. On Cloudflare navigate to DNS > Advanced > Export

cloudlflare zapisi - Migrating DNS records from Cloudflare to cPanel
Exported BIND file from Cloudflare
Exported BIND file from Cloudflare

On cPanel domain zone file is stored in /var/named/domain.com.db

Edit the file with your favorite text editor and add the exported records from Cloudflare.

whoami
Stefan Pejcic
Join the discussion

I enjoy constructive responses and professional comments to my posts, and invite anyone to comment or link to my site.