How to move clients from one server IP to another?

Domo

New member
Joined
Sep 6, 2005
Messages
1
Good Day, due to the massive DDoS attack, we decided to move clients to another IP address on a same server, How can i move 460 users, from one server IP to another, with minimum operations??


Please help.
 
Domo said:
Good Day, due to the massive DDoS attack, we decided to move clients to another IP address on a same server, How can i move 460 users, from one server IP to another, with minimum operations??


Please help.
In the /usr/local/directadmin/scripts/ is a script to do this:

ipswap.sh (run it without arguments to see how to use it)

This will change the source ip address (given as parameter) to the destination ip address for all files needed to be changed.

So all your users, httpd, bind etc. will be changed.

One problem :) It doesn't change the SOA record SERIAL. This way no secondairy nameserver or any other as far as i can think of, will have your new ip address.

So you probably have to change ALL your zonefiles manualy to increment the SERIAL :s

If someone does know how to this automated ;)
 
Glad to oblige:

# echo "action=rewrite&value=named" >> /usr/local/directadmin/data/task.queue

don't type in that leading "#" mark; it's just there to show you run the command as root.

Jeff
 
jlasman said:
Glad to oblige:

# echo "action=rewrite&value=named" >> /usr/local/directadmin/data/task.queue

don't type in that leading "#" mark; it's just there to show you run the command as root.

Jeff

This is already in the swapip.sh

On mine it didn't execute that part, so the serial wasn't updated. Just a heads up ;)
 
Did it work for you when you entered it manually?

I believe it's worked for me in the past. If it doesn't update serial numbers then I'll confer with John to have it rewriten so it does.

Jeff
 
Back
Top