【转】Discussion
(转自:http://www.devcomments.com/DNS-server-in-node-js-at291155.htm)Sep 4, 2010
Donovan
0digg
Bookmark this on Delicious
Hi,
as anyone had any thoughts or experience on the idea of writing a simple DNS server in node.js? I'm working on a geo-aware service that would benefit from users being referred to their nearest server using DNS alone. I've looked at the NginX module and Apache mod_geoip:
http://wiki.nginx.org/NginxHttpGeoIPModule
http://www.maxmind.com/app/mod_geoip
which would both work, but the most efficient way is to answer each individual DNS request with the most local ip, for which the BIND patch is suitable:
http://www.caraytech.com/geodns/
But, seeing as everything else is so easy to write in node.js, I thought it made a lot of sense to simply respond to port 53 requests using the service itself, therefore every deployment could also deal with DNS without complicated BIND installs and no need for Apache or Nginx! If I add new servers in new locations I could alter a simple conf in Github and git pull to every server and it's done!
The spec of TinyDNS seems about right:
http://cr.yp.to/djbdns/tinydns.html
Anyone got any thoughts or ideas? node-geodns?
Cheers,
Donovan.
Sep 4, 2010
Paul Querna
0digg
Bookmark this on Delicious
You might also be interested in pgeodns:
<http://geo.bitnames.com/>
it is what several open source groups (apache, perl, etc) use to do geo-based load balancing.
页:
[1]