Community Forums
Connect with us on LinkedIn
+ Reply to Thread
Results 1 to 12 of 12
  1. #1
    Member
    Join Date
    Apr 2002
    Posts
    64

    Default transfer all sites to new ip

    we are losing some IP's on our server and need to transfer all our named-based sites to a new IP

    What would be the BEST way to go about this?

    Just looking for some advice before we go about this.

    My guess would be, make all accounts under 1 reseller, change that resellers named-based ip use to the IP we are moving to... will that change everyone over? zone files and apache records??


    anyone know? am i on the right track?
    -rich2

  2. #2
    Member
    Join Date
    Apr 2002
    Posts
    64

    Default

    *bump*

    really need this one answered
    -rich2

  3. #3
    Member
    Join Date
    Mar 2002
    Posts
    70

    Default

    [quote:65a1c915f1][i:65a1c915f1]Originally posted by rich2[/i:65a1c915f1]
    ...make all accounts under 1 reseller, change that resellers named-based ip use to the IP we are moving to... will that change everyone over? zone files and apache records??
    [/quote:65a1c915f1]

    No it won't.

    Easiest way would be search and replace.

    In a ssh session, try this:

    cd /var/named/

    perl -p -i -e 's/oldip/newip/gi' * (example: perl -p -i -e 's/10.10.10.10/20.20.20.20/gi' *)

    cd /etc/httpd/conf/

    perl -p -i -e 's/oldip/newip/gi' httpd.conf (example: perl -p -i -e 's/10.10.10.10/20.20.20.20/gi' httpd.conf)

    And restart bind and apache.

    This should do the trick, I take no responsibility though, do at your own risk.

  4. #4
    Member
    Join Date
    Apr 2002
    Posts
    64

    Default

    thanx, i am gonna test this i think on a dummy server and some records before taking it on the production server
    -rich2

  5. #5
    Moderator cPanel Partner NOC Badge dgbaker's Avatar
    Join Date
    Sep 2002
    Location
    Toronto, Ontario Canada
    Posts
    2,773

    Default

    Just to add - You also need to do this in
    /var/cpanel/users

    This is were the package info for each domain is held and it does contain the ip's as well.
    Regards,
    David
    Forum Moderator

  6. #6
    Member
    Join Date
    Apr 2002
    Posts
    64

    Default

    thanx
    -rich2

  7. #7
    Member
    Join Date
    Aug 2001
    Posts
    707

    Default

    [quote:fb410ac8f4][i:fb410ac8f4]Originally posted by dgbaker[/i:fb410ac8f4]

    Just to add - You also need to do this in
    /var/cpanel/users

    This is were the package info for each domain is held and it does contain the ip's as well.
    [/quote:fb410ac8f4]Are you sure? This is new to me.

  8. #8
    Moderator cPanel Partner NOC Badge dgbaker's Avatar
    Join Date
    Sep 2002
    Location
    Toronto, Ontario Canada
    Posts
    2,773

    Default

    [quote:65fa3006c6][i:65fa3006c6]Originally posted by moronhead[/i:65fa3006c6]

    [quote:65fa3006c6][i:65fa3006c6]Originally posted by dgbaker[/i:65fa3006c6]

    Just to add - You also need to do this in
    /var/cpanel/users

    This is were the package info for each domain is held and it does contain the ip's as well.
    [/quote:65fa3006c6]Are you sure? This is new to me.[/quote:65fa3006c6]

    Yep, just looked at one of mine. And the IP is listed.
    Regards,
    David
    Forum Moderator

  9. #9
    Member
    Join Date
    Aug 2001
    Posts
    707

    Default

    I know about the package info but I can't see any IPs in those files.

  10. #10
    Member
    Join Date
    Sep 2001
    Location
    Spain
    Posts
    779

    Default

    Nick told me that the IP field in the users' data files is deprecated. In fact when you change an account's IP from WHM that doesn't change at all.

  11. #11
    Moderator cPanel Partner NOC Badge dgbaker's Avatar
    Join Date
    Sep 2002
    Location
    Toronto, Ontario Canada
    Posts
    2,773

    Default

    Really? I wasn't aware that. Thanks for the info. Do you know with which release that was changed?
    Regards,
    David
    Forum Moderator

  12. #12
    Member
    Join Date
    Sep 2001
    Location
    Spain
    Posts
    779

    Default

    I don't know, see here:
    http://web.cpanel.net/bugzilla/show_bug.cgi?id=711

Similar Threads & Tags
Similar threads

  1. Transfer sites from command line
    By rajuru in forum cPanel and WHM Discussions
    Replies: 7
    Last Post: 06-17-2009, 08:02 PM
  2. Multi transfer function not listing sites
    By Snowman30 in forum cPanel and WHM Discussions
    Replies: 0
    Last Post: 12-29-2007, 06:08 AM
  3. Transfer Sites From WHM!!!
    By FreeFox in forum cPanel and WHM Discussions
    Replies: 1
    Last Post: 04-14-2004, 02:57 PM
  4. Transfer Sites
    By athakkar in forum cPanel and WHM Discussions
    Replies: 1
    Last Post: 03-26-2004, 12:59 AM
  5. Transfer sites and move to different account
    By mmancini in forum cPanel and WHM Discussions
    Replies: 1
    Last Post: 01-12-2003, 10:11 AM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube