mehnihma

Well-Known Member
Dec 15, 2012
57
1
8
cPanel Access Level
Root Administrator
Hi

When I set up custom name servers and dnyonly cpanel

In Basic setup of all Cpanel I have to enter all nameservers and IPs?
Or just the name server of that Cpanel server?

Thanks
 

mehnihma

Well-Known Member
Dec 15, 2012
57
1
8
cPanel Access Level
Root Administrator
Thanks

Can you also tell me now I have problem with IP
I have added same IP in ns1 ns2 and I have set up new nameserver and then tried to change ns2 to new IP but in Cpanel Basic configuration I still see old IP,
I have added new yone and A record for domain, when I ping ns2 i get right IP but in Cpanel nameservers I see old iP?
How to change it?
 

Phincy

Member
Feb 11, 2012
16
0
51
cPanel Access Level
Root Administrator
Hi Mehnihma,

Were are you seeing the old IP address for the nameserver ns2? Is it in Main >> DNS Functions >> Nameserver IPs? Can you paste the output of the following commands here?

---
cat /etc/nameserverips
grep ns2 /var/cpanel/nameserverips.yaml
---

You can assign the correct the IP address by clicking the "Assign IP addess" button in the basic WHM/cpanel settings. It will open a new window and you can put the new IP address in the box there, save the configuration and that should work.

If still the "Nameserver IPs" in the WHM is showing old IP, try renaming the file /var/cpanel/nameserverips.yaml to /var/cpanel/nameserverips.yaml_bkp and reload the section Main >> DNS Functions >> Nameserver IPs. This has worked for me once. Also make sure that the ns2 is pointing(in dig command) to the server to the correct P address.


Regards,
Phincy
 

mehnihma

Well-Known Member
Dec 15, 2012
57
1
8
cPanel Access Level
Root Administrator
Also when I check DNS of my server I get:
ns2.domain-server.com. Parent nameservers report 5.xxx.xxx.xxx, your nameservers report 80.xx.xxx.xxx

In cpanel I get old IP and I have added A record and everything else for new IP
Also when I change /etc/nameserverips they revert to old ones

How to change that nameserver?
 

quietFinn

Well-Known Member
Feb 4, 2006
2,031
542
493
Finland
cPanel Access Level
Root Administrator
Also when I check DNS of my server I get:
ns2.domain-server.com. Parent nameservers report 5.xxx.xxx.xxx, your nameservers report 80.xx.xxx.xxx

In cpanel I get old IP and I have added A record and everything else for new IP
Also when I change /etc/nameserverips they revert to old ones

How to change that nameserver?
You change that in the registrar of domain-server.com.