Point old Server to new Server?

connorlong

Member
Feb 23, 2005
23
0
151
Hi All,

I have a new server. I have used WHM to copy all the accounts from the old Server over to new Server. So far so good.
The problem is, I want to make sure that my clients are accessing the new server and not the old server while I update the new NS on the individual domains. These are co.za domains and will take about 24 hours to resolve.

Is there a way I can point or update the Old Server in a way that any atempt to access it i.e mail.CLIENTDOMAIN.co.za automatically goes to the New Server. I would want to make sure that new mail been emailed to my clients is going to the mail boxes on the new server and not the old.

Thank you.
 
Last edited:

connorlong

Member
Feb 23, 2005
23
0
151
dalem said:
set the DNS for all of the domains to the ip of the new server

Thanks. But do I have to do it for all the individual accounts or is there a way to do all the accounts at once?;)
 

levelsupport

Well-Known Member
Oct 7, 2006
47
0
156
Do the following
Code:
cd /var/named
perl -pi.bak -e "s/[oldip]/[newip]/g" *.db
make sure you have a backup of your named files before you proceed.
 

designeru

Well-Known Member
Nov 2, 2005
83
0
156
Hint!

As i know... you have in WHM "change multiple sites ip address"... i think this will help you ;).

Also, you can do some firewall redirects until the propagation is complete. Check man iptables.
 

levelsupport

Well-Known Member
Oct 7, 2006
47
0
156
designeru said:
As i know... you have in WHM "change multiple sites ip address"... i think this will help you ;).

Also, you can do some firewall redirects until the propagation is complete. Check man iptables.
that doesnt allow you to change the ip to THAT of a different server ;)