Setup guide

Everything you need to keep your host name pointing at the right address.

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-TOKEN

If 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.10
hostname
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:

DeviceSetting
pfSense / OPNsenseDynamic DNS → Custom. Update URL: https://dyn-ip.dk/nic/update?hostname=%h&myip=%IP%
FRITZ!BoxInternet → Permit Access → DynDNS → User-defined. Update URL: https://dyn-ip.dk/nic/update?hostname=<domain>&myip=<ipaddr>,<ip6addr>
UniFiSettings → Internet → Dynamic DNS → Service "dyndns", server: dyn-ip.dk/nic/update?hostname=%h&myip=%i
Synology DSMExternal Access → DDNS → Customize provider. Query URL: https://dyn-ip.dk/nic/update?hostname=__HOSTNAME__&myip=__MYIP__&username=__USERNAME__&password=__PASSWORD__
MikroTikUse 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.dk

Or simply a cron job:

*/5 * * * * curl -fsS "https://dyn-ip.dk/api/?uid=YOUR-ACCOUNT-ID&sid=HOST-TOKEN" >/dev/null

Windows

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

ReplyMeaning
goodThe address was changed.
nochgThe address was already correct.
badauthWrong username, password or update key.
nohostThe host name does not exist.
notfqdnNo host name was given.
numhostMore than 20 host names in one request.
abuseToo many updates – slow down (or the plan's update interval has not passed).
911Invalid 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