named.conf的内容为:
options {
directory "/var/named";
};
zone "." IN {
type hint;
file "named.ca";
};
zone "localhost" IN {
type master;
file "localhost.zone";
allow-update { none; };
};
zone "0.0.127.in-addr.arpa" IN {
type master;
file "named.local";
allow-update { none; };
};
zone "test.com" IN {
type master;
file "test.host";
};
zone "6.168.192.in-addr.arpa" IN {
type master;
file "test.rev";
};
test.host的内容为:
$TTL 86400
@ IN SOA test.com. root.test.com. (
20020930 ; serial
86400 ; refresh
1500 ; retry
360000 ; expire
86400) ; minimum
IN NS test.test.com.
test IN A 192.168.6.92
ly IN A 192.168.6.94
tesww IN A 192.168.6.27
test.rev的内容为:
$TTL 86400
@ IN SOA test.com. root.test.com. (
20020930 ; serial
86400 ; refresh
1500 ; retry
360000 ; expire
86400) ; minimum
@ IN NS test.test.com.
92 IN PTR test.
94 IN PTR ly.
27 IN PTR tseww.
大侠们 邦我看看 我哪里写的不对阿
message的内容为:
Aug 10 12:22:22 test named[22490]: exiting
Aug 10 12:22:24 test named[22515]: starting BIND 9.2.1 -u named
Aug 10 12:22:24 test named[22515]: using 1 CPU
Aug 10 12:22:24 test named[22515]: loading configuration from '/etc/named.conf'
Aug 10 12:22:24 test named: named startup succeeded
Aug 10 12:22:25 test named[22515]: no IPv6 interfaces found
Aug 10 12:22:25 test named[22515]: listening on IPv4 interface lo, 127.0.0.1#53
Aug 10 12:22:25 test named[22515]: listening on IPv4 interface eth0, 192.168.6.92#53
Aug 10 12:22:25 test named[22515]: command channel listening on 127.0.0.1#953
Aug 10 12:22:25 test named[22515]: zone 0.0.127.in-addr.arpa/IN: loaded serial 1997022700
Aug 10 12:22:25 test named[22515]: zone 6.168.192.in-addr.arpa/IN: loaded serial 20020930
Aug 10 12:22:25 test named[22515]: zone test.com/IN: loaded serial 20020930
Aug 10 12:22:25 test named[22515]: zone localhost/IN: loaded serial 42
Aug 10 12:22:25 test named[22515]: running
Aug 10 12:22:25 test named[22515]: zone 0.0.127.in-addr.arpa/IN: sending notifies (serial 1997022700)
Aug 10 12:22:25 test named[22515]: zone test.com/IN: sending notifies (serial 20020930)
Aug 10 12:22:25 test named[22515]: zone 6.168.192.in-addr.arpa/IN: sending notifies (serial 20020930)
我网卡的IP地址:192.168.6.92 在局域网中
有3台机器 ly 192.168.6.94
tseww 192.168.6.27
test 192.168.6.92
可我一个都解析不了!