A dynamic Cloudflare DDNS client with round-robin DNS, multiple zones and variable refresh rate and Docker Secret supports.
CF_API_KEY
: Cloudflare API tokenCF_API_KEY_FILE
: Cloudflare API token stored in a file (for Docker Secret)ZONES
: Cloudflare zones separated with commas (ex:example.com, example.ca
)A_RECORD_NAME
: A record name to write on update (default@
aka root)DELAY
: delay between each check (default300
seconds)UNIQUE
: delete all other root A records except this one (defaultno
)
Pull the project's Docker image at archanes/cloudflare-ddns
.
To create a CloudFlare API token for your DNS zone go to https://dash.cloudflare.com/profile/api-tokens and follow these steps:
- Click Create Token
- Provide the token a name, for example,
cloudflare-ddns
- Grant the token the following permissions:
- Zone - Zone Settings - Read
- Zone - Zone - Read
- Zone - DNS - Edit
- Set the zone resources to:
- Include - All zones