Cloudflare DDNS - Keep DNS records aligned with a changing IP
A home server with a dynamic public address needs a way to tell DNS about changes. Cloudflare DDNS watches for the address to move and updates the right records through Cloudflare’s API. It handles IPv4 and IPv6, can run on a schedule, and works as a small container or service on the machine it watches. The sensible setup is an API token scoped to the single zone you’re updating, not a global key. Notifications are useful here because a silent failure leaves you chasing a domain that points at an old modem. This won’t replace real DNS hosting; it just automates one narrow job. If you already keep zones at Cloudflare, it’s a tidy way to keep remote access working.
Links
Alternatives
- ddclient: Long-standing DDNS client supporting many providers, with a more config-file-driven setup.
- DuckDNS: Free hosted names with simple updates, but you don’t control the zone.
- No-IP: Widely used dynamic DNS service with paid tiers for custom domains.
- Cloudflare API scripts: Fine for a one-off script, but you handle detection and retries yourself.