|
|
 |  |
Re: Question: redirect?From: Navarsky Eliezer Date: Sunday, April 2, 2000
Time: 1:35:19 pmHello again,
> >I have a question. I think it is a simple one but...
> >
> >Suppose a client registered a domain under all 3 TLDs (.com,
> >.net and .org).
> >
> >How do I set up the DNS data so that whatever the TLD gets
> >chosen it will be redirected to the relevant .com data set up.
> >
> >E.g.: mail send to user@domain.net gets to user@domain.com
> >and a URL entry of www.domain.org gets to the site at www.domain.com.
> >
> >I seem to remember that this is called a redirect?!
>
> The first thing to do is to set up the DNS files for all of these
> names as if they were all going to be used normally.
>
> Then, on your web server, configure your virtual hosts manager to map
> the names that are to be redirected to a folder containing a redirect
> file - there are a great number of ways to do this, starting with
> WebSTAR raw files.
Unfortunately, the client actually went and registered 3
domains, all with .com, .net and .org. Considering that he
would (rightly?) expect both the www.domain.TLD URL and the
domain.TLD URL to work this means setting up 18 virtual
hosts for this one website :-(
17 of the above to a common *root* where there is a single
HTML file with a <META HTTP-EQUIV="REFRESH"
CONTENT="1;URL=http://www.activedomain.com"> tag. The 18th
virtual host being the *active* host :-(
I was actualy thinking that it would (should?) be possible
to have the domains redirected at the DNS level. Something
along the lines of:
domain1
domain1.net A domain3.com (instead of an IP)
www.domain1.net A domain3.com (instead of an IP)
domain1.net mx domain3.com (instead of an IP)
domain1.org A domain3.com (instead of an IP)
www.domain1.org A domain3.com (instead of an IP)
domain1.org mx domain3.com (instead of an IP)
domain1.com A domain3.com (instead of an IP)
www.domain1.com A domain3.com (instead of an IP)
domain1.com mx domain3.com (instead of an IP)
same as above for domain2
domain3
domain3.net A domain3.com (instead of an IP)
www.domain3.net A domain3.com (instead of an IP)
domain3.net mx domain3.com (instead of an IP)
domain3.org A domain3.com (instead of an IP)
www.domain3.org A domain3.com (instead of an IP)
domain3.org mx domain3.com (instead of an IP)
domain3.com A xxx.xxx.xxx.xxx
www.domain3.com A xxx.xxx.xxx.xxx
domain3.com mx xxx.xxx.xxx.xxx
Well, i'll leave it to my betters (or rather those who have
actually read DNS and Bind) to explain this...
Thanks in advance for the enlightment
Eliezer Navarsky
|

Return to Digital Point Solutions' Home Page |