2008-07-27
缓存DNS查询,解决DNS查询慢的问题
作者:花开 发布时间: 2008-07-27 | 版权声明:可以任意转载,转载时请务必以超链接形式标明文章原始出处、作者信息及本声名。
本文链接: http://www.bsdmap.com/2008/07/27/pdnsd/
pdnsd, written by Thomas Moestl, is a proxy DNS server with permanent caching (the cache contents are written to hard disk on exit) that is designed to cope with unreachable or down DNS servers (for example in dial-in networking).
The official pdnsd homepage by the original author can be found at http://home.t-online.de/home/Moestl/, but unfortunately pdnsd is no longer being maintained by him. As far as I know I am presently the only one actively working on the code, so if you want the latest features and fixes, this is the place to get them.
主页:http://www.phys.uu.nl/~rombouts/pdnsd.html
配置起来非常简单:
1. 将example配置文件复制一份
2. 将:
server {
label= “myisp”;
ip = 58.215.76.163
IP换成自己的ISP提供的DNS地址,多个用”,”隔开
3. 最重要的一步,许多DNS不接受”ping”测试,所以要将:
uptest=if/ping 改成
uptest=query
4. 将/etc/resolv.con里的nemeserver改成127.0.0.1
PS:
pdnsd.conf是可以控制pdnsd的返回结果的,就是说,可以通过配置pdnsd来达到自定义解析结果的日的。
另外,我们使用pdnsd的根本原因是因为ISP的DNS不稳定,解析慢。pdnsd可以直接从根服务器查询开始,更不必依赖于ISP的DNS。但是需要说明的是,使用了CDN服务的站点,可以会取到不精确的地址,而导致访问速度不佳。
On this day..
- RouterOS配置备份与恢复 - 2008