{"id":14439616,"url":"https://github.com/willswire/unifi-ddns","last_synced_at":"2026-03-04T04:03:12.307Z","repository":{"id":39761641,"uuid":"454939484","full_name":"willswire/unifi-ddns","owner":"willswire","description":"Cloudflare DDNS (Dynamic DNS) support for UniFi OS","archived":false,"fork":false,"pushed_at":"2026-03-02T12:24:42.000Z","size":300,"stargazers_count":1242,"open_issues_count":5,"forks_count":3322,"subscribers_count":20,"default_branch":"main","last_synced_at":"2026-03-02T16:21:30.733Z","etag":null,"topics":["cloudflare","cloudflare-workers","ddns","ddns-updater","dns","ubiquiti","unifi","unifi-controller"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/willswire.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":"SECURITY.md","support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2022-02-02T21:21:09.000Z","updated_at":"2026-03-02T12:23:34.000Z","dependencies_parsed_at":"2024-01-16T10:33:28.011Z","dependency_job_id":"1468595b-af09-48a2-bbdf-ed82c91607a2","html_url":"https://github.com/willswire/unifi-ddns","commit_stats":{"total_commits":66,"total_committers":23,"mean_commits":2.869565217391304,"dds":0.5606060606060606,"last_synced_commit":"7548b294b60cac74508eb47676ca0248f7e34537"},"previous_names":["willswire/unifi-ddns","workerforce/unifi-ddns","willswire/unifi-cloudflare-ddns"],"tags_count":6,"template":false,"template_full_name":null,"purl":"pkg:github/willswire/unifi-ddns","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/willswire%2Funifi-ddns","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/willswire%2Funifi-ddns/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/willswire%2Funifi-ddns/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/willswire%2Funifi-ddns/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/willswire","download_url":"https://codeload.github.com/willswire/unifi-ddns/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/willswire%2Funifi-ddns/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30071670,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-04T03:25:38.285Z","status":"ssl_error","status_checked_at":"2026-03-04T03:25:05.086Z","response_time":59,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["cloudflare","cloudflare-workers","ddns","ddns-updater","dns","ubiquiti","unifi","unifi-controller"],"created_at":"2024-08-31T17:00:25.843Z","updated_at":"2026-03-04T04:03:12.302Z","avatar_url":"https://github.com/willswire.png","language":"TypeScript","funding_links":[],"categories":["TypeScript","DNS \u0026 DDNS"],"sub_categories":["Other Platforms"],"readme":"# 🌩️ Cloudflare DDNS for UniFi OS\n\n[![CodeQL](https://github.com/willswire/unifi-ddns/actions/workflows/github-code-scanning/codeql/badge.svg)](https://github.com/willswire/unifi-ddns/actions/workflows/github-code-scanning/codeql)\n[![Code Coverage](https://github.com/willswire/unifi-ddns/actions/workflows/coverage.yml/badge.svg)](https://github.com/willswire/unifi-ddns/actions/workflows/coverage.yml)\n[![Dependabot Updates](https://github.com/willswire/unifi-ddns/actions/workflows/dependabot/dependabot-updates/badge.svg)](https://github.com/willswire/unifi-ddns/actions/workflows/dependabot/dependabot-updates)\n[![Deploy](https://github.com/willswire/unifi-ddns/actions/workflows/deploy.yml/badge.svg)](https://github.com/willswire/unifi-ddns/actions/workflows/deploy.yml)\n\nA Cloudflare Worker script that enables UniFi devices (e.g., UDM-Pro, USG) to dynamically update DNS A/AAAA records on Cloudflare.\n\n## Why Use This?\n\n\u003e **Note:** UniFi Network Application 9.1.92+ includes native Cloudflare DDNS support. If your gateway runs this firmware or newer, you may not need this worker. However, the native implementation does not support multi-hostname updates, dual-stack (IPv4 + IPv6), or preserving proxy status — this worker remains useful for those use cases and for older firmware.\n\nUniFi devices running older firmware 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.\n\n## 🚀 **Setup Overview**\n\n### 1. **Deploy the Cloudflare Worker**\n\n#### **Option 1: Click to Deploy**\n[![Deploy to Cloudflare Workers](https://deploy.workers.cloudflare.com/button)](https://deploy.workers.cloudflare.com/?url=https://github.com/willswire/unifi-ddns)\n\n1. Click the button above.\n2. Complete the deployment.\n3. Note the `*.workers.dev` route.\n\n#### **Option 2: Deploy with Wrangler CLI**\n1. Clone this repository.\n2. Install [Wrangler CLI](https://developers.cloudflare.com/workers/wrangler/install-and-update/).\n3. Run:\n   ```sh\n   npm i\n   wrangler login\n   wrangler deploy\n   ```\n4. Note the `*.workers.dev` route.\n\n### 2. **Generate a Cloudflare API Token**\n\n1. Go to the [Cloudflare Dashboard](https://dash.cloudflare.com/).\n2. Navigate to **Profile \u003e API Tokens**\n3. Create a token using the **Edit zone DNS** template.\n4. Scope the token to **one** specific zone.\n5. Save the token securely.\n\n### 3. **Configure UniFi OS**\n\n1. Log in to your [UniFi OS Controller](https://unifi.ui.com/).\n2. Go to **Settings \u003e Internet \u003e WAN \u003e Dynamic DNS**.\n3. Create New Dynamic DNS with the following information:\n   - **Service:** `custom`\n   - **Hostname:** `subdomain.example.com` or `example.com`\n   - **Username:** Cloudflare Account Email Address (e.g., `you@example.com`)\n   - **Password:** Cloudflare User API Token *(not an Account API Token)*\n   - **Server:** `\u003cworker-name\u003e.\u003cworker-subdomain\u003e.workers.dev/update?ip=%i\u0026hostname=%h`\n     *(Omit `https://`)*\n\n## 🛠️ **Testing \u0026 Troubleshooting**\n\nUsing 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](https://github.com/willswire/unifi-ddns/discussions/new?category=q-a). If the problem persists, please raise an issue [here](https://github.com/willswire/unifi-ddns/issues).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwillswire%2Funifi-ddns","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwillswire%2Funifi-ddns","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwillswire%2Funifi-ddns/lists"}