Knowledge Base Hub

Browse through our helpful how-to guides to get the fastest solutions to your technical issues.

Home  >  cPanel  >  WHM shows incorrect Name Server IP’s
Top Scroll

WHM shows incorrect Name Server IP’s

 2 min

When you set Default Name Servers from WHM & assign them with the IP, it still shows the incorrect ones.

Accessing Home » DNS Functions » Nameserver IPs as root shows no IP’s. Even if you update them with /scripts2/listassignednsips the IP field shows blank. In earlier cPanel releases you should set them in file /etc/nameserverips. Open this file in your favorite editor, and add entry as below.

This should show the correct IP’s. But, in the recent cPanel releases they are stored in a .yaml file. YAML is a human-readable data serialization format that takes concepts from programming languages such as C, Perl, etc. Open the file /var/cpanel/nameserverips.yaml and add entry as below. 1
count: 1
ns2.yourdomain: 1
count: 1
zones: yourdomain

Update them with command

# /usr/local/cpanel/scripts/updatenameserverips

It will show the correct IP’s assigned to the Name Servers now.

For our Knowledge Base visitors only
Get 10% OFF on Hosting
Special Offer!
Claim the discount before it’s too late. Use the coupon code:
Note: Copy the coupon code and apply it on checkout.