Google Domains Dynamic DNS on pfSense
This is a quick write up on how to configure Google Domains Dynamic DNS on pfSense. Since Google Domains is fairly new it is not officially supported in pfSense nor is there any good documentation on how to do accomplish this
Lets start by setting up the Dynamic DNS in Google Domains. This part is pretty straight forward.
On the DNS tab in Google Domains scroll down to the "Synthetic records" portion. Select Dynamic DNS from the dropdown, fill in the subdomain name and select add.
Once the record is added expand the entry to reveal the record information. It show just an "A" record with an IP of 0.0.0.0 since nothing is configure yet. Click on the "View credentials" link to unmask the Username and Password.
On the pfSense router navigate to Services > Dynamic DNS. On the DynDNS tab click the + sign to add new entry. From the "Service type" dropdown select "custom" since Google Domains is not an option and needs to be configured manually. Set the "Interface to monitor" and "Interface to send update from" to WAN. Fill in the Username and password with the information provided from Google Domains. For the "Update URL" copy the link below and change the hostname to the subdomain that was set in Google Domains. Also update "Result Match" with the information below.
Update Url:
https://domains.google.com/nic/update?hostname=test.ttlequals0.com
Result Match:
good %IP%|nochg %IP%
Once this is done click "Save & Force Update". If all goes well within about a minute the Dynamic DNS "A" record should have the current IP of the router.
Let me know what you think of this article on twitter @TTLequals0 or leave a comment below!