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

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

Questions regarding the DNS Server
BIND
Post Reply
  • Print view
Advanced search
5 posts • Page 1 of 1
Felix
Posts: 134
Joined: Tue Aug 04, 2015 7:15 pm

Os: Ubuntu 15x
Web: apache + nginx
DNS Template change & v-rebuild-dns-domain command
  • Quote

Post by Felix » Tue Aug 18, 2015 9:27 pm

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
Top

tjebbeke
Collaborator
Posts: 783
Joined: Mon May 11, 2015 8:43 am
Contact:
Contact tjebbeke
Website

Os: CentOS 6x
Web: apache + nginx
Re: DNS Template change & v-rebuild-dns-domain command
  • Quote

Post by tjebbeke » Wed Aug 19, 2015 10:52 am

Your user is using the default dns template?
Top

Felix
Posts: 134
Joined: Tue Aug 04, 2015 7:15 pm

Os: Ubuntu 15x
Web: apache + nginx
Re: DNS Template change & v-rebuild-dns-domain command
  • Quote

Post by Felix » Thu Sep 10, 2015 9:07 pm

Yes.
Top

Felix
Posts: 134
Joined: Tue Aug 04, 2015 7:15 pm

Os: Ubuntu 15x
Web: apache + nginx
Re: DNS Template change & v-rebuild-dns-domain command
  • Quote

Post by Felix » Fri Mar 23, 2018 5:38 pm

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.
Top

fossxplorer
Posts: 22
Joined: Sun Sep 07, 2014 10:04 am

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

Post by fossxplorer » Tue Jul 17, 2018 9:54 am

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.
Top


Post Reply
  • Print view

5 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