What I am looking to do is to redirect all traffic from www.example.com
to www1.example.com(subdomain of example.com)
via DNS.
I am attempting to move from a local server (example.com
) to a GoDaddy server (www1.example.com
) which is a VPS, with the intention of completely shutting down the local server after the move. I have successfully moved the site's contents to the subdomain (www1.example.com
) and would like to direct all traffic to example.com
now to www1.example.com
.
The DNS is controlled here locally, not by Godaddy.
I previously tried setting a CNAME record like so: www IN CNAME www1.example.com.
But that failed terribly. Can anyone please provide some insight as to what other solutions there may be?
Would something like this work instead? The IP address 192.0.2.4 would be the IP address of the Godaddy server.
@ IN A 192.0.2.4
www IN CNAME www1.example.com