Using:
- go-external-ip by andygeorge
- cloudflare-go by cloudflare
This is a application / container for dynamically updating a dns record based on the external ip.
This is configured using environment variables.
It is build for the Cloudflare API.
Docker image can be fetched from ghcr.io simonstiil/cfdyndns
Can be build with go build .
Will also be available as a release in releases in the future
Option | Description |
---|---|
CLOUDFLARE_TOKEN | Access token for Cloudflare Account |
CLOUDFLARE_ZONE | Zone id to use for DNS configuration |
DYNDNS_NAME | full DNS name of record to på used |
PROMETHEUS_ENABLED | Enable Prometheus endpoint on /metrics |
TESTING_ENABLED | Enable testing endpoint on /test (sets new random ip to update to next time) |
endpoint | Description |
---|---|
/metrics | metrics endpoint for prometheus |
/health | health endpoint for self and backend services |
/test | testing endpoint. Sets a random ip to update to |