最近在折腾bind9,顺带看了域名解析相关的东西,发现几个网站很不错
http://www.madboa.com/geek/dig/ 这个网页把dig的用户说得很透彻,有意思的是说到的dig xxx.com +trace能看到类似traceroute那样的效果,就是dns resolve request整个过程所经历的dns server,由于dig能指定服务器,且能指定包含hostname的文件,所以dig也很适合来对dns server来做性能测试
反向查询: dig @name_server -x a.b.c.d
http://www.madboa.com/geek/soho-bind/ How to configure BIND 9 to act as a caching nameserver or as the nameserver for a local domain.
http://www.bind9.net/ O'Reilly出版社维护的bind9的网站,有很多整理好的资源
https://calomel.org/dns_bind.html Bind Authoritative Caching DNS
如何实现cache/forward/recursing
如果指定了forwarders则如果本地无法解析,则由name server自身递归去这些forwarders查询,如果forwarder仍然查不到,则resursively去root问
forwarders {
10.100.70.251;
202.106.195.68;
220.231.35.70;
8.8.8.8;
};
recursive-clients 1000000;
it tries cache, then the forwarders, then does recursion
itself (unless "forward only" is set).
recursion yes;
recursive-clients 100000;