A lightweight Golang program to update Cloudflare's DNS record when using a dynamic IP address. It is designed to be run in a Docker container and is lightweight (13Mb docker image).
The first step is to get an API token from Cloudflare:
- Go to My Profile/API Tokens
- Click
Create Token - Use the
Edit zone DNStemplate - In the
Zone Resourcescategory, select the domain you want to use - Copy the generated token for later
You can now run cloudflare_dynip using the docker run:
docker run -d -e DOMAIN=example.com -e API_TOKEN=yourkey alexandresnr/cloudflare_dynip:latestThe check will be run every 5 minutes by default but can be changed by modifing the CRON_STRING env variable (example: @every 5m).
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.