Git Product home page Git Product logo

node-ddns's Introduction

new version is on the way

Update: Nov 30 2015

I'm running a much more robust and well-developed version of this ddns server that is just waiting to be commited here.

Just too tired tonight to finish the updates...

node-ddns

A Dynamic DNS (DDNS / DynDNS) server written in io.js / node.js.

Install & Configure

git clone [email protected]:Daplie/node-ddns.git
pushd node-ddns

echo '{}' > dns.db.json

# edit config.example.json with nameserver information
rsync -av config.example.json config.json
vim config.json

Start DNS Server and Web Portal

# node bin/node-dyndns <<dns port>> <<https port>>
node bin/node-dyndns 65053 65443

# or sudo node bin/node-dyndns 53 443

Generate Domain Update Tokens

# Generate a JWT that will allow updates of a particular domain
# node lib/cn-auth <<valid domain pattern>> <<pattern test>>
# (the second argument is the test parameter, which must be set to a matching domain)

# Generate a JWT allowing any and all domain updates whatsoever
# (i.e. for super user / admin use)
node lib/cn-auth '*' 'example.com'

# Generate a JWT allowing only *.example.com and example.com
# (i.e. for distributing to domain owners)
node lib/cn-auth '*.example.com' 'bar.foo.example.com'

Test that it all works

# update a DNS record
curl https://localhost:65443/api/ddns \
  -X POST \
  --cacert certs/ca/my-root-ca.crt.pem \
  -H 'Authorization: Bearer '$JWT \
  -H 'Content-Type: application/json; charset=utf-8' \
  -d '[
        { "name": "example.com"
        , "value": "127.0.0.1"
        , "type": "A"
        }
      ]'

# test that the record was updated
dig -p 65053 @localhost example.com A

via GET

/nic/update?name=example.com&type=A&value=127.0.0.1

IP Address Resolve

The resolve API refers RFC 1035.

License

Apache2

Original Work

v0.2.0 was taken from https://bitbucket.org/ntakimura/node-dyndns/src

node-ddns's People

Watchers

James Cloos 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.