Sign up ×
Webmasters Stack Exchange is a question and answer site for pro webmasters. It's 100% free, no registration required.

Newbie webmaster here: I have 2 domains and I want a permanent redirect so that if anyone browses to they navigate to Is there a way to do this using DNS records?

share|improve this question

3 Answers 3

up vote 1 down vote accepted

You could create a CNAME record for your .net domain, this way your DNS will translate to

share|improve this answer
Thanks - so to clarify, I should create a CNAME for "*" that points at ""? Will that mean that the url will automatically change to That's important, because the web server will dish up content according to what URL is requested. –  Shaul Behr Oct 28 '13 at 9:34
Unfortunately, users see whatever they typed. The DNS only tells the user where the website is hosted. Since you want a HTTP redirect (like HTTP 301), you should configure that in a virtualhost of some kind –  Ronald Swets Oct 28 '13 at 10:45
So DNS can't do an automatic URL rewrite? –  Shaul Behr Oct 28 '13 at 11:13
Correct, DNS has nothing to do with HTTP, basicly it only translates between names and IP addresses –  Ronald Swets Oct 28 '13 at 11:17
Thank you very much –  Shaul Behr Oct 28 '13 at 11:20

You can try

In your case, configure your DNS like this: A CNAME CNAME
share|improve this answer

You won't be able to "redirect" using DNS records.

As mentioned:

You could create a CNAME record for your .net domain, this way your DNS will translate to

This is a good first step, but this only sets the domain to point to the same IP, it doesn't actually perform any redirecting. Once the domain is pointing to the same place you can then set your webserver (Apache/NGINX/IIS/&c) to HTTP redirect traffic from one domain to the other.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.