1. Please take a little time for this simple survey! Thank you for participating!
    Dismiss Notice
  2. Dear Pleskians, please read this carefully! New attachments and other rules Thank you!
    Dismiss Notice
  3. Dear Pleskians, I really hope that you will share your opinion in this Special topic for chatter about Plesk in the Clouds. Thank you!
    Dismiss Notice

Changing IP addresses

Discussion in 'Plesk for Linux - 8.x and Older' started by hakkrdan, Mar 24, 2006.

  1. hakkrdan

    hakkrdan Guest

    0
     
    Hello -

    I know I asked this before, but I couldn't find my post. There was a script to use to accomplish this, but I don't recall the name of it.

    I need to move all the sites on my Plesk server, to a new set of IPs. I'd like to pretty much keep the same structure - just different IP addresses.

    If this sounds familiar to anyone, I'd certainly appreciate the tip.

    Thanks!!
    -dant
     
  2. phoenixisp

    phoenixisp Silver Pleskian

    27
    57%
    Joined:
    Feb 2, 2002
    Messages:
    840
    Likes Received:
    0
    You want to use the reconfigurator utility.

    # //usr/local/psa/bin reconfigurator.pl map_file

    This will create a map file of all of the IPs on the box. Edit this file and then run the command again. It will make all replacements for you. Instructions are in the created file.
     
  3. hakkrdan

    hakkrdan Guest

    0
     
    Excellent, thank you. Much appreciated.

    Thanks!
    -dant
     
  4. hakkrdan

    hakkrdan Guest

    0
     
    Sorry, one more question here.

    I don't see this script reconfiguring any ethernet interfaces. Does Plesk really care which interface (virtual or physical) has these IP addresses, so long as at least one interface does?

    Thanks!
    -dant
     
  5. hakkrdan

    hakkrdan Guest

    0
     
    Hi -

    On top of that, should I concern myself with TTL values for all the domains for the sake of DNS propagation? Looks like TTLs by default in Plesk are set for 86400. Seems like an awful long time.

    Is there a way to change that globally, to facilitate the switchover?

    Thanks!
    -dant
     
  6. hakkrdan

    hakkrdan Guest

    0
     
    Hi -

    Just wanted to see if anyone had an answer for this.

    Thanks!
    -dant
     
  7. akaplan

    akaplan Guest

    0
     
    Backup your database I ACCEPT NO RESPONSIBILITY.

    # mysql -uadmin -p`cat /etc/psa/.psa.shadow` -D psa -e "INSERT INTO misc VALUES ('SOA_TTL','86400');"





    it is possible to change the TTL, Refresh, Retry, Expire, and Minimum records by adding the following parameters to the misc table in the psa database:

    SOA_TTL
    SOA_Refresh
    SOA_Retry
    SOA_Expire
    SOA_Minimum

    If these parameters are absent, the default settings will be used.

    Example:

    INSERT INTO misc VALUES ('SOA_TTL','86400');

    To update ALL domains

    mysql -Ns -uadmin -p`cat /etc/psa/.psa.shadow` -D psa -e 'select name from domains' | awk '{print "/usr/local/psa/admin/sbin/dnsmng update " $1 }' | sh
     
  8. hakkrdan

    hakkrdan Guest

    0
     
    Ah ha, this is what I was looking for.

    Thank you very much. I took a few mins to go over the databases, but couldn't quite see what I was looking for. I'll go ahead and commit a backup, and give it a shot.

    Thanks
    -dant
     
  9. hakkrdan

    hakkrdan Guest

    0
     
    Hi -

    So for existing domains, it looks like I'll have to update the TTL using sed. The changes to the database are only for new domains. I don't want to touch the new domains, as I'll be setting the TTL to it's previous value after the switch-over.

    Thanks!
    -dant
     
Loading...