(转自:http://www.devcomments.com/DNS-server-in-node-js-at291155.htm)
Sep 4, 2010 |
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
|
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.
|
|
分享到:
相关推荐
基于uni-app和nodejs开发的在线学习微信小程序源码.zip 代码完整下载即用,无需修改确保可以运行。 基于uni-app和nodejs开发的在线学习微信小程序源码.zip 代码完整下载即用,无需修改确保可以运行。基于uni-app...
前端开源库-microtime-nodejsmicrotime nodejs,用于microtime(https://github.com/wadey/node-microtime)包的本机javascript填充程序
Atom-atom-nodejs-snippets.zip,nodejs和javascript片段的集合atom的nodejs片段,atom是一个用web技术构建的开源文本编辑器。
微信小游戏-斗地主,包含nodejs-服务器-nodejs-server-wechat-landLordGame
法治学习网-vue-elmentui-nodejs
line-bot-sdk-nodejs, 用于在线消息传递API的node.js SDK line-bot-sdk-nodejs 用于在线消息传递API的Node.js SDK正在启动安装使用 npm插件:$ npm install @line/bot-sdk文档参考指南。API参考
async-await-nodejs的启动库
# Access the project folder in the cmd / terminal $ cd UDP-TCP-Nodejs # Install the dependencies $ npm install 剧本 # UDP server $ npm run udpserver # UDP client $ npm run udpclient # TCP server $ ...
node-crawler - NodeJS中的爬虫拥有简洁的API
nodejs-microservice-starter, NodeJS RESTful API Microservice Starter NodeJS RESTful API Microservice v1.2.0这个存储库包含运行 NodeJS rest式 API Microservice启动器的完整配置。 要求NodeJS用于本地开
speech-to-text-nodejs, IBM Watson语音到文本服务的样例 node.js 应用程序 向文本浏览器应用程序添加语音 在文本转换中使用了ibm的语音识别功能来将多种语言中的语音转换成文本,从而实现文本的转换。 传入音频的...
vscode-debug-nodejs-es6, 如何使用VSCode调试 ES6 NodeJS vscode-debug-nodejs-es6如何使用VSCode调试 ES6 NodeJS 先决条件VSCode: http://code.visualstudio.com/NodeJS: https://nodejs.o
Black-Jack-nodejs-源码.rar
example-prometheus-nodejs-master.rar
docker-compose-nodejs-haproxy-源码.rar
imersao-api-nodejs-main-源码.rar
backend-architecture-nodejs-mysql-源码.rar
用node.js实现区块链开发,对区块链开发有兴趣的同学可以下载看看
desafio02-ignite-nodejs-源码.rar
MariaDB Connector/Node.js(mariadb-connector-nodejs-2.5.4.zip)