Flares uses the CloudFlare API to get the DNS details of your CloudFlare account and saves them to a BIND file. What stands out about the platform is its simple usage for getting the backup. However, the installation process for the environment is very complicated. But don't worry, we'll teach you step by step.
If you need to back up all the DNS data from the domains in your CloudFlare account, Flares is a very effective tool that also offers other options: view domain names in the registry, export DNS data to any computer, etc. If you have a VPS or a computer with Linux or Mac OS X, the installation is not that complicated. But in our case we'll use DigitalOcean (you can install it from source or use a Docker).
Installation and Setup
First create a Docker, then log in to the server as root. After that, you'll need to run "apt-get golang" to install "Go" and continue with the process. Follow these steps:
Step 1: Run the following command to fetch the GitHub code and then navigate to the download folder.
go get -u github.com/lfaoro/flares/cmd/flaredns
Step 2: You'll need to run the following commands to set two environment variables. In one variable, specify your CloudFlare API key, and in the second, specify the email address registered with your CloudFlare account.
export CF_API_KEY=abcdef1234567890
export CF_API_EMAIL= neoteo@example.com
Step 3: At this point, run the following command, which will generate the binary file and place it in the "bin" directory set in GOPATH. In our test, GOPATH is at "root/go/bin".
make install
Step 4: Now you can use the tool to make a DNS backup of your CloudFlare account. You can export the file to any folder you want.
flaredns "Your Domain" --export "Here goes the path where you will save the BIND file"
Then all you have to do is locate the BIND file and select the properties to see all the details of the backup. If you are looking for a platform that makes a DNS backup of CloudFlare on your computer in BIND format, don't hesitate to install Flares.