trevoro / node-named

DNS Server in node.js
MIT License
356 stars 100 forks source link

Dynamically detect v4/v6 #30

Open mkg20001 opened 6 years ago

mkg20001 commented 6 years ago

By default an IPv6-only socket is created which makes it impossible to use this server with IPv4 hosts. I've added a bit of code that checks the IP version via regex and creates the appropriate socket for it