Page 1 of 1

DNS Template change & v-rebuild-dns-domain command

Posted: Tue Aug 18, 2015 9:27 pm
by Felix
As I understand it, when I change the default DNS template found at /usr/local/vesta/data/templates/dns/default.tpl
, then I need to run the bash command

Code: Select all

v-rebuild-dns-domain
to update a specific site that uses this template, or the bash command

Code: Select all

v-rebuild-dns-domains
to update all of the domains of a specific user.

So, I made changes to the default DNS template (added another NS record, removed A records for pop and ftp and changed the www A record to CNAME) to fit my needs. After that I run the command

Code: Select all

 v-rebuild-dns-domain USER DOMAIN
expecting all of these changes to be reflected on the sites zone file, but nothing actually changed. All of the domains' DNS entries are the same as before. There are still A records for ftp and pop, and www is an A record instead of a CNAME.

No luck either with the command

Code: Select all

v-rebuild-dns-domains
Any ideas?
I'm on Ubuntu 14.04

Re: DNS Template change & v-rebuild-dns-domain command

Posted: Wed Aug 19, 2015 10:52 am
by tjebbeke
Your user is using the default dns template?

Re: DNS Template change & v-rebuild-dns-domain command

Posted: Thu Sep 10, 2015 9:07 pm
by Felix
Yes.

Re: DNS Template change & v-rebuild-dns-domain command

Posted: Fri Mar 23, 2018 5:38 pm
by Felix
This is interesting... I'd completely forgotten about this thread and today (2,5 years later) I was looking for an answer to this same problem.

Anyway, the problem is still there and a quick workaround I've found is to apply a different DNS template to the domain and then reapply the changed DNS template, through the Web Control Panel.

Re: DNS Template change & v-rebuild-dns-domain command

Posted: Tue Jul 17, 2018 9:54 am
by fossxplorer
I can confirm the issue, neither of v-rebuild-dns-domain or v-rebuild-dns-domains is working. The workaround mentioned is what i've been using to apply any changes to the template.