IIS - Creating a subdomain in IIS7 - Asked By Christopher Baker on 08-May-12 03:53 PM

I have a domain domainpart1.domainpart2.com (that's the full domain name). I can navigate to it successfully.

I want to create a subdomain called subdomain.domainpart1.domainpart2.com. I added a binding in IIS that works if I navigate to the subdomain from a browser on the hosting machine. No other machine, however, can hit the site (doesn't exist, page cannot be found, whatever) using that URL.

What is wrong? Is this some kind of DNS issue?


Shan P replied to Christopher Baker on 08-May-12 04:56 PM
Did you configure your subdomain in DNS as a CNAME? You'll have to do that. You can configure the DNS entries with your ISP. Some ISPs may support wildcard CNAMEs, but it's up to each ISP. Wildcard CNAMEs would allow you to effectively map anything (*) to your server's IP address. But sometimes you don't want that. For example, many subdomains for websites map to external domains / IP addresses. Take a content delivery network (CDN) for example. You would map a CNAME to your CDN in order for resources to appear to be coming from your domain, which is good in many other ways, such as avoid browser cross domain security issues.

Chances are you'll have to add a DNS CNAME for your specific subdomain. 
Jitendra Faye replied to Christopher Baker on 09-May-12 12:58 AM
Follow these steps-

-open iis7 manager create a new website,
-type any name for site name, and point the physical path & IP Address which is assigned to your network adapter (port should be 80)and the hostname must be your subdomain name like blog.example.com (if your main site is example.com) apply ok.