Posts tagged WHM showing incorrect nameserver IP’s

Nameserver IP’s Missing in WHM?

Some time’s it happens that when you try to access the name-server IP’s fromĀ  WHM >> Main >> DNS Functions >> Nameserver IPs it either shows no IP’s or show incorrect information.

To fix the issue you need to correct the entries for the name-server’s IP in the below two files ::

1>

/etc/nameserverips

 

2 >

 /var/cpanel/nameserverips.yaml

 

Firstly, check the entries in the /etc/nameserverips file and it should show the below output ::

 

[email protected] [~]# cat /etc/nameserverips
192.168.1.1=ns1.yourdomain.com
192.168.1.2=ns2.yourdomain.com

And if the entries in the above files are correct then check the next file it should show the below output ::

 

[email protected] [~]# cat /var/cpanel/nameserverips.yaml
---
ns1.yourdomain.com:
"192.168.1.1": 1
count: '1'
zones: yourdomain.com
ns2.yourdomain.com:
"192.168.1.2": 1
count: '1'
zones: yourdomain.com

If the above entries are missing in the above file then add those as shown in the example.

That’s all.