Jan
20
2016

bind9 zone example.com/IN: loading from master file /home/admin/conf/dns/example.com.db failed: permission denied

Error in BIND9: bind9 zone example.com/IN: loading from master file /home/admin/conf/dns/example.com.db failed: permission denied

I was configuring a VESTACP on a Ubuntu server and had a lot of headache while trying to load the DNS zones to response to the Internet.

The zones have been configured correctly, the ports were open on the firewall, but the system was still refusing to answer the requests.

So I had to dig a little and found that UBUNTU/Debian machines were presenting a problem on the APPARMOR service, preventing BIND9 to access the config files.

Error message on SYSLOG:

Bind refuses to load the zone configuration files. In the log files I see:

zone example.com/IN: loading from master file

/home/admin/conf/dns/example.com.db failed: permission denied

 

The solution:

In /etc/apparmor.d/usr.sbin.named

Add this line

/home/** rwm,

Underneath this line

/etc/bind/** rw,

 

After that, restart the apparmor service using the following command or reboot the server.

service restart apparmor

 

About the Author: Mauro C. Fileto

Leave a comment

You must be logged into post a comment.

Translate »

Enjoy this blog? Please spread the word :)

RSS
Facebook
Google+
http://www.cesarfileto.com/blog/2016/01/20/bind9-zone-example-comin-loading-from-master-file-homeadminconfdnsexample-com-db-failed-permission-denied/">
Twitter