GithubHelp home page GithubHelp logo

ddns-gandi's Introduction

ddns-gandi

Dynamic DNS utility for use with the gandi.net

ddns-gandi is a Dynamic DNS utility for use with the gandi.net domain registrar. I use run it on an Ubiquiti EdgeRouter Lite, a small MIPS-based router. This tool is based on a similar tool by jboelter (https://github.com/jboelter/ddr53), for use with Amazon's Route53.

To use this you'll need a domain name registered with gandi.net and a Gandi API Key. You may generate a Gandi API Key on your user account page.

Install Instructions

Modify the shell script as required by your domain configuration. You need to specify your host, domain, the network interface that's connected to your Internet ISP, and your Gandi API Key.

    -host myrouter -domain example.com -ifname eth0 -apiKey XXXXX

This example would give read your public IP addresses from network interface eth0, and create or update your gandi.net DNS records for myrouter.example.com.

Copy the ddns-gandi binary and shell script onto your router. (I used scp with the EdgeRouter Lite.)

Change the owner/group of each file:

  • chown root:root ddns-gandi
  • chown root:root ddns-gandi.sh

Move the shell script into /etc/dhcp/dhclient-exit-hooks.d/ and the binary into /config/scripts/.

To run it manually the first time, execute the shell script. It will produce a log file: /var/log/ddns-gandi.log

Build Instructions

To build on Linux, requires Go is installed. For a native build:

  • go build -o ddns-gandi

And, for a MIPS build to run on the EdgeRouter Lite:

  • GOARCH=mips64 go build -o ddns-gandi

ddns-gandi's People

Contributors

chrisg0x20 avatar

Stargazers

Matt Black avatar  avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.