MARWAN docs NOC knowledge base
DocsGNU/Linux

Fix error where BIND DNS won't connect to statistics port

Fix BIND failing to open its statistics channel port because SELinux denies it, using semanage.

Updated Sami Ait Ali Oulahcen

1. The error#

If you get errors like:

/etc/named.conf:31: couldn't allocate statistics channel ::1#8053: permission denied

or

/etc/named.conf:31: couldn't allocate statistics channel 127.0.0.1#8053: permission denied

It's probably SElinux denying bind to connect to that port.

2. The fix#

You can allow bind to connect to the port through semanage:

semanage port -a -t dns_port_t -p tcp 8053