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.

Transfer of an account, all addon domains with wrong IP

Discussion in 'General Discussion' started by slice16, Sep 2, 2005.

  1. slice16

    slice16 Active Member

    Joined:
    Nov 24, 2004
    Messages:
    42
    Likes Received:
    0
    Trophy Points:
    6
    I have just copied over various accounts from another server.

    each have many addon domains, and upon runnign a dns check, they are giving the old ip address (not the nameservers, just hte IP) is there a script that i can run to sort these out, so they update to the new IP address?
     
  2. chirpy

    chirpy Well-Known Member

    Joined:
    Jun 15, 2002
    Messages:
    13,475
    Likes Received:
    20
    Trophy Points:
    38
    Location:
    Go on, have a guess
    Not sure of a script - you're probably better off editing httpd.conf and fixing them by hand.
     
  3. @home

    @home Well-Known Member

    Joined:
    Nov 5, 2003
    Messages:
    119
    Likes Received:
    0
    Trophy Points:
    16
    cPanel Access Level:
    Root Administrator
    You can try this.

    Login to your new server as root

    cd /var/named
    perl -pi.bak -e "s/oldip/newip/g" *.db
    /etc/rc.d/init.d/named restart
     
  4. chirpy

    chirpy Well-Known Member

    Joined:
    Jun 15, 2002
    Messages:
    13,475
    Likes Received:
    20
    Trophy Points:
    38
    Location:
    Go on, have a guess
    That isn't sufficient. You should also increment the SERIAL number in the zone file whenever you change it.
     
  5. slice16

    slice16 Active Member

    Joined:
    Nov 24, 2004
    Messages:
    42
    Likes Received:
    0
    Trophy Points:
    6
    thanks,

    so when i incremement the serial number, do i simply add one onto it?
     
  6. chirpy

    chirpy Well-Known Member

    Joined:
    Jun 15, 2002
    Messages:
    13,475
    Likes Received:
    20
    Trophy Points:
    38
    Location:
    Go on, have a guess
Loading...

Share This Page