Skip to content

jmkim/google-domains-ddns-updater

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 

Repository files navigation

Google Domains DDNS Updater

Works well with bash.

This script follows the LSBInitScripts. You can update your IP address every few minutes using cron, or update it at boot time using init.

Installation

Make your host information file first.

init:

# Update IP at runlevel 0 1 2 3 4 5 6 (while booting, rebooting, shutdown, etc.)
$ update-rc.d update-ddns start 90 2 3 4 5 . stop 90 0 1 6 .

cron:

$ crontab -e

# Update IP for every 5 mins
*/5 *    *   *   *   /etc/init.d/update-ddns start

Example of host information file

{
	"amount": 3,
	"host1":
	{
		"hostname": "mysubdomain.mydomain",
		"username": "iVETU0O6r0CTNYdX",
		"password": "XsaMlfmzSU1dRrMg"
	},
	"host2":
	{
		"hostname": "mysubdomain2.mydomain",
		"username": "sUNeCRROUlnYbyDJ",
		"password": "afM95PIqWOGSNHHw"
	},
	"host3":
	{
		"hostname": "mysubdomain3.mydomain",
		"username": "tNCcjHOKHyVnHTg0",
		"password": "GiBeuNrU92JXLd1w"
	}
}

Links

Releases

No releases published

Packages

No packages published

Languages