What is the path to DNS files of the VestaCP?
What is the path to DNS files of the VestaCP?
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 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?
-
- Support team
- Posts: 1111
- Joined: Tue Jul 30, 2013 10:18 pm
- Contact:
- Os: CentOS 6x
- Web: nginx + php-fpm
Re: What is the path to DNS files of the VestaCP?
I think v-rebuild-dns-domain/v-rebuild-dns-domains.
Re: What is the path to DNS files of the VestaCP?
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:
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
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:
(Only change NEWIPHERE)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
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