cPanel DNS - Moving from one system to another? Check this out!2011-Mar-15
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
perl -pi.bak -e "s/14400/900/g" *.db
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!
Comments0 Total Comments
Please Log in or Register
Already registered? Sign in NOW
Not registered yet? Register NOW!
Latest Site Additions