cPanel assigning nameservers in incorrect order

zamrg

Active Member
Oct 17, 2010
34
0
56
I have server1 running WHM/cPanel which is in a cluster with ns1 and ns2, two separate servers.

When I create an account through WHM, it creates the zone with ns2 in the SOA, ie: it assigns nameserver1: ns2 and nameserver2: ns1.

In Server Configuration -> Basic cPanel & WHM Setup, I have the nameservers assigned as:
Nameserver 1: ns1.domain.com
Nameserver 2: ns2.domain.com

so I have no idea why it's not assigning them in order.
 

cPanelTristan

Quality Assurance Analyst
Staff member
Oct 2, 2010
7,607
43
348
somewhere over the rainbow
cPanel Access Level
Root Administrator
When you mention it is assigning nameserver 2 first, do you mean on both nameservers for the DNS zone for the domain, it is listing:

domain.com. 86400 IN NS ns2.somedomain.com.
domain.com. 86400 IN NS ns1.somedomain.com.
If so, please check WHM > DNS Functions > Edit Zone Templates > standardvirtualftp file and ensure it has the following:

%domain%. %nsttl% IN NS %nameserver%.
%domain%. %nsttl% IN NS %nameserver2%.
If it does, then check /etc/wwwacct.conf file in root SSH and ensure it has this listed:

NS ns1.somedomain.com
NS2 ns2.somedomain.com
If both appear to be correct, please open a ticket using WHM > Support Center > Contact cPanel or via the link in my signature.