Wednesday, April 23, 2014

nameserver not showing IP or nameserver showing wrong ip in cpanel WHM centos

If you are facing the issue of your name-server's not showing any IP address or showing wrong IP address in   WHM >> Main >> DNS Functions >> Nameserver IP's, To resolve the issue follow the steps below.

Step 1: Firstly you need to correct the entries for the name-server’s IP in file nameserverips

  • SSH server as root user
  • vi /etc/nameserverips
Add the name server entries and the entries must look like below.


192.160.5.1=ns1.yourdomain.com
192.160.5.2=ns2.yourdomain.com


192.160.5.1 and 192.160.5.2 are IP address of the name server, You can use the same IP or the different IP addresses for each name server as per your requirement.

ns1.yourdomain.com and ns2.yourdomain.com are names of the name server's.

Step 2: make entries if name server in nameserverips.yaml file
  • vi  /var/cpanel/nameserverips.yaml

The configuration should look like below.


ns1.yourdomain.com:
“192.160.5.1″: 1
count: ’1′
ns2.yourdomain.com:
“192.160.5.2″: 1
count: ’1′


Now go back to  WHM >> Main >> DNS Functions >> Nameserver IPs and it will reflect the changes and we are done.

No comments:

Post a Comment

Do Write about the Blog and Welcome to the world where open source is every thing :-)