Page 1 of 1

NS records are not properly created

Posted: Sun Dec 28, 2014 6:32 pm
by drMacFaulty
Don't know if it's a bug or something, but I have domain.com added to package A.

In package A, I have the following name servers:
- ns1.mydomain.com
- ns2.mydomain.com
- ns3.mydomain.com

I add website domain.com to package A and when I create a website or DNS domain on that account I see that only 2 NS records are created (1 NS record is missing: ns3.mydomain.com).

Is this known? Does anybody else use 3 NS records and have the same issue?

Thanks in advance for your reply :)

edit: I also tried with creating a few other packages and domains, but the issue persists.

Re: NS records are not properly created

Posted: Sat Jan 16, 2016 11:36 pm
by BBuchanan1013
drMacFaulty wrote:Don't know if it's a bug or something, but I have domain.com added to package A.

In package A, I have the following name servers:
- ns1.mydomain.com
- ns2.mydomain.com
- ns3.mydomain.com

I add website domain.com to package A and when I create a website or DNS domain on that account I see that only 2 NS records are created (1 NS record is missing: ns3.mydomain.com).

Is this known? Does anybody else use 3 NS records and have the same issue?

Thanks in advance for your reply :)

edit: I also tried with creating a few other packages and domains, but the issue persists.
If your using a single IP or server, having more than 2 is just a waste. Should your server fail, then all 3 ns's will fail. And TBH, you only need a min. of 2 ns's to function.

Re: NS records are not properly created

Posted: Sun Jan 17, 2016 4:58 pm
by tjebbeke
This is a little bug in vestaCP. There are some lines missing in the DNS templates for centos 6, .... I will create a pull request.

Quick fix:
/usr/local/vesta/data/templates/dns/default.tpl
Add this lines:

Code: Select all

ID='10' RECORD='@' TYPE='NS' PRIORITY='' VALUE='%ns3%.' SUSPENDED='no' TIME='%time%' DATE='%date%'
ID='11' RECORD='@' TYPE='NS' PRIORITY='' VALUE='%ns4%.' SUSPENDED='no' TIME='%time%' DATE='%date%'
ID='12' RECORD='@' TYPE='NS' PRIORITY='' VALUE='%ns5%.' SUSPENDED='no' TIME='%time%' DATE='%date%'
ID='13' RECORD='@' TYPE='NS' PRIORITY='' VALUE='%ns6%.' SUSPENDED='no' TIME='%time%' DATE='%date%'
ID='14' RECORD='@' TYPE='NS' PRIORITY='' VALUE='%ns7%.' SUSPENDED='no' TIME='%time%' DATE='%date%'
ID='15' RECORD='@' TYPE='NS' PRIORITY='' VALUE='%ns8%.' SUSPENDED='no' TIME='%time%' DATE='%date%'