I have two hosts with different IPs.
The first one (say host A) serves the old version of website at site.com
, plus some subdomains and emails ([email protected]
).
Host B serves the new version of website at site.net
plus some subdomains.
Both site.com
and site.net
have been live for some time, but now, the new version of website is ready and I want to change its domain.
I want to change from this:
site.com (host A) - Old version of website
subdomain.site.com (host A)
[email protected] (host A)
site.net (host B) - New version of website
subdomain.site.net (host B)
[email protected] (host B)
to this:
site.com (host B 🔅) - New version of website
subdomain.site.com (host A)
[email protected] (host A)
site.net (? 🔅) - ?
subdomain.site.net (host B)
[email protected] (host B)
I'm thinking of changing A record of site.com
at host A to point to host B, and keep the subdomains and emails at their own hosts.
Now I have two questions:
Is this approach safe? I mean, does changing the A record of
site.com
affect other subdomains or email in unexpected ways? If yes, what's the correct way to swith the domains?What should I do with
site.net
domain? should I point bothsite.com
andsite.net
to host B, where the new version of website is? Or pointsite.com
to new version and makesite.net
redirect tosite.com
?