DynamicFlare is a DNS utility, designed to programmatically update DNS records found in Cloudflare. Its primary purpose is to dynamically update DNS records.
The latest version of the utility is available in the "Tags" section of this repository
To build from source, Go 1.11 is required.
Clone the repository:
git clone git@github.com:arekmano/dynamicflare.git
Build the utility:
go build
A docker image is available through Dockerhub. Execute:
docker pull arekmano/dynamicflare
to pull the latest version of the image.
Then run the
See the sample configuration file included in the project.
See the Cloudflare documentation for details on how to obtain an API key.
The keys are defined in the configuration file in the following way:
cloudflare:
key: ABC123ABC123ABC123 # Cloudflare API key, obtained from Cloudflare
email: mail@example.com # The email associated with your Cloudflare account
The records to be updated should be added to the configuration. Records must exist previously and are defined in the following format:
- id: ABC123ABC123ABC123 # Cloudflare Record ID
type: A # The record type
zoneid: ABC123ABC123ABC123 # Cloudflare Zone ID of the record
name: domain.example.com # The FQDN of the record
The following command will update the DNS entries with the detected public IP:
dynamicflare -c config.yml update
The following command will update the DNS entries with the detected public IP:
dynamicflare -c config.yml update
The following command will print all of the records associated with the Cloudflare account:
dynamicflare -c config.yml records