Nameserver IPs not showing in WHM?

Hi everyone, I have faced with a Nameserver Ips issue, thats my “Nameserver IPs” section won’t show ips in WHM. All ips are present in /etc/nameserverips file but still ips missing.

So How to fix that? i found a solution and want to share again with you, hope this tip will be helpful. Please follow the steps:

– Firstly, check the entries in /etc/nameserverips file, it should look like the below command output

root@root[~]# cat /etc/nameserverips
198.168.0.1=ns1.test.com
198.168.0.2=ns2.test.com

In that case correct ips entry in the following /var/cpanel/nameserverips.yaml file.

/var/cpanel/nameserverips.yaml entries should be like this:

root@root [~]# cat /var/cpanel/nameserverips.yaml
—
ns1.test.com:
“198.168.0.1″: 1
count: 1
zones: test.com
ns2,.test.com:
198.168.0.2: 1
count: 1
zones: test.com

If your files are not showing properly, so you should edit those files following the examples above.

nano /etc/nameserverips
nano /var/cpanel/nameserverips.yaml

Now, go to your WHM and check Nameserver Ips section, your ips should be there 🙂

Thank you

Leave a Reply

Your email address will not be published. Required fields are marked *