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

New Class Cs

Discussion in 'Plesk for Linux - 8.x and Older' started by Rempala, Feb 9, 2005.

  1. Rempala

    Rempala Guest

    0
     
    At the end of this month we are switching Providers.
    From New Edge to AT&T. My question is what would be the easiest way to switch plesk to use the new Class C IP#s

    Old Class Cs
    208.128.88.xx
    206.154.244.xx

    New Class Cs
    12.174.156.xx
    12.174.157.xx


    Edward Rempala
    WorldNet Access
     
  2. Rempala

    Rempala Guest

    0
     
    Anybody? :(
     
  3. RexAdmin

    RexAdmin Guest

    0
     
    You need to do lots of syncing stuff, but the best is to have off site DNS server, which you can control so you wont loose any hit or email.

    Good luck
     
  4. Rempala

    Rempala Guest

    0
     
    Could I export the dns and edit that way, and jsut re inport it when I am done (We did it that way back in 2.x).

    Edward
     
  5. Cranky

    Cranky Guest

    0
     
    You can edit the IP's for the DNS zones in dns_recs table of psa database, then run the following shellscript:

    Code:
    #!/bin/sh
    
    ADMIN_PASS=`cat /etc/psa/.psa.shadow`
    MYSQL_BIN_D=`grep MYSQL_BIN_D /etc/psa/psa.conf | awk '{print $2}'`
    mysql="${MYSQL_BIN_D}/mysql -N -uadmin -p${ADMIN_PASS} psa"
    
    query="select name from domains;"
    domains=`echo $query | $mysql `
    
    for i in ${domains}; do
        echo "echo $i"
        /usr/local/psa/admin/sbin/dnsmng update $i
    done 
     
  6. Rempala

    Rempala Guest

    0
     
    Thanks, that work perfectly

    Edward
     
  7. Griffith

    Griffith Guest

    0
     
    Cranky:
    nice script, but is is possible to use a script like this to change SOA_TTL on every domain? I have added SOA_TTL to misc table, but not sure how I can "add" this to existing domains? Ideas?

    I'm also going to move my servers to a new location.. any good advices before I start? :)
     
  8. Cranky

    Cranky Guest

    0
     
    I figure you've sorted this out by now, if not then you can adjust the SOA settings in psa database then run the shellscript above, should work fine.
     
Loading...