Skip to content

Instantly share code, notes, and snippets.

@cyrusboadway
cyrusboadway / google-domains-dynamic-dns-update.sh
Created Feb 20, 2016
Script to update a Google Domains DNS record
View google-domains-dynamic-dns-update.sh
#!/bin/bash
### Google Domains provides an API to update a DNS "Syntheitc record". This script
### updates a record with the script-runner's public IP, as resolved using a DNS
### lookup.
###
### Google Dynamic DNS: https://support.google.com/domains/answer/6147083
### Synthetic Records: https://support.google.com/domains/answer/6069273
USERNAME=""