ddns-nameserver

1.0.1 • Public • Published

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

Readme

Keywords

none

Package Sidebar

Install

npm i ddns-nameserver

Weekly Downloads

18

Version

1.0.1

License

(MIT OR Apache-2.0)

Last publish

Collaborators

  • coolaj86