I want to create a website where users who sign up are able to get a subdomain on my main domain a la blogspot.com (ex. user.mywebsite.com)

I really don't know how to get about doing this. I guess this will involve DNS. Here is some more info about my requirement.

  1. Don't need to set up an IIS website either.
  2. I want an app that would route the subdomain to a folder inside the directory.

Would this be done using an ISAPI DLL? some DNS magic? What?

All clues will be welcome and helpful.

Thanks

Accepted Answer

You probably want to look at wildcard DNS and then check whether the website really exists in your application. Setting each one up in IIS would be a bit messy.

http://en.wikipedia.org/wiki/Wildcard_DNS_record

Written by Adam Pope
This page was build to provide you fast access to the question and the direct accepted answer.
The content is written by members of the stackoverflow.com community.
It is licensed under cc-wiki