Erro: "rndc: connect failed: connection refuse"

Link completo:


Para evitar erros de

rndc: connect failed: 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


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: 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:


e ainda reiniciar apparmor:

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