Free dynamic DNS on a UniFi router
UniFi gateways can keep a rytrix DDNS hostname pointed at your WAN address on their own, with nothing else running at home. This takes about five minutes.
Register a hostname
Create a free account and register a host, for example
home. Your full hostname is thenhome.d.rytrix.com. Copy the token the dashboard shows you. It's only shown once, and you can roll a new one at any time.Add a custom Dynamic DNS service
In the UniFi Network app, open Settings → Internet, select your WAN connection, and find Dynamic DNS. Create a new entry with these values:
- Service:
custom - Hostname:
home.d.rytrix.com - Username:
home.d.rytrix.com - Password: the token you copied
- Server:
ddns.rytrix.com/nic/update?hostname=%h&myip=%i
UniFi fills in
%hwith the hostname and%iwith your WAN address, and sends the username and password with each request. Save the entry.- Service:
Check that it worked
Within a few minutes,
home.d.rytrix.comshould resolve to your WAN address. Look it up from any computer:dig +short home.d.rytrix.com
The dashboard also shows the IP each host points at. Records have a 5-second TTL, so later IP changes show up almost at once.
If it doesn't update
The server answers each update with a DynDNS status. The common ones:
goodornochg: the update worked.badauth: the username isn't the hostname, or the token is wrong. Roll a new token and paste it again.nohost: the hostname isn't registered, or it expired.
UniFi only re-sends an unchanged IP about every 30 days. A host expires after 40 days without an update, so a router update alone keeps it alive.
Other guides: Free dynamic DNS on a Raspberry Pi