A Cloudflare Worker script that enables UniFi devices (e.g., UDM-Pro, USG) to dynamically update DNS A/AAAA records on Cloudflare.
UniFi devices do not natively support Cloudflare as a DDNS provider. This script bridges that gap, allowing your UniFi device to keep your DNS records updated with your public IP address.
*.workers.dev
route.npm i
wrangler login
wrangler deploy
*.workers.dev
route.custom
subdomain.example.com
or example.com
you@example.com
)<worker-name>.<worker-subdomain>.workers.dev/update?ip=%i&hostname=%h
(Omit https://
)Using this script with various Ubiquiti devices and different UniFi software versions can introduce unique challenges. If you encounter issues, start by checking the FAQ in /docs/faq.md
. If you don’t find a solution, you can ask a question on the discussions page. If the problem persists, please raise an issue here.