DuckDNS on UDM
Updated on 4/09/2022: There was a change in the way the DuckDNS settings get entered in the UDM.
I have set up my Ubiquiti Dream Machine (UDM) and I am loving it. I’m diving into all of the settings that I can configure on my home network and one of the first things I’m setting up is Dynamic DNS (DDNS). This will allow me to reach my device/network remotely, regardless of the IP address that it has been assigned by my ISP.
The UDM can work with lots of different DDNS providers to accomplish this. Some DDNS services are free, whereas many are paid services. A quick google search will show you all the various sites that offer DDNS services. In this article, I am only going to cover how to use DuckDNS which is a free DDNS provider. Note: If you do use their service, I encourage you to support and donate to DuckDNS through any of the links at the bottom of their site.
Open your web browser and go to: https://www.duckdns.org/
Log into their site using your credentials from one of these sites: Twitter, GitHub, Reddit, or Google.
In the center of the page there is a spot to create a DuckDNS subdomain. This is where you will enter the unique name that you would like to use for your network, then click the green “add domain” button.
You will see your subdomain listed below.
In the upper part of the DuckDNS page, you should see a token listed.
Copy this token for later.
In your browser, open up your Unifi Contoller.
On your controller go to “Settings” -> “Advanced Features” -> “Advanced Gateway Settings” -> “Dynamic DNS”
Click on the button to “Create New Dynamic DNS”.
Enter the following settings:
- interface: WAN
- service: dyndns
- hostname: <YourSubdomain>
- username: nouser
- password: nopassword
- server: www.duckdns.org/update?domains=%h&token=<YourDuckDNStoken>
–For hostname, it is just going to be the subdomain name you created on DuckDNS. This field will not include the ‘.duckdns.org’ part at the end.
–For server, replace <YourDuckDNStoken> with your own token from your DuckDNS page.
Then click on “Done” button to save your settings.