Using ddclient to Update DDNS on Google Domains

‘ddclient’ is a simple DDNS callback program developed in perl.   It reports the IP address to the DDNS server to automatically update your machines IP address.  One of the great features is that it’s compatible with Google Domains.  In order to get it working, you need  to install it from your distros package manager. (pacman, apt-get, emerge etc.)

Once installed, locate your ddclient.conf (most likely in /etc/ddclient/) and edit it with the following block:

<span style="font-family: 'courier new', courier, monospace;">daemon=300
syslog=yes
pid=/var/run/ddclient.pid
ssl=yes
 
use=web, web=https://domains.google.com/checkip
protocol=dyndns2
server=domains.google.com
login=LOGIN-FROM-GOOGLE
password=PASSWORD-FROM-GOOGLE
WWW.MYWEB.SITE</span>

For the login and password, when you log into your domains.google.com account and navigate your Synthetic records and get your username and password credentials from clicking the view option. Make sure that your website matches and the credentials are case sensitive.

Once you have updated ddclient.conf, save it, and start the system service:

sudo systemctl start ddclient.service
sudo systemctl enable ddclient.service

or for others:

sudo service ddclient start
sudo update-rc.d ddclient enable

When complete, it takes about 1-2 minutes for everything to update and then your DDNS should be working and pointing your IP address to your domain name.

Leave a Reply

Your email address will not be published. Required fields are marked *