Re: Multiple site on IIS 6.0

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance

From: Jeff Cochran (jcochran.nospam_at_naplesgov.com)
Date: 06/08/04


Date: Tue, 08 Jun 2004 20:13:42 GMT

On Tue, 8 Jun 2004 10:01:16 -0400, "M.Siler" <John.Doe@NoSpam.com>
wrote:

>This is what I thought I'd have to do. I didn't know how it was possible to
>use a CNAME with different domains.

Sure it's possible. Not abnormal, but if you have an IP that has a
tendency to change it makes sense. It's not what the alias record was
supposed to be, but most of the DNS purpose has been pretty stretched
now. The key is the two zones (domains) since that's how the world
will differentiate between the two domain names, including the host
headers.

Jeff

>I'll create different primary zones for each domain.
>
>bar.com
>foo.com
>
>I'll add an A record for bar.com for dev so I can resolve dev.bar.com
>I'll add an A record for bar.com for www so I can resolve www.bar.com to the
>external site.
>
>I'll add an A record for foo.com for dev so I can resolve dev.foo.com
>I'll add an A record for foo.com for www so I can resolve www.foo.com to the
>external site.
>
>This make sense to me now.
>
>Thanks!
>
>
>"Jeff Cochran" <jcochran.nospam@naplesgov.com> wrote in message
>news:40c81428.191252997@msnews.microsoft.com...
>> On Mon, 7 Jun 2004 17:02:40 -0400, "M.Siler" <John.Doe@NoSpam.com>
>> wrote:
>>
>> dev.site_b.com
>>
>> But use an A record, not a CNAME.
>>
>> You're misunderstanding DNS, and the other postings aren't really
>> helping since they're wrong as well. For each domain you have to
>> create a new zone. For example:
>>
>> foo.com
>> bar.com
>>
>> These are two zones (domains)
>>
>> foo.bar.com
>>
>> This is the foo host (A Record) in the bar.com zone (domain)
>>
>> In the bar.com zone, create a host named foo, point it to your web
>> server's IP address. In IIS, create the new site, with a host header
>> of *both* foo.bar.com and bar.com. Then it will answer to either:
>>
>> http://foo.bar.com
>>
>> or
>>
>> http://bar.com
>>
>> See:
>>
>> DNS Basics for IIS Administrators:
>> http://www.iisanswers.com/articles/dns_for_iis.htm
>>
>> How to Create Multiple Websites with one IP address:
>> http://www.iisanswers.com/Top10FAQ/t10-hostheaders.htm
>>
>> HOW TO: Use Host Header Names to Configure Multiple Web Sites in
>> Internet Information Services 6.0:
>> http://support.microsoft.com/?id=324287
>>
>> Jeff
>



Relevant Pages

  • Re: Beating the spam filter ...
    ... alias and the alias is listed in the MX records for REMOTE. ... Or are you referencing the fact that a CNAME should be the only RR for the given name of the CNAME RR? ... Now consider if you will the desire of the hosting company to have a level of abstraction for the host name of mx.hosting-company.tld such that they can freely move the SMTP service from host to host, or add additional hosts to a pool with out the need to update all the client DNS zones. ... To accomplish such with out using CNAMEs, mx.hosting-company.tld would have to use A recordthat resolve to the IP addressof the current mail server. ...
    (comp.mail.sendmail)
  • Re: MX-only domains dying?
    ... I've always thought of the www host as being an artifact of the good old days of the web where DNS was used as part of the maintenance methodology - if you needed to service a box you switched the IP in DNS to the hot spare. ... Using service names allows you to have each respective serviceresolve to different address, thus allowing you to spread services across different hosts. ... If you are wondering why I have A records for domainN.tld verses a CNAME record, I have never been able to get CNAME records to co-exist with any other record type for a given name. ...
    (comp.mail.sendmail)
  • Re: Multiple site on IIS 6.0
    ... use a CNAME with different domains. ... I'll create different primary zones for each domain. ... I'll add an A record for bar.com for www so I can resolve www.bar.com to the ... external site. ...
    (microsoft.public.inetserver.iis)
  • Re: Beating the spam filter ...
    ... A simple check of the hello string of the mail server running on the 72.232.183.2 host shows that it is answering as "india.eccindustries.info". ... An A RR query for the FQDN of "india.eccindustries.info" does resolve to the IP of 72.232.183.2 thus indicating to me that it is the proper FQDN for the IP address. ... Any other name that you would like to point to that name should be a CNAME from the other name to "india.eccindustries.info". ...
    (comp.mail.sendmail)
  • Re: [Full-disclosure] Security-Assessment.com Advisory: Oracle JRE - java.net.URLConnect
    ... I got the idea of using Java Applet to achieve the ... multiple Host: headers which exploits the Apache feature mentioned above). ... But let's come back to your response - you mention about a bug from ... request between domains that resolve to the same IP address. ...
    (Full-Disclosure)