title: Simple DNS Server in Node.JS? (Primary/Authoritative DNS Server) (maybe ndns?)
body: <p>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).</p>
  
  <p>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.</p>
  
  <p>In fact I may not need all of those types of records. But the important thing is that <strong>it must work.</strong> I do <strong>not</strong> want to have DNS debugging issues. I am hoping (expecting) this will not be a problem because DNS is very simple (I have heard).</p>
  
  <p>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.</p>
  
  <hr>
  
  <p>The Node.JS <strong>DNS Servers I have found</strong> are</p>
  
  <ul>
  <li><a href="https://github.com/sh1mmer/dnsserver.js/network" rel="noreferrer">dnsserver.js</a> (<a href="https://github.com/sh1mmer/dnsserver.js/network/members" rel="noreferrer">alternate link</a>)</li>
  <li><a href="https://github.com/jsjohnst/ndns/network" rel="noreferrer">ndns</a> which has an extension called <a href="https://github.com/sj26/node-mdns/network/members" rel="noreferrer">mdns</a></li>
  <li><a href="https://github.com/corytheboyd/dns-server" rel="noreferrer">dns-server</a></li>
  </ul>
  
  <p>If anyone is using one for production, I would like to know. So far they seem to be very scattered efforts.</p>