Page 1 of 1

DNS record list zero

Posted: Tue Nov 25, 2014 2:22 pm
by venomeugene
Hi,

Under DNS i have a domain with 11 records but when I click on "list 11 record" it shows nothing but "0 records". Can someone help please? I need to edit my DNS records urgent.

Thanks in advance!

Re: DNS record list zero

Posted: Wed Nov 26, 2014 3:34 am
by joem
venomeugene wrote:Hi,

Under DNS i have a domain with 11 records but when I click on "list 11 record" it shows nothing but "0 records". Can someone help please? I need to edit my DNS records urgent.

Thanks in advance!


Try this, login to Vesta CP -> Click Users Tab -> Toggle all users -> Rebuild DNS.

Re: DNS record list zero [SOLVED]

Posted: Wed May 06, 2015 7:57 pm
by elninja
I found the issue to be a a TAB character in the value of a DNS record entry.


To solve, edit:

Code: Select all

vim /usr/local/vesta/data/users/$USER/dns/$DOMAIN.conf
$USER in my case is "admin"
$DOMAIN should be something like "example.com"

Look anywhere in the file for a stray TAB character or anything that seems wrong/repeated.
Save and rebuild the dns by running:

Code: Select all

v-rebuild-dns-domains $USER 1
Again $USER stands for "admin", and the one means that the dns service should be restarted.

Note, I'm reposting my solution here just to make sure anyone with the same problem gets to the answer, I searched and didn't find anything before posting my solution.