Host Header Site

Danny Mayer mayer at gis.net
Fri Jul 8 02:07:19 UTC 2005


Chris wrote:
> "Brad Knowles" <brad at stop.mail-abuse.org> wrote in message 
> news:daisa4$vse$1 at sf1.isc.org...
> 
>>At 2:24 AM -0400 2005-07-07, Vinny Abello wrote:
>>
>>
>>> It doesn't matter how you setup the record pointing to the web
>>> server.
>>
>>Actually, it does matter.  The name has to resolve directly to
>>the IP address.  If you use a CNAME record instead, most browsers and
>>proxies will change the name that is being asked for to match the
>>"canonical name" that they've been given.  If you give them an IP
>>address instead, they go ahead and use the original name as provided.
>>
> 
> 
> Really? We have hundreds of hosted web sites using a CNAME to the name of 
> the hosting server and it's always worked just fine.
> 
The CNAME's fine. The browser doesn't care. It takes whatever FQDN is in
the URL and stuffs it into the host: record of the HTTP request. It has
absolutely nothing to do with the IP address that the resolver finds.

Danny



More information about the bind-users mailing list