cPanel DNS - Moving from one system to another? Check this out!2011-Mar-15
Posted by Douglas, @BearlyDoug

ORIGINALLY POSTED IN 2010 SOMETIME.

I've been asked time and time again how I'm able to move a huge site and have DNS fully propagated within 15 minutes after I make the necessary changes to the A records (Changing from A.B.C.D IP over to W.X.Y.Z IP address). I'm going to turn you onto a nifty little trick that I use to help speed up the process.

About a week before the actual site/server move, I change all of the DNS Time to Lives (TTLs) down to 300 - 900 seconds (5 to 15 minutes). This means that as soon as I change the IPs for the website(s) involved, literally within 15 minutes, the world is seeing the site live on the new servers.

Generally, I run both the old location and the new location side by side, with all of the database stuff in various scripts on the old location actually using the databases on the new location (I also turn off file uploading) for at least 3 days. Once a good majority of the visitors see the site on the new location (I help them with this by putting a "NEW" image up on the new location site to help identify which location they're looking at), I then safely shut down the old location and re-enable uploading.

If you're hosting DNS on your own VPS, there are steps that you can take to quickly change everything. The steps below cover cPanel DNS services, though it might work for DirectAdmin, as long as the naming conventions and directories are the same.

Log in as root
CD /var/named
perl -pi.bak -e "s/14400/900/g" *.db


Restart Named.

---------------

By doing these changes in advance, this will greatly speed up the overall time for the migration project. One of our team members have been able to move a huge site (MySQL DB alone was 2.5 gigs) in literally 3 hours and have everyone see the site on the new server using the methodologies outlined above.

Instructions for Linux based Plesk can be found at URL COMING SOON!
 
Share your thoughts!
Your name:Enter "CAPTCHA image":  
 Image validation required
Twitter:Website:
Remove to not show Twitter Handle(OPTIONAL, Include http://)

 
Comments0 Total Comments
 
 
Please Log in or Register
It's BearlyDoug!
Already registered? Sign in NOW


Not registered yet? Register NOW!

Promoted Sites
The sites listed below make DLHazard.com possible. Do me a favor and show 'em some love!

GridironHistory.com

Hogville.net

Latest Site Additions
13-Nov-2012 - Site Update
13-Apr-2012 - Interactive Twitter Item
10-Apr-2012 - Site Update
10-Apr-2012 - Interactive Twitter Item
21-Mar-2012 - Event Item
21-Mar-2012 - Event Item
27-Feb-2012 - Site Update
25-Feb-2012 - Site Update
25-Feb-2012 - Site Update
25-Feb-2012 - Site Update