1. Home
  2. Linux
  3. How to Export and Import DNS settings in CloudFlare

How to Export and Import DNS settings in CloudFlare

If you ever want to export DNS records of your domain hosted in CloudFlare, then here’s how you can do that.

Steps to Export and Import DNS settings in CloudFlare

Step 1: Login to CloudFlare account

Step 2: Choose the domain by clicking the pull down menu from top left corner.

Step 3: Click on "DNS" tab

Export and Import DNS in Cloudflare

Step 4: You will find all the DNS records listed. Just scroll down to the bottom of the list to find "Advanced" link and click on it.

DNS advanced

Step 5: Click on "Export" button to take a backup of all records of that particular domain. The exported file will be in BIND format.

What is BIND?

BIND (Brekeley Internet Name Domain) is an opensource DNS software that’s widely used to publish DNS information on the internet. BIND implements all DNS protocols. CloudFlare uses BIND for DNS and so the exported DNS records will be in BIND format.  Click here to learn more about BIND and how to setup your own DNS server.

Export or import DNS

That’s it!

Steps to Import DNS records in CloudFlare

Step 1: Click on DNS tab

Step 2: Scroll down to find the link named "Advanced" and click on it.

Step 3: Click "Upload" button to import all the DNS records into the selected domain.

Note: You might want to edit the exported DNS file before importing. For example, I had to do this process to export all DNS records of a domaina.cc to domainb.cc. Here, i had to edit the exported zone file to replace domaina.cc to domainb.cc and the corresponding IP addresses as well.

Well, if your domain is having only few records, then you may want to create the records manually. But imagine if the domain had few hundred records and recreating all those records would be a hectic process. In such cases, using CloudFlare’s export and import feature would be the ideal way of doing it.

Updated on September 14, 2018

Was this article helpful?

Related Articles

Leave a Comment