Last updated on August 31, 2024
I have a remote USG deployed at a relative’s house and need to have a way to access the UniFi Security Gateway’s WAN IP if the ISP changes it.
Steps to implement
- Create a user account on www.duckdns.org. This will generate a new user token. Save this as you will need it later and don’t share this.
- Create a subdomain on www.duckdns.org
- Go to your UniFi controller and set up a config.gateway.json file, instructions here.
- Add the below configuration to this file. Replace SUBDOMAIN with just the subdomain of your duckdns site and replace TOKEN from your account token.
- Go to your UniFi Controller and reprovision your USG. Your dynamic DNS should now be working
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 |
{ "service": { "dns": { "dynamic": { "interface": { "eth0": { "service": { "dyndns": { "host-name": [ "SUBDOMAIN" ], "login": "nouser", "password": "TOKEN", "server": "www.duckdns.org" } }, "web": "dyndns" } } } } } } |
Check to make sure it works
To check and confirm the USG is updating the DNS correctly, you can SSH into the USG and run show dns dynamic status
.
1 2 3 4 5 6 |
show dns dynamic status interface : eth0 ip address : 123.123.123.123 host-name : SUBDOMAIN last update : Wed Jun 10 12:08:20 2020 update-status: good |
You can also force an update by running update dns dynamic interface eth0
Be First to Comment