I have several A records like so:
Subdomain IP Address
example.foo.com 1.2.3.4
foo.com 1.1.1.1
And a CNAME record that looks like this:
Alias Destination
www.foo.com foo.com
I want to make foo.com throw a 301 redirect to www.foo.com
So I'd change the last A Record to:
www.foo.com 1.1.1.1
And swap the two urls in the CNAME record to look like the following:
foo.com www.foo.com
Question: Is this change going to make example.foo.com resolve to 1.1.1.1 instead of 1.2.3.4?
foo.cominto being alias forwww.foo.com, correct? The last example is a bit confusing. And as @Avery said, if you need 301, then that's not really DNS stuff. – Karol Piczak Apr 19 '11 at 22:22