Docs

Everything you need to keep a hostname pointed at a changing address, get certificates for it, and know when something stops working.

Quick start

  1. Create an account and add a hostname from the domains list (an A record for IPv4, AAAA for IPv6).
  2. On the dashboard switch DDNS on for that record. It gets a secret update token.
  3. Open Set this up on your device under the record: ready-made commands for cron, systemd, MikroTik, Windows, Docker, dyndns2 routers and ddclient, with your token filled in.
  4. Run it once. The dashboard shows the time of the last update, and Activity lists every address change.

The simplest possible update, from any machine that has curl (the address is detected from where you call):

curl https://sync.unknown.nz/u/YOUR_TOKEN/

Routers and update clients (dyndns2)

Routers, firewalls and clients such as UniFi, pfSense/OPNsense, OpenWrt, MikroTik scripts, inadyn and ddclient speak the standard dyndns2 protocol. Choose “DynDNS” / “dyndns2” / “custom” and enter:

SettingValue
Serversync.unknown.nz (HTTPS, port 443)
Path/nic/update (also /v3/update)
Usernameanything — it is ignored
Passwordthe record’s update token, or an API key with the “DDNS updater” preset (see keys)
Hostnamethe full hostname, e.g. home.example.net (up to 20, comma separated)

Test it from a shell:

curl -u anything:YOUR_TOKEN "https://sync.unknown.nz/nic/update?hostname=home.example.net&myip=203.0.113.9"

ddclient (/etc/ddclient.conf):

protocol=dyndns2
use=web
server=sync.unknown.nz
ssl=yes
login=anything
password='YOUR_TOKEN'
home.example.net

A token updates the one record it belongs to. An API key with the DDNS-updater preset can update several of your hosts, optionally limited to one domain or to certain source addresses, so a router never has to hold a master key.

IPv4 and IPv6 together

Give one address per family and each goes to the host’s record of that type, in a single request:

curl -u anything:YOUR_KEY "https://sync.unknown.nz/nic/update?hostname=home.example.net&myip=203.0.113.9,2001:db8::9"
# or, equivalently
curl -u anything:YOUR_KEY "https://sync.unknown.nz/nic/update?hostname=home.example.net&myip=203.0.113.9&myipv6=2001:db8::9"
  • With an API key, both the A and the AAAA record of the host are updated. A family the host has no record for is skipped (nothing is created for you). The reply lists the addresses that were applied: good 203.0.113.9,2001:db8::9.
  • With a record’s own token, the address of that record’s family is picked from the list, so the same line works for both of a host’s tokens.
  • One invalid address rejects the whole request (badip) and nothing is changed. IPv6 is stored in its short lower-case form, so another spelling of the same address is nochg.
  • With no address at all, the address you call from is used, so an IPv6 caller updates the AAAA record and an IPv4 caller the A record.

What is my address? /ip

curl -4 https://sync.unknown.nz/ip           # your IPv4 address
curl -6 https://sync.unknown.nz/ip           # your IPv6 address
curl 'https://sync.unknown.nz/ip?format=json'  # {"ip":"203.0.113.9","family":"IPv4"}

It answers with the address you connected from, as plain text, never cached, and may be read from any web page. Up to 60 requests a minute per address.

Certificates (ACME DNS-01), wildcards included

Create an API key with the Certificates (ACME DNS-01) preset on the API keys page. It can only add and remove the _acme-challenge TXT records that prove you own a host, nothing else: it cannot read or change your records, and it cannot touch hosts that are not yours. Challenge records are temporary (TTL 60 s), are not blocked by your record quota (they count towards it only while they exist), at most 10 can be pending, and any a crashed client leaves behind are removed after about two hours.

The API is two calls (the httpreq protocol); the key goes in Authorization: Bearer or as the HTTP Basic password:

POST https://sync.unknown.nz/acme/present   {"fqdn":"_acme-challenge.home.example.net.","value":"<token from your ACME client>"}
POST https://sync.unknown.nz/acme/cleanup   {"fqdn":"_acme-challenge.home.example.net.","value":"<same token>"}

lego and Traefik (built in)

HTTPREQ_ENDPOINT=https://sync.unknown.nz/acme HTTPREQ_USERNAME=anything HTTPREQ_PASSWORD=YOUR_KEY \
  lego --email you@example.net --dns httpreq -d home.example.net -d '*.home.example.net' run

certbot (manual hooks)

# /etc/letsencrypt/unknown-auth.sh      (chmod +x; export UNKNOWN_KEY=YOUR_KEY)
#!/bin/sh
curl -fsS -H "Authorization: Bearer $UNKNOWN_KEY" -H 'Content-Type: application/json' \
  -d "{\"fqdn\":\"_acme-challenge.$CERTBOT_DOMAIN.\",\"value\":\"$CERTBOT_VALIDATION\"}" \
  https://sync.unknown.nz/acme/present
sleep 5

# /etc/letsencrypt/unknown-cleanup.sh   (same, but ending in /acme/cleanup)

certbot certonly --manual --preferred-challenges dns \
  --manual-auth-hook /etc/letsencrypt/unknown-auth.sh --manual-cleanup-hook /etc/letsencrypt/unknown-cleanup.sh \
  -d home.example.net -d '*.home.example.net'

acme.sh (small DNS hook)

# save as ~/.acme.sh/dnsapi/dns_unknown.sh, then:  export UNKNOWN_Key=YOUR_KEY
#   acme.sh --issue --dns dns_unknown -d home.example.net -d '*.home.example.net'
UNKNOWN_Api="https://sync.unknown.nz/acme"
dns_unknown_add() {
  UNKNOWN_Key="${UNKNOWN_Key:-$(_readaccountconf_mutable UNKNOWN_Key)}"
  [ -n "$UNKNOWN_Key" ] || { _err "UNKNOWN_Key is not set"; return 1; }
  _saveaccountconf_mutable UNKNOWN_Key "$UNKNOWN_Key"
  export _H1="Authorization: Bearer $UNKNOWN_Key"
  response="$(_post "{\"fqdn\":\"$1.\",\"value\":\"$2\"}" "$UNKNOWN_Api/present" "" "POST" "application/json")"
  _contains "$response" '"status":"present"' || { _err "present failed: $response"; return 1; }
}
dns_unknown_rm() {
  UNKNOWN_Key="${UNKNOWN_Key:-$(_readaccountconf_mutable UNKNOWN_Key)}"
  export _H1="Authorization: Bearer $UNKNOWN_Key"
  _post "{\"fqdn\":\"$1.\",\"value\":\"$2\"}" "$UNKNOWN_Api/cleanup" "" "POST" "application/json" >/dev/null
}

You can only answer challenges for hostnames you own here (a host on a shared domain that has one of your records, or any name under a domain you own). Ask for a wildcard certificate by listing *.home.example.net; the challenge name is the same _acme-challenge.home.example.net, and both values can be present at once.

API keys and the REST API

Create keys on the API keys page. Each key gets only what you choose, can be limited to one domain or one record, to certain source addresses (IPs or CIDR ranges) and to an expiry, and is shown once.

PresetScopeWhat it can do
Manage recordsrecords:read + records:writeREST API: list, create, change and delete records
Read-onlyrecords:readREST API: list only
DDNS updaterddns:updatePassword of a dyndns2 client; updates several of your hosts. Nothing else.
Certificatesacme:txt/acme/present and /acme/cleanup only
Full access (avoid)*Everything on the REST API. Refused as a dyndns2 password on purpose.
curl -H "Authorization: Bearer YOUR_KEY" https://unknown.nz/api/v1/records
curl -X POST https://unknown.nz/api/v1/records -H "Authorization: Bearer YOUR_KEY" -H "Content-Type: application/json" \
  -d '{"host":"home","domain_id":1,"type":"A","content":"203.0.113.9"}'

Endpoints: GET /api/v1/me, GET /api/v1/domains, GET /api/v1/records; POST /api/v1/records; PATCH /api/v1/records/:id and DELETE /api/v1/records/:id. 120 requests a minute. Errors are JSON: {"error":"..."}.

Alerts and webhooks (no e-mail needed)

The Activity page keeps a history of every address change, an in-app notification list, and optional alerts:

  • Host goes quiet — pick a time per DDNS host (15 minutes to 7 days). If nothing checks in for that long you get one notification, and another when it is back. Meant for clients that update on a timer; clients that only call when the address changes would cause false alarms.
  • Webhooks — up to 3 HTTPS URLs that receive events: address changed, host stopped / resumed checking in, new API key created. Works with Slack and Discord incoming webhooks (JSON), ntfy for phone push (plain text), or your own service. Only public https:// addresses are accepted; a webhook that fails 10 times in a row is switched off and you are told.

JSON deliveries look like this, and carry X-Unknown-Event and X-Unknown-Signature: sha256=… (HMAC-SHA256 of the exact body with your webhook’s secret):

{"event":"ip_changed","time":"2026-11-11T10:18:00.000Z","title":"home.example.net moved",
 "text":"home.example.net (A) changed from 203.0.113.10 to 203.0.113.31 via dyndns2.",
 "content":"...same as text...","data":{"fqdn":"home.example.net","type":"A","old_ip":"203.0.113.10","new_ip":"203.0.113.31","source":"dyndns2"}}

Check a signature in a shell:

printf '%s' "$BODY" | openssl dgst -sha256 -hmac "$WEBHOOK_SECRET" -hex    # compare with the header value after "sha256="

Replies and limits

ReplyMeaning
good 203.0.113.9The address was changed.
nochg 203.0.113.9Already that address; nothing to do (still counts as a check-in).
nohostNo such host for this credential.
badauth (HTTP 401)Wrong or revoked token or key, a key without the DDNS scope, or a key restricted to other source addresses.
notfqdn / numhostThe hostname is not a full hostname / more than 20 hostnames.
badip …The address is not valid, or there is none of the record’s family.
abuseDDNS is switched off for that record. (If you are going too fast you get HTTP 429 with the same word.)
911Something failed on our side. Wait a few minutes and retry.

Limits: 30 updates a minute per token or key; after 20 failed logins in 10 minutes an address is paused. Update at most every few minutes: more often gains nothing, because DNS answers are cached for about a minute anyway. The classic update URLs /u/TOKEN/ and /nic/update/TOKEN keep working unchanged.