Code Monkey home page Code Monkey logo

dnsup's Introduction

Dynamic DNS Updater

Pulls IPs from interfaces, joins them with partial IPs specified in the config file, and sends a RFC 2136-compliant update to a specified server.

Config File

server: "ipaddr:53"
zone: "fully.qualified.update.zone."
key: "update.key."
secrets:
        "update.key.": "update.secret."
hosts:
        "host1": "::1234:1234:1234:1234/64"
        "host2": "::def0:dea:dbee:f000/64"
        "host3": "::abcd:ef01:234:5678/64"
        "@": "0.0.0.0/32"
ttl: 300

As in BIND, @ is shorthand for the root of the zone.

While the host entries look like CIDR notation, they truly specify the prefix of the interface IP to merge with. That is to say, 0.0.0.9/24 + 1.2.3.4 yields 1.2.3.9.

Example Scenario

Imagine the following situation:

eth0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500
        inet 198.100.123.139  netmask 255.255.255.0  broadcast 10.128.3.255

eth1: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500
        inet6 2001:470:1f0e:83f::2  prefixlen 64  scopeid 0x0<global>
$ dnsup -4 eth0 -6 eth1 -c example.yml

The following updates will be made:

  • fully.qualified.update.zone. -> 198.100.123.139
  • host1.fully.qualified.update.zone. -> 2001:0470:1f0e:083f:1234:1234:1234:1234
  • host2.fully.qualified.update.zone. -> 2001:0470:1f0e:083f:def0:0dea:dbee:f000
  • host3.fully.qualified.update.zone. -> 2001:0470:1f0e:083f:abcd:ef01:0234:5678

dnsup's People

Contributors

dhowett avatar

Watchers

 avatar  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.