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

dnsndnsnode.js

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

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

Best Answer

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