Nameserver IPs not showing in WHM

If the nameserver ips not showing in your  WHM >> Main >> DNS Functions >> Nameserver IPs

In order to fix the issue you need to correct the entries for the name server’s IP in the below two files

1. You can check the entries in the /etc/nameserverips file and it should show the below output

root@server [~]# cat /etc/nameserverips
x.x.x.x=ns1.yourdomain.com
x.x.x.x=ns2.yourdomain.com

And if the entries in the above files are correct then,

2. Check the next file it should show the below output

root@server [~]# cat /var/cpanel/nameserverips.yaml
—
ns1.yourdomain.com:
x.x.x.x: 1
count: 1
zones: yourdomain.com
ns2.yourdomain.com:
x.x.x.x: 1
count: 1
zones: yourdomain.com

If the nameserver ip entries are missing in your file then make ip changes and restart named service.

service named restart