错误:open:/etc/bind/named.conf:重启bind9服务时拒绝权限

时间:2015-05-29 10:40:10

标签: permissions debian webm bind9

我有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权限被拒绝

我曾试图在Google上搜索但没有找到任何内容。

我尝试卸载,然后清除并重新安装,但bind9显示相同的错误

1 个答案:

答案 0 :(得分:-2)

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