2015-05-29 150 views
0

我有Debian和BIND9和Webmin的ERROR:开:/etc/bind/named.conf:拒绝了对重启BIND9服务

昨天我在错误启动命令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显示了同样的错误

+0

提高你的代码的格式 –

+0

好吧,我做了对不起即时通讯新这里 – Joe

+0

我想是这样的系统权限,因为我重新安装绑定,它显示了同样的错误,但我还是不知道有什么可不好。 .. – Joe

回答

-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