由 defond 在 06-18-2003 11:03 发表:
RH7.2 配置DNS的问题为什么不能通过nslookup的检测,配置文件如下?
请问,RH7.2的DNS的问题?如何配置?
我安装的是RH7.2,想在我们公司内配置一台DNS服务器,可是我配置完用nslookup 检查是出现是问题如下,请你们分析原因:
[root@linux root]#nslookup linux.com.cn
Note:nslookup is deprecated and maybe removed from futrue releases.
Consider using the 'dig' or 'host' programs. Run nslookup with the 'sil[en]' option to prevent this message from appearing,
Server:192.168.162.10
Address:192.168.162.10#53
**server can't find linux.com.cn:SERVFAIL
电脑名为:linux.
ip为:192.168.162.10
域名为:linux.com.cn
我的named.conf文件如下:
named.conf - configuration for bind
Generated automatically by bindconf, alchemist et al.
controls {
inet 127.0.0.1 allow { localhost; } keys { rndckey; };
};
include “/etc/rndc.key”;
options {
directory “/var/named/”;
};
zone “.” {
type hint;
file “named.ca”;
};
zone "0.0.127.in-addr.arpa” {
type master;
file “named.local”;
};
zone "160.168.192.in-addr.arpa” {
type master;
file "160.168.192.in-addr.arpa.zone”;
};
zone “localhost” IN {
type master;
file “localhost.zone”;
allow-update {none;};
};
zone “linux.com.cn” IN {
type master;
file “linux.com.cn.zone”;
allow-update {none;};
};
我的linux.com.cn.zone 文件如下:
$TTL 86400
$ORLGIN linux.com.cn
@ 1D IN SOA linux.com.cn. root.linux.com.cn. (
2003061405 ; serial
28800 ; refresh
7200 ; retry
604800 ; expire
86400 ; minimum
)
@ 1D IN NS linux.com.cn.
@ 1D MX 10 mail.linux.com.cn.
1D IN A 192.168.162.10
www 1D IN A 192.168.162.10
ftp IN IN A 192.168.162.10
mail 1D IN A 192.168.162.10
我的160.168.192.in-addr.arpa.zone文件为:
$TTL 86400
@ IN SOA linux.com.cn. root.linux.com.cn. (
2003061405 ; serial
28800 ; refresh
7200 ; retry
604800 ; expire
86400 ; ttk
)
@ IN NS linux.com.cn.
1 IN PTR linux.com.cn.
2 IN PT