Skip to content
forked from yalp/gandyn

Dynamic IP updater for Gandi DNS service

Notifications You must be signed in to change notification settings

thechriswalker/gandyn

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 

Repository files navigation

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

Overview

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.

Install

With the go tools:

$ go get github.com/thechriswalker/gandyn
$ go install github.com/thechriswalker/gandyn

Usage

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.

Options

  • -apikey, -zone, -record are mandatory (see above)
  • -refresh defines the delay for polling the pulic IP address

About

Dynamic IP updater for Gandi DNS service

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Go 100.0%