Giter VIP home page Giter VIP logo

dynnodednsserver's Introduction

This is an implementation of a dynamic dns server in node.js. Its records can be updated through the DynDNS update protocol.

This application has these features:

  • IPv4 DNS server to resolve a hostname to its IPv4 address (A-Record)
  • Update the records
  • via DynDNS protocol
  • by checking an individual username and passwort for each host record
  • over http and https (when activated)
  • Save the records to a file to have the data available on restart

To run the application, you need the file dyndnsdata. It contains all dns records:

[
{"host":"samplehost","user":"username","pass":"passw0rd","ip":"8.9.2.1"},
{"host":"secondhost","user":"alice","pass":"p4ssw0rd","ip":"123.4.5.6"}
]

The file dnd.js provides these options:

port

The udp port for the dns server (default value: 53).

updateportinsecure

The tcp port for the http update service (default value: 1090)

updateportsecure

The tcp port for the https update service (default value: 1091)

usehttps

A boolean value to control, whether the https update service should run.

Certificate

var options = {
 key: fs.readFileSync('server.key'),
 cert: fs.readFileSync('server.crt')
};

These two values tell the https service, which files it has to use for the server certificate and the certificate key.

datafile

This is the name of the permanent data file. It saves the hostnames, usernames, passwords and latest IP addresses.

dynnodednsserver's People

Contributors

sh1mmer avatar erikwegner avatar

Watchers

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