Migrating DNS records from Cloudflare to cPanel

in #wordpress4 years ago (edited)


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


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.