redirection with dns ?

John W. Blue jblue at arocinc.com
Fri Jun 15 21:31:45 UTC 2001


Charles,

You are mixing apples and oranges.  A CNAME redirection is one that
*aliases* a phantom hostname over to a real live host.  With that being
said, all that is going to happen when you query about www.domain.com, named
is going to say .. "oh www is CNAME'd to hostname.domain.com.  Now it has to
find the A record associated with hostname.domain.com and upon that
discovery ... al la peanut butter jelly sandwiches!! .. your browser is
returned the sought after IP address.

whew ... its all about the ip addresses baby.  Browsers (in the early stages
of the conversation) don't care about redirections into subdirectories ...
all they want to know is the ip address so they can go knocking on a port.
In this case .. 80.

John Blue



> I know this is possible using http cgi redirect scripts, but ...
>
> Is it possible to redirect using a domain's RR to a sub-directory at a
> website?
>
> For example:
> www IN CNAME hostname.domain.com.
>
> The above seems to work...
>
> but is it possible to redirect to hostname.domain.com/subdirectory ?
>
> Best regards,
> Charles Wilkins
>



More information about the bind-users mailing list