Linode Forum
https://forum.linode.com/

DNS redirect
https://forum.linode.com/viewtopic.php?f=19&t=10885
Page 1 of 1

Author:  siribarren [ Thu Feb 27, 2014 10:42 pm ]
Post subject:  DNS redirect

Hi all!
I've 2 domains hosted in my Linode.

domain1
domain2

And the domain2 may be redirect to domain1

I've setup twice domains in DNS Manager, and point to the only one IP from my Linode, and when setup the domain2 i have delete all A register and add CNAME

Hostname Aliases to TTL Options
www www.domain1.cl Default

And now, domain2 not redirect to domain1.

What i've wrong? (sorry by my poor english)

Thanks!

Author:  dcraig [ Thu Feb 27, 2014 10:49 pm ]
Post subject:  Re: DNS redirect

From a DNS perspective, both domains need to resolve to the IP address of your web server. Add A records for domain1.com, www.domain1.com, domain2.com, and www.domain2.com that all point to that IP address.

If you want web requests for http://www.domain2.com/ to be redirected to http://www.domain1.com/, this will be handled by your web server software, like Apache or nginx. Instructions vary depending on your choice of server and configuration.

Page 1 of 1 All times are UTC-04:00
Powered by phpBB® Forum Software © phpBB Group
http://www.phpbb.com/