【转】Discussion - DNS in nodejs

(转自:http://www.devcomments.com/DNS-server-in-node-js-at291155.htm


 
  
Sep 4, 2010
Donovan
Donovan
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
Paul Querna
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. 
 



  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值