Erro: "rndc: connect failed: 127.0.0.1#953: connection refuse"

Link completo: http://www.howtoforge.com/installing-an-ubuntu8.04-dns-server-with-bind-p4

 

Para evitar erros de

rndc: connect failed: 127.0.0.1#953: connection refused

tem outra forma a não ser desabilitar o apparmor?

9 Disable AppArmor (This is a must for things to go well here)

AppArmor is a security extension (similar to SELinux) that should provide extended security, which usually causes more problems than advantages. Therefore I disable it.

We can disable it like this:

/etc/init.d/apparmor stop
update-rc.d -f apparmor remove

Comments:

Actually, there IS a reason to disable AppArmor:
If you don't do this, the whole procedure above simply DOESN'T WORK.
You just keep getting

rndc: connect failed: 127.0.0.1#953: connection refused

error whenever you try to access your DNS server with rndc. [it also occurs when you use /etc/init.d/bind9 which - I suppose - uses rndc]

There should be a neater way to work this around - maybe some AppArmor settings?

Two possible answers:

link: http://beginlinux.com/blog/2009/06/repairing-ubuntu-904-dns/

e ainda reiniciar apparmor:

/etc/init.d/sysklogd restart
/etc/init.d/apparmor start
/etc/init.d/bind9 start

link: http://ubuntuforums.org/archive/index.php/t-735188.html

 

Comments