named 配置文件问题

service named restart 一直提示错误:

 open: /var/named/chroot/var/named/named.rfc1912.zones: file not found

==========

rm -rf /etc/named.conf

ln -s /var/named/chroot/etc/named.conf /etc/named.conf

named 启动会寻找 配置文件 /etc/named.conf, 要把  /etc/named.conf 连接到真实文件


然后在 /var/named/chroot/etc/named.conf

directory                "/var/named";


以后在配置文件里都用路径  /var/named  来引用文件,而不要用 /var/named/chroot/var/named,比如


file "/var/named/named.ca";

include "/var/named/named.rfc1912.zones";
而我用的是
file "/var/named/chroot/var/named/named.ca";

include "/var/named/chroot/var/named/named.rfc1912.zones";

就一直提示文件找不到的错误。虽然真实的文件是放在  /var/named/chroot/var/named  下面的


你可能感兴趣的:(服务器)