Bind fails to start open: /etc/named.conf: permission denied

The log file shows:

Mar 14 10:49:10 hostname named[30884]: using 4 UDP listeners per interface
Mar 14 10:49:10 hostname named[30884]: using up to 21000 sockets
Mar 14 10:49:10 hostname named[30884]: loading configuration from ‘/etc/named.conf’
Mar 14 10:49:10 hostname named[30884]: open: /etc/named.conf: permission denied
Mar 14 10:49:10 hostname named[30884]: loading configuration: permission denied
Mar 14 10:49:10 hostname named[30884]: exiting (due to fatal error)
Mar 14 10:49:10 hostname systemd[1]: named.service: control process exited, code=exited status=1
Mar 14 10:49:10 hostname systemd[1]: Failed to start Berkeley Internet Name Domain (DNS).
Mar 14 10:49:10 hostname systemd[1]: Unit named.service entered failed state.
Mar 14 10:49:10 hostname systemd[1]: named.service failed.

The clue is in bold. Reassign named.conf from root:root to root:named and restart the service.

Tags

Share this article

Leave a Reply

Your email address will not be published. Required fields are marked *

Scroll to Top