Hello, I have found and resolved the same bug in my debian squezze (Linux
2.6.32-5-amd64 #1 SMP Wed Jan 12 03:40:32 UTC 2011 x86_64 GNU/Linux
)

I received* connect failed: 127.0.0.1#953: connection refused* when i tried
to restart the bind9 deamon:

*root@Kaio:/etc/bind# invoke-rc.d bind9 restart*
*Stopping domain name service...: bind9rndc: connect failed: 127.0.0.1#953:
connection refused*
*.*
*Starting domain name service...: bind9.*

looking at the logs i found:
*cat  /var/log/daemon.log  *
*3 04:52:11 Kaio named[6619]: none:0: open: /etc/bind/rndc.key: permission
denied*
*Mar  3 04:52:11 Kaio named[6619]: couldn't add command channel
127.0.0.1#953: permission denied*
*Mar  3 04:52:11 Kaio named[6619]: none:0: open: /etc/bind/rndc.key:
permission denied*
*Mar  3 04:52:11 Kaio named[6619]: couldn't add command channel ::1#953:
permission denied*

the original permissions set on the rndc.key file were:

*root@Kaio:/etc/bind# ls -lah rndc.key *
*-rw-r----- 1 root root 77 Feb 27 07:12 rndc.key*

The resolution of this bug can be accomplished by changing the file's owner:

*root@Kaio:/etc/bind# chown bind:bind rndc.key *
*
*
*root@Kaio:/etc/bind# ls -lah rndc.key *
*-rw-r----- 1 bind bind 77 Feb 27 07:12 rndc.key*

and finally

*root@Kaio:/etc/bind# invoke-rc.d bind9 restart *
*Stopping domain name service...: bind9.*
*Starting domain name service...: bind9.*

NOTE:
The o *rndc.key * was not created/modified by me. it was creted
automatically when i installed bing9  apt-get.

*root@Kaio:/etc/bind# cat /etc/apt/sources.list*
*# *
*
*
*# deb cdrom:[Debian GNU/Linux 6.0.0 _Squeeze_ - Official amd64 NETINST
Binary-1 20110205-14:31]/ squeeze main*
*
*
*#deb cdrom:[Debian GNU/Linux 6.0.0 _Squeeze_ - Official amd64 NETINST
Binary-1 20110205-14:31]/ squeeze main*
*
*
*deb http://ftp.de.debian.org/debian/ squeeze main*
*deb-src http://ftp.de.debian.org/debian/ squeeze main*
*
*
*deb http://security.debian.org/ squeeze/updates main*
*deb-src http://security.debian.org/ squeeze/updates main*
*
*
*deb http://ftp.de.debian.org/debian/ squeeze-updates main*
*deb-src http://ftp.de.debian.org/debian/ squeeze-updates main*

Reply via email to