Forum Moderators: phranque
I have a domain X, but i want all the trafic to X to be redirected to domain Y, that is www.foo.com. not just a IP-address. I have access to the DNS zones but i dont want to mess around with them to much without knowing what i am doing.
The contents of the zone file right now is:
Record TTL Type Value
@ NS ns1.web.host.
@ NS ns2.web.host.
@ NS ns3.web.host.
@ MX 20 mx02.web.host.
@ MX 30 mx03.web.host.
www CNAME my.web.host.
could i just chanche the CNAME or should i make a A_RECORD?
Thanks in advance
Hafnius
If i did not understand this properly it's perhaps because you have one IP address and you now want both the old and the new domain to point to this one. This can be done, here's an example (line 1+2):
example.com. IN A 127.0.0.0
foo.com. IN CNAME example.com.
www.foo.com. IN CNAME example.com.
www IN CNAME example.com. This way, both foo.com and example.com points to the IP 127.0.0.0. (line 3+4: So does www.foo.com and www.example.com)
/claus
Create an A record, point that domain name to your IP.
i see that would be the easy solution but both the domains share the same IP at my webhost so that is not possible.
you would be better off doing a .htaccess 301 redirect on the old domain (from this to the new) until you decide to cancel it.
That would also be a solution, but i would like to avoid having a webhotel for the domain, and i cant cancel it since it is one of the top searchnames for the other domain. So i need the traffic for the main site and i wont go into doorway pages and such.
So there are also some SEO considerations to be taken. I hope i have explained myself okay.
Kind Regards
Hafnius
This means that both domains point to the same IP already. There is either an A or a CNAME in place for both being used by your host to set up virtual domains it seems.
You could change it to a "real" CNAME (alias) in stead of having two separate domains. Might just require a talk with your host and no zone file editing all depending on their setup :)
/claus