A simple cloudflare ddns client
100K+
A simple DDNS client to update A and AAAA records using the cloudflare API.
The program needs environment variables to run.
| Name | Default Value/ Required | Description |
|---|---|---|
| CLOUDFLARE_EMAIL | REQUIRED | Cloudflare login email |
| CLOUDFLARE_API_KEY | REQUIRED | Cloudflare API Key |
| DNS_ZONE | REQUIRED | DNS Zone to update |
| SUBDOMAIN | REQUIRED | Subdomain to update |
| DEBUG | false | Set to true to enable verbose output |
| DONT_UPDATE_A | false | Set to true if the application should should not update A value |
| DONT_UPDATE_AAAA | false | Set to true if the application should not update AAAA value |
| IPV4_QUERY_URL | http://canihazip.com/ | Url to query for ipv4 |
| IPV6_QUERY_URL | http://canihazip.com/ | Url to query for ipv6 |
| HTTP_TIMEOUT | 5 | HTTP Timeout value in seconds |
| UPDATE_INTERVAL | 5 | Update interval value in minutes |
| UPDATE_ONCE | false | Set to true if the program should only update once |
Build with go on your platform with
go build -a -o build/cloudflare_ddns
Run with the required environment variables
CLOUDFLARE_API_KEY=asdfghjklzxcvbnmqwertyuiop \
[email protected] \
DNS_ZONE=mydomain.com \
SUBDOMAIN=mysubdomain \
./build/cloudflare_ddns
Run docker image
docker run --net=host \
-e CLOUDFLARE_API_KEY=asdfghjklzxcvbnmqwertyuiop \
-e [email protected] \
-e DNS_ZONE=mydomain.com \
-e SUBDOMAIN=mysubdomain \
shrikantpatnaik/cloudflare_ddns
Content type
Image
Digest
Size
4.6 MB
Last updated
over 8 years ago
docker pull shrikantpatnaik/cloudflare_ddns