User Tools

Site Tools


Cannot Update the Nameserver IPs in WHM's Basic Webhost Manager & Setup

You may have noticed that upon updating the nameserver IPs in WHM's Basic Webhost Manager & Setup that they have reverted back to their old values on their own. You may have also noticed this behavior in other nameserver displays in WHM as well.

To clarify, the interface in question is the following (scroll to the bottom of the page WHM » Home »Server Configuration »Basic WebHost Manager® Setup) , which is used for setting the default nameservers , i.e., the nameservers that will be automatically assigned to new domains:

The reason for this is because the nameserver IPs here are set according to whatever the nameserver actually resolves to. Thus, this is completely dependent on what you have set at the registrar as well as DNS propagation.

Once you have updated your nameserver IPs at the registrar and they have began resolving to the new IPs, you can run the following command in your server as root via ssh to clear the nameserverip cache and force them to update to the new IPs that they are resolving to:


This happens daily as part of regular maintenance so this isn't required and will update automatically within 24 hours. cPanel has stated the following about the functionality of this:

The nameserverips.yaml file is automatically updated, and not meant to be altered by hand. The script /usr/local/cpanel/scripts/updatenameserverips populates that file automatically. This script retrieves the information it populates the yaml file with by scanning the zones on the server for NS records, then using /usr/local/cpanel/scripts/quickdnslookup to get the IP. 1)how to change nameserver ip

The only place that you will configure the A records, or IPs, associated with your nameservers in your server is in the DNS zone files via WHM's Edit DNS Zone. These should be set in the zone file for the main domain (e.g., an A record for ns1 and another unique A record for ns2 under the zone file for domain.tld if your nameservers are ns1.domain.tld and ns2.domain.tld).

If you have any questions, feel free to contact your KnownHost support team, available 24/7! :)

control-panels/cpanel-whm/cannot-update-default-ns-ips-whm.txt · Last modified: 2020/06/02 08:16 by Karson N.