Take the 2-minute tour ×
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 mydomain.com and mydomain.net. I want a permanent redirect so that if anyone browses to mydomain.net they navigate to mydomain.com. Is there a way to do this using DNS records?

share|improve this question

1 Answer 1

up vote 1 down vote accepted

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

share|improve this answer
Thanks - so to clarify, I should create a CNAME for "*" that points at "mydomain.com"? Will that mean that the url will automatically change to mydomain.com? 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

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.