dns服务器解析地址的速度问题

由 antelope 在 09-04-2003 10:47 发表:

dns服务器解析地址的速度问题

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";


由 stanlogin 在 09-04-2003 10:56 发表:


你自己配置DNS的目的是什么呢?如果没有特殊需要最好不要配置~

如果要配置,我的方案是这样的:

我在出口那台机器配置了“test.com”的玉米,指向本机(192.168.1.254),以方便内部测试WEB程序。

通过DHCP把客户段的NS列表设定为:192.168.1.254,10..., …… (其中10..*.*是ISP给的NS)

这样的话,客户机除了访问“test.com”会被转到254之外,访问其它玉米不受影响,也没

Published At
Categories with 服务器类
Tagged with
comments powered by Disqus