Dynamic DNS Raspberry Pi or Linux Systems (domains.google)

Google domains provide excellent Dynamic DNS services free with the hosting for IPv4 and IPv6. In case you have a small web service hosted using dynamic dns this tool can be very helpful for setting up low cost hosting in few minutes. Most of the common Broadband routers these days support on TZO or Dyn.com which are paid services of dyn.com. Create the port forwarding for your broadband or DSL routers to your LAN device IP and the follow the steps.

pi@raspberrypi:~ $ sudo apt update
pi@raspberrypi:~ $ sudo apt install ddclient

after successful installation of ddclient edit the configuration file at /etc/ddclient.conf in your favorite editor

# Configuration file for ddclient generated by debconf
# /etc/ddclient.conf
ssl=yes
#protocol=dyndns2
protocol=googledomains
use=web
server=domains.google.com
login=googledomaindyndnslogin
password='autogeneratedpasswordformgoogle'
www.affan.info
daemon=100

Protocol is used as

protocol=dyndns2
for other dynamic dns servers but for google
protocol=googledomains
works not the first one. its important to set option
use=web
if this option is not set the ddclient will take the local interface ip instead of the actual IP address of your broadband WAN interface.

Raspberry Pi3 

Once configuration is done save the file and restart the client .

pi@raspberrypi:~ $ sudo service ddclient restart
. To verify the setup and ip run the following command
pi@raspberrypi:~ $ sudo ddclient -query
. Match the output ip with your google domain console.


Posted

in

by

Comments

2 responses to “Dynamic DNS Raspberry Pi or Linux Systems (domains.google)”

  1. […] the IP address of your router /firewall. In case of dynamic DNS please refer to the previous post https://affan.info//google-domain-ddns-raspberry-pi-or-linux-systems/. Certbot need bot port 80 and 443 to be redirected to the NGINX web server . Once this is done move […]

  2. ibrahimmotiwala Avatar

    Hi Affan

    Thx for the post. really helpful. Would you also mind sharing the wordpress settings that you have specifically relating to home and site URL with permalinks settings

    Ibrahim