Manually trigger DDNS update on a UDM Pro
Aug 19, 2023
· 1 minutes read
Dynamic DNS updates on the UDM Pro get triggered whenever your WAN IP address changes. But what if you need to trigger an update yourself?
I ran into this issue today, and to my surprise, there is no way of doing that from the Unifi Dashboard. While most of the responses you will find on Ubiquiti’s forums and on Reddit suggest restarting the console altogether, u/TheFuer on Reddit posted a much better way to do it, using the CLI.
First, connect to your UDM Pro via SSH. You can follow this guide if you don’t have it setup yet.
1. Determine the config/command that the UDM is using by typing this command:
$ ps aux | grep inadyn
It should return something similar to this:
root 1432 0.0 0.0 6336 3256 ? S 00:49 0:00 /usr/sbin/inadyn -n -s -C -f /run/ddns-eth8-inadyn.conf
root 24298 0.0 0.0 4924 680 pts/0 S+ 01:00 0:00 grep --color inadyn
2. Run inadyn with a force flag to force the update. Replace The path with the one the previous command returned:
$ inadyn -n -1 --force -f /run/ddns-eth8-inadyn.conf
You should get the following once the update is successful:
inadyn[25647]: In-a-dyn version 2.9.1 -- Dynamic DNS update client.
inadyn[25647]: Update forced for alias all.dnsomatic.com, new IP# XXX.XXX.XXX.XXX
inadyn[25647]: Updating cache for all.dnsomatic.com