1

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 10.1.2.3
www.example.com. IN A 10.1.2.3
*.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?

kirillorloff
  • 47
  • 2
  • 7

1 Answers1

2

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

Mike
  • 22,310
  • 7
  • 56
  • 79
  • There is an example of what you want to do on Super User [**here**](http://superuser.com/questions/122810/apache-redirect-from-one-domain-to-another-domain) – user9517 Jul 27 '10 at 12:29