|
****/etc/named/chroot/etc/named.conf
options
{
directory "/var/named";
};
zone "abc.org"
{
type master;
file "abc.org.hosts";
};
zone "0.168.192.in-addr.arpa"
{
type master;
file "192.168.1.rev";
};
****/etc/named/chroot/etc/named/abc.org.hosts
$TTL 86400
@ IN SOA linux.abc.org root.linux.abc.org
(
2001101100;
10800;
3600;
604800;
0
);
IN NS dns.abc.org
IN MS 5 linux.abc.org
IN A 192.168.0.1
www IN CNAME linux.abc.org.
****/etc/named/chroot/etc/named/192.168.0.rev
$TTL 86400
@ IN SOA linux.abc.org root.linux.abc.org
(
2001101100;
10800;
3600;
604800;
0
);
IN NS dns.abc.org
1 IN PTR dns.abc.org
执行 service named start ,反应是
Starting named:
Error in named configuration:
zone abc.org/IN: loading master file abc.org.hosts: file not found
_default/abc.org/IN: file not found
zone 0.168.192.in-addr.arpa/IN: loading master file 192.168.1.rev: file not found
_default/0.168.192.in-addr.arpa/IN: file not found
[FAILED]
什么原因? |
|