Update URL
The simplest way: call this address from the network the name should point at. The address of the caller is used. Find your personal URL on the host's page.
https://dyn-ip.dk/api/?uid=YOUR-ACCOUNT-ID&sid=HOST-TOKENIf the host is password protected, send your account password as a POST field:
curl -X POST --data-urlencode "password=YOUR-PASSWORD" "https://dyn-ip.dk/api/?uid=YOUR-ACCOUNT-ID&sid=HOST-TOKEN"Optional: add &myip=ADDRESS to set a specific address instead of the caller's.
DynDNS2 protocol
The de-facto standard used by routers and update clients. Authenticate with HTTP Basic auth.
https://dyn-ip.dk/nic/update?hostname=home.dyn-ip.dk&myip=203.0.113.10hostname- One or more full host names, separated by commas.
myip- Optional. IPv4 and/or IPv6 address, comma separated. Default: the caller's address.
myipv6- Optional. IPv6 address (alternative to putting it in myip).
- Username
- Your e-mail address or account id.
- Password
- The host's update key (recommended), or your account password.
curl -u "you@example.com:HOST-TOKEN" "https://dyn-ip.dk/nic/update?hostname=home.dyn-ip.dk"Routers and NAS
Choose "DynDNS", "dyndns2" or "Custom" as provider, use the host name and update key from your dashboard, and if asked for a URL use:
| Device | Setting |
|---|---|
| pfSense / OPNsense | Dynamic DNS → Custom. Update URL: https://dyn-ip.dk/nic/update?hostname=%h&myip=%IP% |
| FRITZ!Box | Internet → Permit Access → DynDNS → User-defined. Update URL: https://dyn-ip.dk/nic/update?hostname=<domain>&myip=<ipaddr>,<ip6addr> |
| UniFi | Settings → Internet → Dynamic DNS → Service "dyndns", server: dyn-ip.dk/nic/update?hostname=%h&myip=%i |
| Synology DSM | External Access → DDNS → Customize provider. Query URL: https://dyn-ip.dk/nic/update?hostname=__HOSTNAME__&myip=__MYIP__&username=__USERNAME__&password=__PASSWORD__ |
| MikroTik | Use a script with /tool fetch calling the update URL from the scheduler. |
Linux, Raspberry Pi and macOS
ddclient (/etc/ddclient.conf):
protocol=dyndns2
use=web, web=https://dyn-ip.dk/ip
server=dyn-ip.dk
ssl=yes
login=you@example.com
password='HOST-TOKEN'
home.dyn-ip.dkOr simply a cron job:
*/5 * * * * curl -fsS "https://dyn-ip.dk/api/?uid=YOUR-ACCOUNT-ID&sid=HOST-TOKEN" >/dev/nullWindows
Create a scheduled task that runs every 5 minutes:
schtasks /create /tn "dyn-ip" /sc minute /mo 5 /tr "powershell -NoProfile -Command Invoke-RestMethod 'https://dyn-ip.dk/api/?uid=YOUR-ACCOUNT-ID&sid=HOST-TOKEN'"IPv6
A request only carries the address family it was sent over. Force IPv4 and IPv6 separately to update both records:
curl -4 -fsS -u "you@example.com:HOST-TOKEN" "https://dyn-ip.dk/nic/update?hostname=home.dyn-ip.dk"
curl -6 -fsS -u "you@example.com:HOST-TOKEN" "https://dyn-ip.dk/nic/update?hostname=home.dyn-ip.dk"Replies
| Reply | Meaning |
|---|---|
good | The address was changed. |
nochg | The address was already correct. |
badauth | Wrong username, password or update key. |
nohost | The host name does not exist. |
notfqdn | No host name was given. |
numhost | More than 20 host names in one request. |
abuse | Too many updates – slow down (or the plan's update interval has not passed). |
911 | Invalid address or a temporary server error. Try again later. |
The update URL (/api/) replies "OK" or "Error: <reason>" as it always has.
What is my IP?
Returns the address you are connecting from, as text or JSON.
curl https://dyn-ip.dk/ip
curl https://dyn-ip.dk/ip.json