Wildcard Subdomains on IIS 6

Posted on 2005-03-09
Medium Priority
Last Modified: 2012-08-13
I have a web site hosted on a shared server running IIS 6. The DNS is configured to serve (hypothetically) http://www.mydomain.com and http://mydomain.com. However, I want all subdomains to also resolve to my site. From what I understand about IIS, it is not possible to create a "wildcard" subdomain like this on the IIS 6 DNS Service. How can I make the DNS for my domain resolve correctly for ALL subdomains; not just the ones I enter specifically?
Question by:bherila
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
LVL 37

Expert Comment

ID: 13504560

DNS is not really part of IIS, but I think it /is/ possible to create wildcard A records in the win2k3 dns server.  If not, then there is always a BIND port for windows that can do it for you.

As far as IIS goes, all you need to do is to set the web site to a specific IP address and leave the host header field blank.

You acn use the cgi parameter "SERVER_NAME" to detect what was the actual hostname used, for example default.asp might include:

Welcome to <%Response.Write(Request.ServerVariables("server_name"))%>

LVL 34

Accepted Solution

Dave_Dietz earned 1000 total points
ID: 13505886
It is indeed possible to create a wildcard DNS in Windows 2000 or 2003 DNS.  You will need a command line utility to do so though because the DNS GUI does not support creating wildcard entries.

You cannot use the DNS snap-in to create a wildcard character record in a DNS zone on a Windows 2000 domain controller

Article applies to Windows 2003 as well and works like a charm....  :-)

Dave Dietz

Featured Post

Back Up Your Microsoft Windows Server®

Back up all your Microsoft Windows Server – on-premises, in remote locations, in private and hybrid clouds. Your entire Windows Server will be backed up in one easy step with patented, block-level disk imaging. We achieve RTOs (recovery time objectives) as low as 15 seconds.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Running classic asp applications under Windows Server 2008 R2 (x64) and IIS 7 is not as easy as one may think. It took me a while to figure it out while getting error 8002801d a few times. After you install the OS you will need to install the fol…
As tax season makes its return, so does the increase in cyber crime and tax refund phishing that comes with it
In this brief tutorial Pawel from AdRem Software explains how you can quickly find out which services are running on your network, or what are the IP addresses of servers responsible for each service. Software used is freeware NetCrunch Tools (https…
In this video, Percona Solutions Engineer Barrett Chambers discusses some of the basic syntax differences between MySQL and MongoDB. To learn more check out our webinar on MongoDB administration for MySQL DBA: https://www.percona.com/resources/we…
Suggested Courses
Course of the Month11 days, 7 hours left to enroll

752 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question