The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Nameserver assigned to wrong IP

Discussion in 'Bind / DNS / Nameserver Issues' started by JamesAB, Sep 15, 2014.

  1. JamesAB

    JamesAB Active Member

    Joined:
    Apr 12, 2003
    Messages:
    44
    Likes Received:
    0
    Trophy Points:
    6
    Location:
    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
     
  2. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,854
    Likes Received:
    676
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    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.
     
  3. JamesAB

    JamesAB Active Member

    Joined:
    Apr 12, 2003
    Messages:
    44
    Likes Received:
    0
    Trophy Points:
    6
    Location:
    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
     
  4. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,854
    Likes Received:
    676
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    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.
     
  5. JamesAB

    JamesAB Active Member

    Joined:
    Apr 12, 2003
    Messages:
    44
    Likes Received:
    0
    Trophy Points:
    6
    Location:
    New Hampshire
    Thanks for your help.

    /var/cpanel/nameserverips.yaml appears empty.

    Code:
    root@virt01 [~]# cat /var/cpanel/nameserverips.yaml
    --- {}
    
    root@virt01 [~]#
    
     
  6. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,854
    Likes Received:
    676
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
Loading...

Share This Page