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

No user conf dns directory

Questions regarding the DNS Server
BIND
Post Reply
  • Print view
Advanced search
2 posts • Page 1 of 1
bryank
Posts: 2
Joined: Wed May 06, 2020 10:39 pm

Os: Ubuntu 17x
Web: nginx + php-fpm
No user conf dns directory
  • Quote

Post by bryank » Wed May 06, 2020 10:49 pm

I am using bind9 on Ubuntu 18.04.

I have attempted to create a domain; however, the file for the domain is not being created. Looking into it, the dns directory is missing from the conf directory.

I am unable to make any changes in the conf folder, even as root. This is true of any conf directory on the system. v-rebuild-dns-domains also fails to create the file/directory.

Code: Select all

/usr/local/vesta/func/domain.sh: line 402: /home/user/conf/dns/domain.com.db: No such file or directory
/usr/local/vesta/func/domain.sh: line 416: /home/user/conf/dns/domain.com.db: No such file or directory
chmod: cannot access '/home/user/conf/dns/domain.com.db': No such file or directory

Code: Select all

➜  conf sudo -i
root@hostname:~# cd /home/user/conf
root@hostname:/home/user/conf# mkdir dns
mkdir: cannot create directory ‘dns’: Operation not permitted
However, the system is correctly changing the named.conf file:

Code: Select all

include "/etc/bind/named.conf.options";
include "/etc/bind/named.conf.local";
include "/etc/bind/named.conf.default-zones";
zone "domain.com" {type master; file "/home/user/conf/dns/domain.com.db";};
Please advise.

Thanks.
Last edited by bryank on Wed May 06, 2020 11:23 pm, edited 1 time in total.
Top

bryank
Posts: 2
Joined: Wed May 06, 2020 10:39 pm

Os: Ubuntu 17x
Web: nginx + php-fpm
Re: No user conf dns directory
  • Quote

Post by bryank » Wed May 06, 2020 11:20 pm

Ok, so it turns out that the conf directory has an immutable property on it.

Removing the property, creating the dns directory and then putting the property back fixes the issue.

Code: Select all

sudo -i
cd /home/<user>
chattr -i conf
cd conf
mkdir dns
cd ..
chattr +i conf
/usr/local/vesta/bin/v-rebuild-dns-domains <user>
Top


Post Reply
  • Print view

2 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