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

What is the path to DNS files of the VestaCP?

Questions regarding the DNS Server
BIND
Post Reply
  • Print view
Advanced search
3 posts • Page 1 of 1
postcd
Posts: 7
Joined: Sat Aug 05, 2017 10:36 pm

What is the path to DNS files of the VestaCP?
  • Quote

Post by postcd » Mon Sep 30, 2019 10:02 pm

Hello,

i want to manually edit DNS zone files so i modify A record of the domain i am hosting.
I have found:
/home/admin/conf/dns/domain.com.db
/usr/local/vesta/data/users/admin/dns/domain.com.conf
Which command to run then to apply the changes?
Top

grayfolk
Support team
Posts: 1111
Joined: Tue Jul 30, 2013 10:18 pm
Contact:
Contact grayfolk
Website Facebook Skype Twitter

Os: CentOS 6x
Web: nginx + php-fpm
Re: What is the path to DNS files of the VestaCP?
  • Quote

Post by grayfolk » Mon Sep 30, 2019 11:03 pm

postcd wrote: ↑
Mon Sep 30, 2019 10:02 pm
Hello,

i want to manually edit DNS zone files so i modify A record of the domain i am hosting.
I have found:
/home/admin/conf/dns/domain.com.db
/usr/local/vesta/data/users/admin/dns/domain.com.conf
Which command to run then to apply the changes?
I think v-rebuild-dns-domain/v-rebuild-dns-domains.
Top

postcd
Posts: 7
Joined: Sat Aug 05, 2017 10:36 pm

Re: What is the path to DNS files of the VestaCP?
  • Quote

Post by postcd » Mon Sep 30, 2019 11:31 pm

Thanks, another interesting is command: v-change-dns-domain-ip (Usage: v-change-dns-domain-ip USER DOMAIN IP)

When i ran it, it changed IP addresses of the DNS records in both files i mentioned in my first post above. Unsure if this is everyting needed so the server start serving up to date DNS zone, but dnschecker.org and intodns.com started reporting new IP in A record

command "dig a mydomain.com" done from a remote server shows new IP..

And here is the command that should do above mentioned command automaticaly for all the web sites:
for user in $(ls -A1 /home/);do for domain in $(ls -A1 /home/"$user"/web|grep ".");do v-change-dns-domain-ip $user "$domain" NEWIPHERE;done;done
(Only change NEWIPHERE)

i have not yet tried yours suggested:
v-rebuild-dns-domain (Usage: v-rebuild-dns-domain USER DOMAIN [RESTART] [UPDATE_SERIAL])
maybe not needed, unsure which functions it has
Top


Post Reply
  • Print view

3 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