Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Shaun E on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Subdomain in IIS doesnt work? 1

Status
Not open for further replies.

grippy

Programmer
Dec 2, 2004
161
US
Ok heres what Im doing. Created a new site in IIS called domain.com then i created a 2nd site in IIS called support.domain.com and gave it the same IP as the first site and then gave it a host header value of support.domain.com

I use zone edit for a dns server and I have two records setup, an A record for and then a CNAME record for support.domain.com When I goto the main domain it pulls up the index.html file but when i goto the support.domain.com it gets an error. However goes to the page where I want support.domain.com to goto.

So how do I get it to where support.domain.com works and does not work? Thanks for the help
 
try setting up another A HOST record called support in zone domain.com pointing to the same ip address. The host header setup is looking to the request to see what you askes for "support.domain.com" since the CNAME acts like an alias I would expect the requested host in the header MAY be replaced by the host the CNAME refers to. I use the host header setup in iis all the time but use A HOST records to point to them.

Steve Bowman
steve.bowman@ultraex.com

 
Thank you that worked perfectly. Now the reason I did CNAME is because this "how to" site said:

The forward lookup zone of the parent domain in the DNS server should contain a pointer to the sub domain using either an alias (CNAME), a hostname (A) or a mail enchanger (MX) entry. The alias (CNAME) record is used for a subdomain if the subdomain points to a website running on the same web server at the same IP address as the parent domain website. A new hostname (A) record is used if the subdomain points to a different web server, or to the same web server listening on a different IP address (as in the case of load distribution).



I figured since my subdomain is on the same server that I needed CNAME. I guess not. Could you explain to me exactly what the difference is with the CNAME? Thanks
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top