This is a small, feature-rich, and robust updater for Cloudflare Dynamic DNS (DDNS). It automatically detects your machine's public IP addresses (both IPv4 and IPv6) and updates your DNS records using the Cloudflare API, ensuring your domains always point to the correct location. It is designed with efficiency, security, and privacy in mind.
Key features include:
日本。co。jp), and wildcard (*.example.org) domains with ease. You can toggle IPv4 (A) and IPv6 (AAAA) records for each domain.services:
cloudflare-ddns:
image: favonia/cloudflare-ddns:latest
container_name: cloudflare-ddns
restart: unless-stopped
# network_mode: host # Uncomment if you need to detect the IP of the host interface directly (e.g. for IPv6)
security_opt:
- no-new-privileges:true
environment:
- CF_API_TOKEN=${CF_API_TOKEN}
- DOMAINS=example.com,www.example.com
- PROXIED=true
- IP4_PROVIDER=ipify-ipv4
- IP6_PROVIDER=none
- UPDATE_CRON=@every 5m
- PUID=1000
- PGID=1000
- DELETE_ON_STOP=false
- PRINT_ZONES=trueCF_API_TOKEN=your_cloudflare_api_token_hereAuto-fetched about 21 hours ago
Auto-fetched about 21 hours ago