Correcting Nameserver IP's in WHM/cPanel:You might observe wrong nameservers IP allocated when you check the nameserver IP allocation from WHM>> Main >> DNS Functions >> Nameserver IPs.
You can correct these IP’s simple with following:
1 ) Check the file /etc/nameserverips. It should show you something as follows:
10.1.1.1=ns1.domain.com
10.1.1.2=ns2.domain.com
- Correct the entries here if the entries are not as per expectation.
2 ) Now open the file /var/cpanel/nameserverips.yaml.
It should display you settings as follows
—
ns1.domain.com: “10.1.1.1″: 1
count: ’1′ zones:
domain.com
ns2.domain.com: “10.1.1.2″: 1
count: ’1′
zones: domain.com
- Edit the settings here as well if they are incorrect. Once done restart the cPanel service .
Now check the nameserver IP’s from WHM>> Main >> DNS Functions >> Nameserver IPs.
It should now be corrected.