Resolve DNS with dynamic IP for google domain with ddclient.

Very often you will get a dynamic IP from your ISP, so whenever the IP changes you need to notify your domain service provider that you now want to map the domain name to a new IP address, so users will be able to continue visiting your home website with a domain name in the address bar.

ddclient is a tool to automatically update the IP with your domain provider or dynamic DNS provider.

If you happened to use google domain like me, here is a short protocol to setup ddclient to work with google domain: