Monday, 29 July 2013

WHM does not show the nameserver ips

When you check the nameserver ips from WHM, it wont show the ip some times. 
Main >> DNS Functions >> Nameserver IPs
To fix this, login to the server as root. The navigate to /var/cpanel.
#cd /var/cpanel
Then make a backup of the file nameserverips.yaml
#cp nameserverips.yaml nameserverips.yaml.bkp
Now edit the file using any editor.
#vi  nameserverips.yaml
It will look like as shown below:
---
ns1.yourdomain.com:
  "": 0
  count: '2'
  zones: ns1.yourdomain.com,ns2.yourdomain.com
ns2.yourdomain.com:
  "": 0
  count: '2'
  zones: ns1.yourdomain,ns2.yourdomain
Now make the following changes in the file.
---
ns1.yourdomain.com:
  "10.10.10.1": 1
  count: '2'
  zones: ns1.yourdomain.com,ns2.yourdomain.com
ns2.yourdomain.com:
  "10.10.10.2": 1
  count: '2'
  zones: ns1.yourdomain,ns2.yourdomain
Where you should replace the nameservers ns1.yourdomain.com and ns2.yourdomain.com with your nameservers, and  ips 10.10.10.1 and 10.10.10.2 to your name server ips.




No comments:

Post a Comment