|
请问,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 PTR mail.linux.com.cn.
我的localhost.zone文件为:
$TTL 86400
@ IN SOA @ root.localhost (
2003061404 ; serial
28800 ; refresh
7200 ; retry
604800 ; expire
86400 ; ttl
)
IN NS localhost.
localhost. IN NS 127.0.0.1
我的named.local文件为:
$TTL 86400
@ IN SOA linux.com.cn. root.linux.com.cn (
2003061405 , Serial
28800 ; Refresh
14400 ; Retry
3600000 ; Expire
86400 ) ; Minimum
IN NS localhost.
1 IN PTR localhost.
//好像"0.0.127.in-addr-arpa.zone"这个文件没有用啊,这是为什么,
我没有named.boot文件, 也没有更新named.ca 文件请问我的DNS问题出现在那里请指教十分感谢,
|
|