DNS hidding

Barry Margolin barmar at alum.mit.edu
Tue Aug 10 00:25:18 UTC 2004


In article <cf8v8r$1spl$1 at sf1.isc.org>,
 Sten Carlsen <ccc2716 at vip.cybercity.dk> wrote:

> Barry Margolin wrote:
> 
> >In article <cf8h24$mf0$1 at sf1.isc.org>,
> > before.the.gods at gmail.com (Before The Gods) wrote:
> >
> >  
> >
> >>So is it possible to configure my DNS so that when a user ask for
> >>"www.prod.xyz.com", it will redirect to "www.xyz.com" ?
> >>    
> >>
> >
> >No.  As you discovered, DNS just provides the name->address lookup 
> >facility.  If you want redirects, you have to do that on the web server 
> >itself, using the HTTP Redirect mechanism.
> >  
> >
> Could this be done with CNAME? 

No.  CNAMEs are normally processed transparently to the client 
application.

> I think so. It will not be just a 
> redirect, they would effectively be the same IP. Then the webserver must 
> use virtual hosts if you want a different answer from the two addresses. 
> I understand you want the two to be the same.
> 
> Two A RRs will also work.

I think that's what he already has.

> This all assumes you have control over the DNS for xyz.com!

-- 
Barry Margolin, barmar at alum.mit.edu
Arlington, MA
*** PLEASE post questions in newsgroups, not directly to me ***


More information about the bind-users mailing list