我有Debian和Bind9和Webmin
昨天我错误地启动命令chmod -Rv 777 /
我试图运行这些输出命令来生成一个脚本来恢复最近的权限
但是当我重新启动bind9服务时,我得到以下错误消息:
May 29 06:29:31 mydomain named[4635]: starting BIND 9.8.4-rpz2+rl005.12-P1 -u bind
May 29 06:29:31 mydomain named[4635]: built with '--prefix=/usr' '--mandir=/usr/share/man' '--infodir=/usr/share/info' '--sysconfdir=/etc/bind' '--localstatedir=/var' '--enable-threads' '--enable-largefile' '--with-libtool' '--enable-shared' '--enable-static' '--with-openssl=/usr' '--with-gssapi=/usr' '--with-gnu-ld' '--with-geoip=/usr' '--enable-ipv6' 'CFLAGS=-fno-strict-aliasing -DDIG_SIGCHASE -O2'
May 29 06:29:31 mydomain named[4635]: ----------------------------------------------------
May 29 06:29:31 mydomain named[4635]: BIND 9 is maintained by Internet Systems Consortium,
May 29 06:29:31 mydomain named[4635]: Inc. (ISC), a non-profit 501(c)(3) public-benefit
May 29 06:29:31 mydomain named[4635]: corporation. Support and training for BIND 9 are
May 29 06:29:31 mydomain named[4635]: available at https://www.isc.org/support
May 29 06:29:31 mydomain named[4635]: ----------------------------------------------------
May 29 06:29:31 mydomain named[4635]: adjusted limit on open files from 4096 to 1048576
May 29 06:29:31 mydomain named[4635]: found 1 CPU, using 1 worker thread
May 29 06:29:31 mydomain named[4635]: using up to 4096 sockets
May 29 06:29:31 mydomain named[4635]: loading configuration from '/etc/bind/named.conf'
May 29 06:29:31 mydomain named[4635]: open: /etc/bind/named.conf: permission denied
May 29 06:29:31 mydomain named[4635]: loading configuration: permission denied
May 29 06:29:31 mydomain named[4635]: exiting (due to fatal error)
提示打开/etc/bind/named.conf出错
我试着在谷歌上搜索,但没有找到任何东西。
我尝试卸载,然后清除并重新安装,但bind9显示相同的错误
BIND9在主存储库中可用。不需要为BIND9启用额外的存储库。
在开始之前,您应该熟悉RootSudo。
安装服务器只需安装bind9包。有关使用包管理器的详细信息,请参见InstallingSoftware。
对于测试和排除DNS问题,dnsutils包是一个非常有用的包。此外,BIND9文档可以在BIND9 -doc包中找到。通过SSH登录到您的服务器并运行:
`apt-get install bind`9
配置:打开/etc/bind/named.conf.options
文件,并在文件顶部添加以下行:
acl trusted {
127.0.0.1;
};
并在选项块中添加:
allow-recursion {trusted; };
Restart the service
service bind9 restart
检查:https://www.isc.org/downloads/bind/doc/bind-9-9/
https://www.isc.org/downloads/bind/doc/bind-9-10/希望你能找到解决办法。
https://wiki.debian.org/Bind9