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.

IP Replace

Discussion in 'General Discussion' started by stdout, Jan 10, 2006.

  1. stdout

    stdout Well-Known Member

    Joined:
    Apr 10, 2003
    Messages:
    189
    Likes Received:
    5
    Trophy Points:
    18
    Location:
    Nelspruit, Mpumalanga, South Africa
    cPanel Access Level:
    Root Administrator
    Hi guys,
    Could someone please tell me the step's I'de need to take in order to simply Modify 2 existing Nameserver IPs - from /etc/nameserverips ?

    I would eventually like to automate the process, but if you could please explain to me the steps of modifying Nameserver IPs - manually and to also tell me which files need to be modified - this would go a LONG way!

    ie. /etc/nameserverips, these all need to be replaced with the new IPs

    Could I simply cycle through /var/named/* /etc/*/ /etc/* with a replace <newip> <oldip> -- *
    Basically, my question is: which files needs to be modified?
     
    #1 stdout, Jan 10, 2006
    Last edited: Jan 10, 2006
  2. stdout

    stdout Well-Known Member

    Joined:
    Apr 10, 2003
    Messages:
    189
    Likes Received:
    5
    Trophy Points:
    18
    Location:
    Nelspruit, Mpumalanga, South Africa
    cPanel Access Level:
    Root Administrator
    Re

    :eek: Sorry, maybe I didnt make myself clear enough..

    A client (reseller) has 2 custom Nameservers, 2 IPs.
    i want to be able to replace/update these IPs from within the shell.

    ie. replace thisip thatip -- /etc/* /var/named/* /usr/local/apache/conf/httpd.conf

    If you know, please tell me the full procedure.
     
  3. Murtaza_t

    Murtaza_t Well-Known Member

    Joined:
    Jan 24, 2005
    Messages:
    476
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    Earth
    cPanel Access Level:
    Website Owner
    There is no way you can change the IPs of Nameservers.. IPs are allocated to Nameservers at the time of registering the NameServers.. so only the registrar of that domain can change them or only if you have access to that domain admin panel.
     
  4. stdout

    stdout Well-Known Member

    Joined:
    Apr 10, 2003
    Messages:
    189
    Likes Received:
    5
    Trophy Points:
    18
    Location:
    Nelspruit, Mpumalanga, South Africa
    cPanel Access Level:
    Root Administrator
    I am Fully aware of this. This was not my question.
    ofcourse the users will need to update the Ips at thier registrar, but the IPs would also need to reflect on the system.

    Sorry, am I not explaining myself clearly?
     
  5. Murtaza_t

    Murtaza_t Well-Known Member

    Joined:
    Jan 24, 2005
    Messages:
    476
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    Earth
    cPanel Access Level:
    Website Owner
    If you mean to say that you want to add those IPs on your server then you can add the from WHM . Goto Main >> IP Functions >> Add a New IP Address

    I hope that answeres your question..
     
  6. stdout

    stdout Well-Known Member

    Joined:
    Apr 10, 2003
    Messages:
    189
    Likes Received:
    5
    Trophy Points:
    18
    Location:
    Nelspruit, Mpumalanga, South Africa
    cPanel Access Level:
    Root Administrator
    NO! This is NOT what I want.
    I have 'minimal' 60 servers that we're migrating! Updating Nameserver IPs manually through WHM is NOT an option.

    I want to accomplish this from the shell, Not WHM.
     
  7. stdout

    stdout Well-Known Member

    Joined:
    Apr 10, 2003
    Messages:
    189
    Likes Received:
    5
    Trophy Points:
    18
    Location:
    Nelspruit, Mpumalanga, South Africa
    cPanel Access Level:
    Root Administrator
    I want to autoamte this process (im not asknig for a script), I am asking what files are associated.

    ie.
    /etc/ips
    /etc/domainips
    /etc/ipaddrpool
    /etc/nameserverips

    /etc/named.conf
    /usr/local/apache/conf/httpd.conf

    ===

    What *other* files need to be modified?
     
  8. madaboutlinux

    madaboutlinux Well-Known Member

    Joined:
    Jan 24, 2005
    Messages:
    1,052
    Likes Received:
    2
    Trophy Points:
    38
    Location:
    Earth
     
  9. stdout

    stdout Well-Known Member

    Joined:
    Apr 10, 2003
    Messages:
    189
    Likes Received:
    5
    Trophy Points:
    18
    Location:
    Nelspruit, Mpumalanga, South Africa
    cPanel Access Level:
    Root Administrator
    Shekar, thanks!
    Are you positive these are the only files needed to make the NS IP modification?
    I need to be 100% certain of this, we -cannot- have anything going sour, I hope you understand.

    Thanks again for your post. :)
     
  10. madaboutlinux

    madaboutlinux Well-Known Member

    Joined:
    Jan 24, 2005
    Messages:
    1,052
    Likes Received:
    2
    Trophy Points:
    38
    Location:
    Earth
    Welcome "stdout".
    Yes, you will have to make the changes in the above given files. But remember the .db file in /var/named if you completely change the nameservers and not just the ips.
     
Loading...

Share This Page