Found a super simple way to keep my Ubiquiti cloud controller accessible from anywhere by using DDclient, Google Domains, and a little configuration.
It’s fairly straight forward. From the Google Domains console, create a synthetic record for the subdomain of type “Dynamic DNS”.
Grab the credentials from the record. Then add them to the config file.
Install DDclient and edit the configuration file, it can be found at /etc/ddclient.conf
DDClient does have a wizard that it runs after install, but I found that it was very picky and didn’t work extremely well with the google domain info.
___ ___ .__________.__
| | |____ |__\_ ____/__|
| | / \| || __) | | (c) 2013-2017
| | | | \ || \ | | Ubiquiti Networks, Inc.
|______|___| /__||__/ |__|
Welcome to UniFi CloudKey!
root@UniFi-CloudKey:~# sudo apt-get install ddclient
root@UniFi-CloudKey:~# vi /etc/ddclient.conf
# Configuration file for ddclient generated by debconf
root@UniFi-CloudKey:~# sudo service ddclient restart
I restarted the client when I finished the with the configuration. For good measure and then manually invoked the client just for good measure. Check back in the console and to see if the IP address got passed along, if it did, then congrats, you are all set. If not, Google’s official documentation can be found here, I probably flew by some little detail somewhere. Enjoy.