Skip to main content
cPanel Technical Support has been heavily impacted by hurricane Beryl and our ability to respond to tickets has been hindered as a result. We appreciate your understanding and patience as we address these delays.

Nameserver IPs - Where does WHM get this list?

Comments

6 comments

  • fi77i
    Hello, The file /etc/nameserverips is no longer used to populate WHM's Nameserver IPs area. Also, that area is simply for display purposes and does not set IP nor nameserver functionality in any way. If you want to update the display of that section, you can edit the /var/cpanel/nameserverips.yaml file to do so. Regards.
    0
  • ladydi711
    So, does that have any effect on what the Home " Server Configuration " Basic cPanel & WHM Setup page and the buttons for Assign IP address and Add an A entry for this nameserver buttons? They don't seem to do anything, as I do have A records in the zone for the ns1 and ns1 hostnames already, but the Basic cPanel & WHM Setup page along with above mentioned Nameserver IP pages has my old nameservers IPs?
    0
  • Aaron.Edwards
    The file that actually handles WHM > DNS Functions > Nameserver IPs area is at /var/cpanel/nameserverips.yaml location. If you would like this to be changed, you would need to make a backup of that file, then modify it: cd /var/cpanel cp nameserverips.yaml nameserverips.yaml.bak vi nameserverips.yaml
    0
  • cPanelMichael
    Hello :) The functionality of the "Nameserver IPs" page is for visual purposes only. It is a report, and not a page meant to configure any aspect of DNS. It reports the nameservers used by DNS zones on the server, as well as a count of the the number of zones that use a given nameserver. The important entries on the cPanel server are the "A" records that you have added for your name servers. Thus, as long as you have registered these name servers to the matching IP addresses at the domain registrar, and added the "A" records, then no further DNS configuration is required. The "Nameserver IPs" page can include cached data, so you can safely ignore any mentions of "No IP" or an alternate IP on that page as it may take some time before it updates. Thank you.
    0
  • cPanelKenneth
    As noted, the Nameserver IPs page is a report, displaying information stored in /var/cpanel/nameserverips.yaml. That file is generated by scripts/updatenameserverips, a nightly cron job which queries all zones on your server to determine the various nameservers used.
    0
  • ladydi711
    [quote="cPanelKenneth, post: 1468081">As noted, the Nameserver IPs page is a report, displaying information stored in /var/cpanel/nameserverips.yaml. That file is generated by scripts/updatenameserverips, a nightly cron job which queries all zones on your server to determine the various nameservers used.
    Thanks so much for this and all the explanations! My files are now showing up with one new name server and one old nameserver. I expect them both to be the new ones after tonights run, since I changed them one at a time on different days. I just want to be sure nothing is using the old nameservers before I shut down that server. Thanks again for the explanation! Diane
    0

Please sign in to leave a comment.