- 论坛徽章:
- 0
|
大家好,我测试DNS时,用nslookup 172.16.18.18 报错信息为:
[root@test etc]# nslookup 172.16.18.18
Note: nslookup is deprecated and may be removed from future releases.
Consider using the `dig' or `host' programs instead. Run nslookup with
the `-sil[ent]' option to prevent this message from appearing.
Server: 172.16.18.18
Address: 172.16.18.18#53
** server can't find 18.18.16.172.in-addr.arpa.: SERVFAIL
我的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 "test.edu.cn"{
type master;
file "test.edu.cn";
};
zone "0.0.127.in-addr.arpa" {
type master;
file "named.localhost.arpa";
};
zone "18.16.172.in-addr.arpa"{
type master;
file "named.test.arpa";
};
而hosts配置为:
127.0.0.1 localhost
172.16.18.18 test.edu.cn test
#############################################################
|
|