cfddns
is a very simple utility that will automatically update an A record
through Cloudflare's API with the current detected external IP address. The
following environment variables drive its operation:
CLOUDFLARE_EMAIL
- email address of your cloudflare accountCLOUDFLARE_TOKEN
- api tokenCLOUDFLARE_ZONE
- name of the zone to lookup the ID ofRECORD
- A record to update, will be added to theCLOUDFLARE_ZONE
ex.self
would set an A record forself.<CLOUDFLARE_ZONE>
.INTERVAL
- interval to wait between checking external address. defaults to300s
.
A docker image nickethier/cfddns
is available on the Docker Hub.
Example:
$> docker run --rm -e CLOUDFLARE_EMAIL -e CLOUDFLARE_TOKEN -e CLOUDFLARE_ZONE=example.com -e RECORD=home nickethier/cfddns