Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Simple DNS Server in Node.JS? (Primary/Authoritative DNS Server) (maybe ndns?)

Tags:

node.js

dns

ndns

Does anybody know of a DNS Server that is written in Node.JS? I am specifically interested in Authoritative DNS Servers (as opposed to caching DNS server).

The only thing this needs to do is to serve A, MX, TXT, SPF, SOA, NS records based on my own algorithm which I will write into a fork or clone of whatever I find to start with.

In fact I may not need all of those types of records. But the important thing is that it must work. I do not want to have DNS debugging issues. I am hoping (expecting) this will not be a problem because DNS is very simple (I have heard).

Is there anything in Node.JS I can start with? If you know that something has been used in production, then please let me know.


The Node.JS DNS Servers I have found are

  • dnsserver.js (alternate link)
  • ndns which has an extension called mdns
  • dns-server

If anyone is using one for production, I would like to know. So far they seem to be very scattered efforts.

like image 820
700 Software Avatar asked Apr 04 '11 14:04

700 Software


2 Answers

Here's "a very basic authority server built with Node.js", in < 500 lines: dnsserver.js

like image 116
psema4 Avatar answered Sep 30 '22 11:09

psema4


Check out https://github.com/tjfontaine/node-dns

like image 35
The Digital Ninja Avatar answered Sep 30 '22 11:09

The Digital Ninja