Linode Forum
Linode Community Forums
 FAQFAQ    SearchSearch    MembersMembers      Register Register 
 LoginLogin [ Anonymous ] 
Post new topic  Reply to topic
Author Message
 Post subject: DNS redirect
PostPosted: Thu Feb 27, 2014 10:42 pm 
Offline

Joined: Thu Feb 27, 2014 10:12 pm
Posts: 1
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!


Top
   
 Post subject: Re: DNS redirect
PostPosted: Thu Feb 27, 2014 10:49 pm 
Offline
Senior Member

Joined: Sun Apr 26, 2009 3:37 am
Posts: 72
Website: http://wiggenhorn.org/
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.


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
RSS

Powered by phpBB® Forum Software © phpBB Group