Hi,

I'd like to setup the following. I have a website (lets call it
isnice.com) and I want to add a subdomain for each user that
registers.

To avoid lots and lots of manual labour I set it up in the DNS as
following:

* IN A 10.0.0.1

Ie, all requests that has anything to do with isnice.com will end up
at my IP.

Now, to IIS, I don't want to have to set up each subdomain as Host
Header in IIS. What I would like to do is assign *.isnice.com to a
hostheader and then determine programatically which domain is called
with the server variable HTTPHOST.

But IIS is refusing me to use any wildcards in Host Headers. Does
anyone have a solution to this?

Re: IIS Host Headers With * in DNS by jcochran

jcochran
Wed Mar 03 16:04:52 CST 2004

On 3 Mar 2004 12:19:43 -0800, ajnews@capitex.se (Andreas Johansson)
wrote:

>Hi,
>
>I'd like to setup the following. I have a website (lets call it
>isnice.com) and I want to add a subdomain for each user that
>registers.
>
>To avoid lots and lots of manual labour I set it up in the DNS as
>following:
>
>* IN A 10.0.0.1
>
>Ie, all requests that has anything to do with isnice.com will end up
>at my IP.
>
>Now, to IIS, I don't want to have to set up each subdomain as Host
>Header in IIS. What I would like to do is assign *.isnice.com to a
>hostheader and then determine programatically which domain is called
>with the server variable HTTPHOST.
>
>But IIS is refusing me to use any wildcards in Host Headers. Does
>anyone have a solution to this?

Don't use host headers. What you're trying to do is effectively have
any request to the IP address defined in your DNS processed by a
single web site page that will branch based on the header. That's
what IIS does normally if you don't use any host headers.

Jeff

Re: IIS Host Headers With * in DNS by ajnews

ajnews
Fri Mar 05 02:24:12 CST 2004

jcochran.nospam@naplesgov.com (Jeff Cochran) wrote in message news:<404d563a.1819613796@msnews.microsoft.com>...
> On 3 Mar 2004 12:19:43 -0800, ajnews@capitex.se (Andreas Johansson)
> wrote:
>
> >Hi,
> >
> >I'd like to setup the following. I have a website (lets call it
> >isnice.com) and I want to add a subdomain for each user that
> >registers.
> >
> >To avoid lots and lots of manual labour I set it up in the DNS as
> >following:
> >
> >* IN A 10.0.0.1
> >
> >Ie, all requests that has anything to do with isnice.com will end up
> >at my IP.
> >
> >Now, to IIS, I don't want to have to set up each subdomain as Host
> >Header in IIS. What I would like to do is assign *.isnice.com to a
> >hostheader and then determine programatically which domain is called
> >with the server variable HTTPHOST.
> >
> >But IIS is refusing me to use any wildcards in Host Headers. Does
> >anyone have a solution to this?
>
> Don't use host headers. What you're trying to do is effectively have
> any request to the IP address defined in your DNS processed by a
> single web site page that will branch based on the header. That's
> what IIS does normally if you don't use any host headers.
>
> Jeff

That would normally work fine. The only problem is that there are
already sites on that IP address that I'm not allowed to tamper with.