Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up

Cloudflare DDNS (Dynamic DNS) support for UniFi OS

License

NotificationsYou must be signed in to change notification settings

willswire/unifi-ddns

Repository files navigation

CodeQLCode CoverageDependabot UpdatesDeploy

A Cloudflare Worker script that enables UniFi devices (e.g., UDM-Pro, USG) to dynamically update DNS A/AAAA records on Cloudflare.

Why Use This?

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.

🚀Setup Overview

1.Deploy the Cloudflare Worker

Option 1: Click to Deploy

Deploy to Cloudflare Workers

  1. Click the button above.
  2. Complete the deployment.
  3. Note the*.workers.dev route.

Option 2: Deploy with Wrangler CLI

  1. Clone this repository.
  2. InstallWrangler CLI.
  3. Run:
    wrangler loginwrangler deploy
  4. Note the*.workers.dev route.

2.Generate a Cloudflare API Token

  1. Go to theCloudflare Dashboard.
  2. Navigate toProfile > API Tokens
  3. Create a token using theEdit zone DNS template.
  4. Scope the token toone specific zone.
  5. Save the token securely.

3.Configure UniFi OS

  1. Log in to yourUniFi OS Controller.
  2. Go toSettings > Internet > WAN > Dynamic DNS.
  3. Create New Dynamic DNS with the following information:
    • Service:custom
    • Hostname:subdomain.example.com orexample.com
    • Username: Cloudflare Account Email Address (e.g.,you@example.com)
    • Password: Cloudflare User API Token(not an Account API Token)
    • Server:<worker-name>.<worker-subdomain>.workers.dev/update?ip=%i&hostname=%h(Omithttps://)

🛠️Testing & Troubleshooting

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 thediscussions page. If the problem persists, please raise an issuehere.


[8]ページ先頭

©2009-2025 Movatter.jp