Vesta Control Panel - Forum

Community Forum

Skip to content

Advanced search
  • Quick links
    • Main site
    • Github repo
    • Google Search
  • FAQ
  • Login
  • Register
  • Board index Main Section DNS Server
  • Search

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

Questions regarding the DNS Server
BIND
Locked
  • Print view
Advanced search
4 posts • Page 1 of 1
aximus
Posts: 8
Joined: Sat Nov 28, 2015 12:24 pm

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

Post by aximus » Sat Nov 28, 2015 12:31 pm

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

Code: Select all

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

Code: Select all

root@ns:/home/admin/conf/dns# ll
total 12
drwxr-x--x 2 root root 4096 Nov 28 13:09 ./
drwxr-xr-x 5 root root 4096 Nov  9 19:10 ../
-rw-r----- 1 root bind  645 Nov 28 13:09 example.com.db
Also bind seems to run fine:

Code: Select all

root@ns:/home/admin/conf/dns# ps aux | grep bind
bind     16679  0.0  0.3 238688 13692 ?        Ssl  13:18   0:00 /usr/sbin/named -u bind
root     17918  0.0  0.0  11740   936 pts/2    S+   13:33   0:00 grep --color=auto bind
In my search for solutions, i've copied the example.com.db file to /etc/bind, and changed /etc/bind/named.conf accordingly, and then it works. But that way, i'm no longer able to manage the settings using the control panel.

I have a fresh installation of VestaCP 0.9.8-15 on Ubuntu 14.

(real domain name replaced by example.com above)
Top

mephivio
Posts: 198
Joined: Thu Mar 27, 2014 7:35 am

Os: Debian 8x
Web: nginx + php-fpm
Re: zone example.com/IN: loading from master file /home/admin/conf/dns/example.com.db failed: permission denied

Post by mephivio » Sun Nov 29, 2015 5:34 pm

same problem !
any solution ?
Top

avivco94
Posts: 1
Joined: Tue Dec 01, 2015 10:26 pm

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

Post by avivco94 » Tue Dec 01, 2015 10:30 pm

I have found solution for this problem.

In /etc/apparmor.d/usr.sbin.named
Add this line

Code: Select all

/home/** rwm,
Underneath

Code: Select all

/etc/bind/** rw,
Top

aximus
Posts: 8
Joined: Sat Nov 28, 2015 12:24 pm

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

Post by aximus » Sun Dec 06, 2015 10:52 am

avivco94 wrote:I have found solution for this problem.

In /etc/apparmor.d/usr.sbin.named
Add this line

Code: Select all

/home/** rwm,
Underneath

Code: Select all

/etc/bind/** rw,
Thanks! This solution works. For those who try, you should also restart apparmor:

Code: Select all

service apparmor restart
as root.
Top


Locked
  • Print view

4 posts • Page 1 of 1

Return to “DNS Server”



  • Board index
  • All times are UTC
  • Delete all board cookies
  • The team
Powered by phpBB® Forum Software © phpBB Limited
*Original Author: Brad Veryard
*Updated to 3.2 by MannixMD
 

 

Login  •  Register

I forgot my password