Home MiscellaneousHow to Fix Nameserver IPs Not Showing in WHM | Step-by-Step Guide

How to Fix Nameserver IPs Not Showing in WHM | Step-by-Step Guide

by SupportPRO Admin
How to Fix Nameserver IPs Not Showing in WHM

When managing a cPanel server, you may sometimes notice an issue where Nameserver IPs are not listed or are showing incorrect values in WHM. This usually appears under:

WHM → Main → DNS Functions → Nameserver IPs

In such cases, the system may not display any IP addresses or may show outdated entries. This can affect DNS configuration and server name resolution.

The good news is that this issue is usually caused by incorrect or missing configuration files and can be fixed quickly.

Why This Issue Happens

The “Nameserver IPs not listing in WHM” issue typically occurs due to:

  • Incorrect or missing entries in system configuration files
  • Corrupted or outdated nameserver mapping
  • Manual server changes not reflected in WHM
  • Sync issues between cPanel and DNS configuration files

To resolve this, you need to verify and correct two important system files.

Step 1: Check /etc/nameserverips File

First, verify the nameserver IP mapping file.

Run the following command:

cat /etc/nameserverips

A correct configuration should look like:

x.x.x.x=ns1.yourdomain.com
x.x.x.x=ns2.yourdomain.com

What to check:

  • Ensure IP addresses are correctly mapped
  • Confirm nameserver domains are accurate
  • Remove any duplicate or incorrect entries

If this file is missing or incorrect, WHM may not display nameserver IPs properly.

Step 2: Verify /var/cpanel/nameserverips.yaml

Next, check the YAML configuration file used by cPanel:

cat /var/cpanel/nameserverips.yaml

A correct format should look like:

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

What to verify:

  • Nameserver entries exist (ns1, ns2, etc.)
  • IP addresses are correctly assigned
  • Domain zones are properly mapped
  • YAML formatting is correct (indentation matters)

Step 3: Rebuild or Sync Configuration (If Needed)

If both files are correct but the issue persists, you may need to refresh WHM configuration:

  • Restart DNS service
  • Rebuild DNS zones
  • Sync cPanel configuration

This helps WHM reload updated nameserver mappings.

Best Practices to Avoid This Issue

To prevent Nameserver IP issues in WHM:

  • Avoid manual edits unless necessary
  • Always use WHM or cPanel tools for DNS changes
  • Keep server configuration backed up
  • Regularly monitor DNS settings after migration or updates

Conclusion

The Nameserver IPs not listing in WHM issue is usually caused by incorrect or missing configuration in system files like /etc/nameserverips and /var/cpanel/nameserverips.yaml.

By carefully verifying and correcting these files, you can quickly restore proper nameserver visibility in WHM and ensure smooth DNS functionality on your server.

If you require help, contact SupportPRO Server Admin

Facing issues?

Our technical support
engineers can solve it.

Contact Us today!
guy server checkup

You may also like

Leave a Comment