DNS编译全部完毕,nslookup时却提示XNDOMAIN
附上所有编译内容,红色为修改项
主机名为linux,所要配的DNS域名为test.com,主机IP 10.47.32.152
10.47.32.137为同一网段下windows PC
/etc/named.conf文件的配置
options {
listen-on port 53 { 10.47.32.152; };
listen-on-v6 port 53 { ::1; };
directory "/var/named";
dump-file "/var/named/data/cache_dump.db";
statistics-file "/var/named/data/named_stats.txt";
memstatistics-file "/var/named/data/named_mem_stats.txt";
allow-query { any; };
recursion yes;
};
logging {
channel default_debug {
file "data/named.run";
severity dynamic;
};
};
zone "." IN {
type hint;
file "named.ca";
};
zone "test.com" IN {
type master;
file "test.com.zone";
allow-update {none;};
};
zone "32.47.10-in.addr.arpa" IN {
type master;
file "10.47.32.zone";
allow-update {none;};
};
zone "0.0.127-in.addr.arpa" IN {
type master;
file "127.0.0.zone";
allow-update {none;};
};
include "/etc/named.rfc1912.zones";
/var/named/test.com.zone文件的配置
$TTL 1D
@ IN SOA linux.test.com. root.linux.test.com. (
2008080100 ; serial
28800 ; refresh
14400 ; retry
3600000 ; expriy
86400 ) ; minimum
IN NS linux.test.com.
linux IN A 10.47.32.152
xdw IN A 10.47.32.137
/var/named/10.47.32.zone文件的配置
@ IN SOA linux.test.com. root.linux.test.com. (
2008080100 ; serial
28800 ; refresh
14400 ; retry
3600000 ; expriy
86400 ) ; minimum
IN NS linux.test.com.
152 IN PTR linux.test.com.
137 IN PTR xdw.test.com.
/var/named/127.0.0.zone文件的配置
@ IN SOA @ root.locahost. (2008080100 1H 15W 1W 1D)
IN NS locahost.
1 IN PTR locahost.
/etc/resolv.conf文件的配置
search test.com
nameserver 10.47.32.152
nameserver 202.100.64.68
文件总共就编译了这五个,编译完毕后named-checkconf检测没有问题,service named restart可以正常启动named服务,tail /var/log/messages也可以看到running
windows下ping linux.test.com和xdw.test.com都可以解析到正确地址,但是
FC9下nslookup时却有下述提示,windows下nslookup也有类似提示,请问到底是哪里配置的有问题?
[root@linux etc]# nslookup
> ping linux.test.com
Server: 10.47.32.152
Address: 10.47.32.152#53
** server can't find ping: NXDOMAIN
[root@linux etc]# nslookup 10.47.32.152
Server: 10.47.32.152
Address: 10.47.32.152#53
** server can't find 152.32.47.10.in-addr.arpa.: NXDOMAIN