Take the 2-minute tour ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

How i can create DNS alias?
ie.: i have one domain named example.com and second domain - example.net. Zone-file of first domain contents:

example.com. IN A
www.example.com. IN A
*.example.com IN CNAME example.com.

What should i write to second's domain zone-file, that redirected from http://www.example.net to http://www.example.com?

share|improve this question

1 Answer 1

up vote 1 down vote accepted

dns does not handle http redirection.. You can just cname example.net to example.com just fine.. but you would have to do the redirect on your webserver side

share|improve this answer
What should i minimal do on my webserver side? –  kirillorloff Jul 27 '10 at 10:38
I am using Apache2.2 –  kirillorloff Jul 27 '10 at 10:53
There is an example of what you want to do on Super User here –  Iain Jul 27 '10 at 12:29
Question closed. lain - GreatApacheThanks! :) –  kirillorloff Jul 27 '10 at 20:49

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.