Description
Cloudflare DDNS for UniFi OS is a Cloudflare Worker script that lets UniFi gateways such as the UDM-Pro and USG keep DNS records up to date. Older UniFi firmware has no built-in option for Cloudflare as a dynamic DNS provider, so the worker fills that gap by updating A and AAAA records with your public IP address when it changes. The README notes that UniFi Network Application 9.1.92 and later include native Cloudflare DDNS. The native option cannot update several hostnames, does not handle IPv4 and IPv6 together, and does not keep a record's proxy status. For those cases, or on older firmware, the worker is still useful. Setup has three steps: deploy the worker with a button or with the Wrangler CLI, create a Cloudflare API token scoped to one zone from the Edit zone DNS template, and add a custom Dynamic DNS entry in UniFi OS that points at the worker with that token. The project is public on GitHub.…
Highlights
- Updates A and AAAA records on Cloudflare
- Works with UDM-Pro, USG and other UniFi devices
- Covers multiple hostnames and dual-stack setups
- Keeps Cloudflare proxy status
- Deploy with a button or Wrangler
Ratings & Reviews
No ratings yet
Be the first to rate Unifi Ddns.
People also visit
Cloudflare Sync
A nice to have, MIT-licensed tool for using Cloudflare as a dynamic DNS provider
Ddns Updater
Container to update DNS records periodically with WebUI for many DNS providers
Tailscale Cloudflare Dnssync
Syncs Tailscale/Headscale host IPs to a cloudflare hosted dns zone
Unifi Ddns FAQ
What does it do?
It is a Cloudflare Worker that updates your DNS records from a UniFi device, so a change in your home IP address does not break your domain.
Do I still need it on newer firmware?
The README says firmware 9.1.92 and later has native Cloudflare DDNS, which may be enough for you. The worker still covers multi-hostname, dual-stack and proxy-status cases.
What kind of token do I need?
A Cloudflare user API token made from the Edit zone DNS template and scoped to one zone. The README says not to use an account API token.
How do I set it up?
Deploy the worker, then in UniFi OS go to Settings, Internet, WAN, Dynamic DNS and create a custom entry with your Cloudflare email and token.
Which devices does it work with?
UniFi devices such as the UDM-Pro and USG, which the README gives as examples.
What are the best Unifi Ddns alternatives?
Popular alternatives to Unifi Ddns include D2c.sh, Cloudflare Sync and Tailscale Cloudflare Dnssync. See all Unifi Ddns alternatives