Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium


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
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

Upgrade your Question Security!

Your question, your audience. Choose who sees your identity—and your question—with question security.

Question has a verified solution.

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

Logparser is the smartest tool I have ever used in parsing IIS log files and there are many interesting things I wanted to share with everyone one of the  real-world  scenario from my current project. Let's get started with  scenario - How do w…
Debug Tools to analyse IIS process: This article focus on taking memory dumps from IIS to determine which code is taking more time and to analyse which calls hangs/causes more CPU usage. To take dumps,download the following. Install1: To st…
Screencast - Getting to Know the Pipeline
With just a little bit of  SQL and VBA, many doors open to cool things like synchronize a list box to display data relevant to other information on a form.  If you have never written code or looked at an SQL statement before, no problem! ...  give i…

564 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