Nameserver IPs is not showing correctly
Introduction
Sometimes, after updating the nameserver IPs, WHM may still display the old IP address. This happens because WHM reads the data from a .yaml file rather than directly from the configuration file.
Prerequisites
- Root SSH access
- Access to the WHM / cPanel server
- Basic knowledge of file editing
Implementation
After changing the nameserver IP address in /etc/nameserverips WHM, it may still show the old IP address.
Please note that all the WHM and cPanel content is retrieved from .yaml extension files.
So, we need to edit the following file with the updated IP address:
/var/cpanel/nameserverips.yaml
Conclusion
By updating the /var/cpanel/nameserverips.yaml file, WHM will reflect the correct nameserver IP addresses.
