Skip to content
forked from lfaoro/flares

Flares 🔥 is a CloudFlare DNS backup tool

License

Notifications You must be signed in to change notification settings

bdougherty/flares

 
 

Flares 🔥

Flares is a CloudFlare DNS backup tool, it dumps your DNS table to the screen or exports it as BIND formatted zone files.

BSD License FOSSA Status Go Report Card

Docker Pulls PayPal

Quick Start

Docker

# Fetch your CloudFlare API token from here:
# https://dash.cloudflare.com/profile/api-tokens
# -> Create Token
# -> Edit zone DNS
# -> Permission: read
# -> Zone resources: Include -> All zones

$ export CF_API_TOKEN="KClp4y8BgD2LQiz2..."

$ docker run -it --rm \
-e CF_API_TOKEN="$CF_API_TOKEN" \
lfaoro/flares domain1.tld domain2.tld

macOS

brew install lfaoro/tap/flares

Linux/BSD

curl https://raw.githubusercontent.com/lfaoro/flares/master/install.sh | bash

Developers

Go installer: https://golang.org/dl/

go get -u github.com/lfaoro/flares
make install
flares -h

make test

Examples

$ make install
$ flares -h

$ flares domain1.tld
;;
;; Domain:     domain1.tld
;; Exported:   2019-06-03 06:31:29
...continued

$ flares --export domain1.tld domain2.tld
BIND table for domain1.tld successfully exported
BIND table for domain2.tld successfully exported
$ ls
domain1.tld domain2.tld

Automation

GitLab CI/CD

Contributing

Any help and suggestions are very welcome and appreciated. Start by opening an issue.

  • Fork the project
  • Create your feature branch git checkout -b my-new-feature
  • Commit your changes git commit -am 'Add my feature'
  • Push to the branch git push origin my-new-feature
  • Create a new pull request against the master branch

About

Flares 🔥 is a CloudFlare DNS backup tool

Resources

License

Code of conduct

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Go 50.0%
  • Shell 44.4%
  • Makefile 3.8%
  • Dockerfile 1.8%