Web Hosting Talk







View Full Version : domain is changing server with no downtime


sunshines
04-17-2004, 09:32 AM
I have now the domain.com hosting on cpanel1.
Now I want to move this domain to server cpanel2. I copy all data on server2. I change dns servers in domain, but they need time to refresh for about 24 hours. AS I do using mysql , I want immediately it working from the new server.

In whm (old server) I can edit zones (NS, A,MX) so, I can point somehow to the new server. But how exactly? I need the procedure. I have the following dns records:

domain.com NS ns1.oldserver.com
domain.com NS ns2.oldserver.com
domain.com A 66.66.66.66
domain.com A 127.0.0.1
domain.com MX 0 domain.com
mail CNAME domain.com
www CNAME domain.com
ftp A 66.66.66.66

wKkaY
04-17-2004, 10:25 AM
set an A address for new.domain.com to the ip of server2.

and set apache on server1 to redirect to http://new.domain.com

sunshines
04-17-2004, 06:22 PM
where to set apache? I have a reseller account. So my operations are limited.

wKkaY
04-17-2004, 09:43 PM
.htaccess

Redirect / http://new.domain.com

chuckt101
04-18-2004, 11:03 AM
see if the new mysql server lets you access your db from your old server.. then just update config for mysql to point to the new server and you don't have to worry about dns propagation issues.