- 论坛徽章:
- 0
|
怪了
我的系统是CentOS5 , bind 9用的是rpm安装的,我把/etc/resolv.conf设成 nameserver 127.0.0.1,并用rndc flush清除了所有的dns缓存,但我还可以ping通www.baidu.com和其他外网网站,nslookup 其他域名也成功,但就是nslookup自己在 /etc/named.conf定义的域xia.com,test.com显示结果是外网的IP,而不是我定义的服务器IP,这又是哪一方面的问题呢?一位高手说是我的/etc/named.conf配置有问题,附我的/etc/named.conf文件:另 named-checkconf没提示有错,named-checkzone也成功.
options {
directory "/var/named";
dump-file "/var/named/data/cache_dump.db";
statistics-file "/var/named/data/named_stats.txt";
pid-file "/var/named/named.pid";
allow-transfer { none; };
};
zone "." {
type hint;
file "named.root";
};
zone "localhost" {
type master;
file "named.localhost";
};
zone "0.0.127.in-addr.arpa" {
type master;
file "named.127.0.0";
};
zone "xia.com" {
type master;
file "xia.com.dns";
};
zone "test.com" {
type master;
file "test.com.dns";
};
zone "55.101.202.in-addr.arpa" {
type master;
file "202.101.55.dns";
};
key "rndckey" {
algorithm hmac-md5;
secret "CLorQMeNpRoM6PSgiB1Dxw==";
};
controls {
inet 127.0.0.1 port 953
allow { 127.0.0.1; } keys { "rndckey"; };
};
希望楼主帮忙看看. |
|