Cloudflare DDNS detects your public IPv4 and IPv6 addresses and keeps Cloudflare A and AAAA records, plus optional WAF lists, aligned on a schedule.
Overview
Cloudflare DDNS is a small client written in Rust that lets home or edge networks publish changing public IPs to Cloudflare without a static address. You configure domains and API credentials through environment variables, and the program periodically refreshes DNS records and related WAF IP lists when addresses change.
Address detection supports multiple providers such as Cloudflare trace, DNS-over-HTTPS, ipify, interface-bound checks, custom URLs, or fixed literals, with separate handling for multi-homed hosts. Failed lookups do not overwrite existing records, and shutdown can optionally remove managed records when configured.
Deployment options include Docker images on several CPU architectures, Docker Compose examples, Kubernetes or Helm, systemd units, and static binaries from releases. Notifications can reach Discord, Slack, Telegram, and other services through shoutrrr-style URLs, with optional heartbeats to Healthchecks.io or Uptime Kuma.
The client can also run in legacy config.json mode when environment variables are not set, though the current documentation centers on env-based configuration.
Key features
- IPv4 and IPv6 detection providers
- Many domains across Cloudflare zones
- WAF IP list synchronization
- Per-domain Cloudflare proxy expressions
- Scheduled updates with jitter
- Failure-safe record preservation
- Docker and static binary deployment
- Shoutrrr notification URLs
Use cases
- Remote access to a home lab without static IP
- Keeping wildcard DNS aimed at a changing WAN IP
- Updating WAF allowlists with current addresses
- Multi-interface servers with per-group providers
- Running DDNS on Raspberry Pi or small containers