isc_stdio_open ‘/var/log/named/queries.log’ failed: file not found

isc_stdio_open '/var/log/named/queries.log' failed: file not found

在配置BIND的时候遇见这个错误

isc_stdio_open '/var/log/named/queries.log' failed: file not found

这个错误是在

/var/log/messages —– centos的错误日志文件

结果你发现

/var/log/named/queries.log

是存在的,并且文件的所有就是named,读写权限也正常。

其实这是因为你安装了chroot的缘故,关于更多chroot的信息查看:

chroot

安装chroot后对应log路径就是

/var/named/var/log/named

所以在/var/named/var/log

下面创建

named文件夹

named/queries.log

named/resolves.log

并且所有者均为

named:named

然后重启BIND,

sudo service named restart

然后在

nslookup 360cc.org localhost

此时再查看queries.log文件是不是已经有内容了。

版权所有,禁止转载. 如需转载,请先征得博主的同意,并且表明文章出处,否则按侵权处理.

    分享到:

Leave a Reply

Your email address will not be published. Required fields are marked *