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 ::
Firstly, check the entries in the /etc/nameserverips file and it should show the below output ::
[email protected] [~]# cat /etc/nameserverips192.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.