A Python Cloudflare DDNS script.
389
docker run -d \
--name cloudflare-ddns \
-v $(pwd)/config.ini:/config/config.ini:ro \
-e UPDATE_INTERVAL=300 \
--restart unless-stopped \
cloudflare-ddns
[cloudflare]
# Authentication Method 1: Using API Token (Recommended)
# Create from Cloudflare Dashboard:
# My Profile > API Tokens > Create Token
# Requires "Zone.DNS" edit permissions
api_token = your_api_token_here
# First domain configuration
[domain:ddns.example.com]
# Zone ID (Required)
zone_id = your_zone_id_here
record_type = A
ttl = 1
proxied = false
# Second domain configuration
[domain:home.example.com]
zone_id = your_zone_id_here
record_type = A
ttl = 1
proxied = true
[cloudflare]
api_token = your_api_token_here
zone_id = your_zone_id_here
domain = your.domain.here
record_type = A
ttl = 1
proxied = false
Multiple Domain Configuration:
[domain:domain_name] format for each domain sectionConfiguration Parameters:
api_token: Cloudflare API tokenzone_id: Zone ID for the domain (Required)record_type: DNS record type, typically A (IPv4) or AAAA (IPv6)ttl: Time To Live in seconds, 1 for automaticproxied: Enable/disable Cloudflare proxy (CDN)Content type
Image
Digest
sha256:45f8376a0…
Size
45.7 MB
Last updated
about 1 year ago
docker pull connermo/cloudflare-ddns-py