|
adsl共享上网,私网网关上安装了dns服务器,配置文件如下。
我发现这个dns的解析速度挺慢的。具体现象如下:
1。私网机器配置isp的dns,可以比较快的解析
2。私网机器配置这个dns,解析很慢,经常失败,失败后刷新一下,一般就可以了,但也又是刷新无效。
在网关(dns服务器)上用nslookup测试结果
1。解析公网域名,速度比较慢,有时会超时;
2。超时后,同样域名在解析一次,一般就可以了,也有总是不行的时候;
3。反向解析问题差不多,更严重一些;
4。正向反向解析私网内的域名,速度极快
请大侠指点
named.conf如下:
// generated by named-bootconf.pl
options {
directory "/var/named";
/*
* If there is a firewall between you and nameservers you want
* to talk to, you might need to uncomment the query-source
* directive below. Previous versions of BIND always asked
* questions using port 53, but BIND 8.1 uses an unprivileged
* port by default.
*/
// query-source address * port 53;
forward only;
forwarders {202.106.196.152;202.106.196.115;};
};
//
// a caching only nameserver config
//
controls {
inet 127.0.0.1 allow { localhost; } keys { rndckey; };
};
zone "." IN {
type hint;
file "named.ca";
};
zone "localhost" IN {
type master;
file "localhost.zone";
allow-update { none; };
};
zone "0.0.127.in-addr.arpa" IN {
type master;
file "named.local";
allow-update { none; };
};
zone "starpoint.com" in {
type master;
file "starpoint.com.zone";
};
zone "1.168.192.in-addr.arpa" in {
type master;
file "1.168.192.in-addr.arpa.zone";
};
include "/etc/rndc.key"; |
|