Chinaunix

标题: Linux DNS 服务,配置文件系统找不到,为什么? [打印本页]

作者: zcsgamer    时间: 2009-04-07 18:32
标题: Linux DNS 服务,配置文件系统找不到,为什么?
****/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]

什么原因?
作者: vermouth    时间: 2009-04-07 22:54
你确定服务用的是这个 named.conf 么?
作者: marsaber    时间: 2009-04-08 07:11
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


LZ用的是什么系统啊?
什么样的安装方式?
估计你是按以前的方式设置的。




欢迎光临 Chinaunix (http://bbs.chinaunix.net/) Powered by Discuz! X3.2