Many people have reported in the forums that Dynamic DNS / DDNS isn’t working on the Unifi Dream Machine Pro (UDM PRO) which to some extent is true – it’s not working well. The implementation is horrific at best, there’s no guidance as to the format required for any providers, there’s no error handling, no feedback when it fails – and this all leads to a big mess when a novice user tries to set it up and makes even the slightest mistake. Ubiquiti really need to improve this area of the UI and add some error handling.
Investigating your current setup to see what’s wrong:
Currently, the only way you would have any clue why it’s not working would be to SSH to your UDM-Pro (first you have to enable SSH in the UI and configure an SSH password, the login with username: root, and the password you just set) and tail the logs.
tail -100 -f messages | grep inadyn
inadyn is the service handling DDNS for the UDM-PRO so all the error (or success) messages show up under this one.
Now go edit and save your DDNS configuration in the UI and watch the logs. You will likely see something like this show up
Dec 2 09:42:42 ubnt user.notice inadyn: Update forced for alias xxxxxxx, new IP# xxx.xxx.xxx.xxx
Dec 2 09:42:42 ubnt user.warn inadyn: Fatal error in DDNS server response:
Dec 2 09:42:42 ubnt user.warn inadyn: [400 Bad Request] <html>^M <head><title>400 Bad Request</title></head>^M <body>^M <center><h1>400 Bad Request</h1></center>^M </body>^M </html>^M
Dec 2 09:42:42 ubnt user.warn inadyn: Error response from DDNS server, ignoring ...
Which means your DDNS isn’t correctly configured and the DDNS provider is simply returning an error to the UDM Pro. If this is the case try the tested configurations below for some poplar providers.
Most providers have a dev page that outlines the request format they support usually a simple URL format and you can modify these examples to suit.
Note: Replace the red/bold items in the configuration with details specific to your account.
The Dynamic DNS configuration can be found under Gateway > DynamicDNS in the Unifi Network UI
Hostname: your DuckDNS hostname (without “.duckdns.org” i.e. myHostName)
DNS-o-Matic / OpenDNS
DNS-o-Matic supports a huge list of other DDNS providers and can be used as a relay. Note the UDM only lets you configure 1 dyndns type provider so if for some reason you wanted to update a number of URLs you’d need to use DNS-o-matic. These are the providers DNS-o-Matic supports:
DNS Made Easy
Hostname: all.dnsomatic.com (will update all hosts)
Username: DNS-o-Matic username
Password: DNS-o-Matic password
Thanks to eLog_Cowboy for the settings
no-ip (supposedly out of the box)
Hostname: your full No-IP hostname (eg myhostname.ddns.net)
Username: your No-IP username
Password: your No-IP password
Server: **leave this blank**