LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 906|回复: 0

Linux DNS 服务,配置文件系统找不到,为什么?

[复制链接]
发表于 2009-4-7 18:54:49 | 显示全部楼层 |阅读模式
****/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]

什么原因?
您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表