Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

ddns-nameserver

Daplie12(MIT OR Apache-2.0)1.0.1

Dynamic DNS Server

readme

Node.js DDNS UDP Server

STOP: You probably want node-ddns

A Dynamic DNS (DDNS / DynDNS) UDP Server written in node.js.

This is one distinct part of a 3-part system.

  • node-ddns (full stack demo)
  • node-ddns-api (RESTful HTTP API)
  • node-ddns-frontend (HTML5 Management App)
  • node-ddns-service (UDP DNS Server)

Install & Configure

# npm
npm install --save ddns-server

# git
git clone git@github.com:Daplie/node-ddns-server.git
'use strict';

var ddnsServer = require('ddns-server');

function getAnswerList(questions, cb) {
  // questions -> [{ type: A|AAAA|CNAME|MX|TXT, name: 'example.com' }]
  cb(null, [{ type: 'A', address: '127.0.0.1', ttl: 600 }])
}

ddnsServer.create(port, address4, conf, getAnswerList).listen().then(function (closer) {
  console.log('listening');
  //closer.close();
});

Test

dig @localhost -p 5353 example.com

We're still working through getting all of these tests to pass:

LICENSE

Dual-licensed MIT and Apache-2.0

See LICENSE