forked from yalp/gandyn
- changed public IP check to opendns
myip.opendns.com
query via dig (yes, *nix only)- updated to Gandi's LiveDNS platform/api
A dynamic IP updater for Gandi.
It simply polls a public ip API and updates the Gandi DNS records
using the Gandi RPC APIs new LiveDNS API.
With the go tools:
$ go get github.com/thechriswalker/gandyn
$ go install github.com/thechriswalker/gandyn
Some infos are required to use gandyn:
- the API key from the admin interface
- the zone UUID of the domain to update
- the name of the record to update (like "www" or "blog")
The record must already exist on the active version of the zone before gandyn can update it.
Just launch it at startup as a service on startup, or using cron :
@reboot /path/to/gandyn -apikey "XXX" -zone ""<zone uuid>" -record "www"
Once started, gandyn will keep running indefinetly until stopped.
-apikey
,-zone
,-record
are mandatory (see above)-refresh
defines the delay for polling the pulic IP address