Forum Moderators: phranque

Message Too Old, No Replies

DNS zones

redirecting the traffic to another site

         

hafnius

4:07 pm on Aug 15, 2003 (gmt 0)

10+ Year Member



HI all

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

txbakers

5:15 pm on Aug 15, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



I wouldn't mess with the CNAME. Create an A record, point that domain name to your IP.

claus

6:19 pm on Aug 15, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



AFAIK if you don't have the IP, you cant make an A record. So if i understand your question properly, 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.

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

hafnius

3:43 pm on Aug 16, 2003 (gmt 0)

10+ Year Member



Hi Again


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

claus

4:29 pm on Aug 16, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



>> both the domains share the same IP at my webhost

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

hafnius

5:34 pm on Aug 16, 2003 (gmt 0)

10+ Year Member



Hi Claus

Thanks, i will try to ask them and see what happens. That simple idea never came to mind :)

Kind Regards
Hafnius