Nameserver assigned to wrong IP

JamesAB

Active Member
Apr 12, 2003
44
0
156
New Hampshire
When I clicked on "Assign IP Address" under Nameserver setup, cPanel assigned a private backend IP address instead of a usable public one.

How can I edit or delete a Nameserver/IP assignment now and set it to a valid IP?

Thanks,
James
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,904
2,218
463
Hello :)

Those are just the IP addresses used for "WHM Home » DNS Functions » NS Record Report". The functionality of the "NS Record Report" 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, then no further DNS configuration is required.

Note:

The NS Record Report page displays its results from the /var/cpanel/nameserverips.cache file. If you alter the configuration in /var/cpanel/nameserverips.yaml and the results on this page change, run the /usr/local/cpanel/scripts/updatenameserverips script to force a cache update.

Thank you.
 

JamesAB

Active Member
Apr 12, 2003
44
0
156
New Hampshire
Thanks for the reply.

I'm actually looking at the "Show/Edit Reserved IPs" page. cPanel assigned a nameserver IP to an IP address I had reserved for a private backend connection.

Are you saying that bind is going to listen on all IP addresses assigned to this server, so this setting is less important?

Either way I would like for it to show the correct information in the WebHost Manager.

Thanks for your help,
James
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,904
2,218
463
The "IP Functions » Show/Edit Reserved IPs" option in WHM reserves IP addresses so they will not be used for accounts. My previous reply was intended to let you know that it's the IP address you configure at the registrar that matters, not what's configured on the cPanel server. The configuration on the cPanel is only to show you output in "WHM Home » DNS Functions » NS Record Report" to see which zones are using which name servers. You can manually modify /var/cpanel/nameserverips.yaml to correct this entry if you prefer. It does not alter the behavior of Bind.

Thank you.
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,904
2,218
463
You can generate it's contents via:

/usr/local/cpanel/scripts/updatenameserverips

Thank you.