DNS redirect

Hi all!

I've 2 domains hosted in my Linode.



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)


1 Reply

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.


Please enter an answer

You can mention users to notify them: @username

You can use Markdown to format your question. For more examples see the Markdown Cheatsheet.

> I’m a blockquote.

I’m a blockquote.

[I'm a link] (https://www.google.com)

I'm a link

**I am bold** I am bold

*I am italicized* I am italicized

Community Code of Conduct