Reputation: 13723
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.
Would this be done using an ISAPI DLL? some DNS magic? What?
All clues will be welcome and helpful.
Thanks
Upvotes: 1
Views: 2619
Reputation: 28325
Maybe this can help? It's about settingg up a wildcard for sub domains. You can then check the Uri.Host property to figure out which subdomain was asked for.
Upvotes: 1
Reputation: 3274
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
Upvotes: 2