Migrating DNS records from Cloudflare to cPanel

pcx3(36)
Published in
#wordpress
Words
93
Reading
1 min
Listen
Play
5y


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

alt

alt
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.

Migrating DNS records from Cloudflare to cPanel | Ecency