Skip to content

Repository files navigation

Cloudflare Worker for QNAP DDNS

Cloudflare Worker for updating DDNS records for QNAP NAS devices.

Usage

Deploy the Cloudflare Worker

  1. Clone the repository and install dependencies.
  2. Login to Cloudflare via npx wrangler login
  3. Run npx wrangler deploy to deploy the Cloudflare Worker.

Configure QNAP NAS

  1. Go to QNAP NAS Dashboard -> Network & Virtual Switch -> Access Services -> DDNS
  2. Add a new DDNS service with "custom" DDNS server.
  3. Set the "URL" to https://your.workers.dev?username=%USER%&api_token=%PASS%&hostname=%HOST%&myip=%IP% (replace your.workers.dev with your actual Cloudflare Worker URL)

Available Parameters

Available parameters for the Cloudflare Worker.

Parameter Description Required Default
username The username for the Cloudflare account. Yes
api_token The API token for the Cloudflare account. (created in Cloudflare Account Profile -> API Tokens) Yes
hostname The hostname to update. Yes
myip The IP address to update. Yes
ttl The TTL for the DNS record. No 1 (means 'automatic')
proxied Whether to proxy the DNS record. No true
comment The comment for the DNS record. No

About

Cloudflare Worker for updating DDNS records for QNAP NAS devices.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Contributors

Languages