About Cloudflare DDNS
This is a dynamic DNS client built on Cloudflare. If you self-host services on a residential IP and want remote access, it fetches your public IPv4 and IPv6 addresses and creates or updates DNS records for the subdomains you list. Stale and duplicate records are removed as housekeeping.
It was written for the Raspberry Pi to make low-cost self-hosting simple. Setup means cloning the repository, filling in config.json with an API key, account email, zone ID, subdomains and a proxied flag, then running the sync script, which builds a virtualenv and installs dependencies. It is meant to be run on a schedule by cron.
A tip from the page: for several domains on one IP, point a single A and AAAA record at the server and make each subdomain a CNAME to it, so the config does not change when you add one. A Docker image build is also written up on the same site.
Key features
- Updates Cloudflare records with current IPv4 and IPv6
- Removes stale and duplicate DNS records
- Designed to run from cron
- Optional Cloudflare proxy flag
- CNAME approach for multiple domains on one IP
Good fit for
- Remote access to a home network
- Dynamic DNS on a Raspberry Pi
Cloudflare DDNS: questions and answers
- What is Cloudflare DDNS used for?
- Cloudflare DDNS is a Python script that keeps Cloudflare DNS records in sync with your home IPv4 and IPv6 addresses, for dynamic DNS on a self-hosted network. It is a good fit for remote access to a home network and dynamic DNS on a Raspberry Pi.
- Is Cloudflare DDNS open source?
- Yes. Cloudflare DDNS is open source under the GPL-3.0 licence. Its source code is on GitHub at timothymiller/cloudflare-ddns and is written mainly in Rust.
- Is Cloudflare DDNS free?
- Yes. Cloudflare DDNS is open source, so the software itself is free to use.
- Can I self-host Cloudflare DDNS?
- Yes. Cloudflare DDNS can be self-hosted on your own server or infrastructure.
- Is Cloudflare DDNS actively maintained?
- Yes. The most recent commit to Cloudflare DDNS was on 19 November 2026, and the latest release is v2.3.1, published on 28 October 2026. The project has 4.6k stars on GitHub, with 25 added in the last 30 days.
