I am creating a website that will run on IIS 6 and will have a lot of subdomains. I wanted to find a method to use wildcard subdomains, but IIS doesn't seem to support this. I only have one IP address, and host other sites on the same server so I can't dedicate an IP to this site and do the subdomain redirection programmatically.
I have created a wildcard A record in my DNS zone so abc.domain.com, xyz.domain.com, whatever.domain.com, anything.domain.com, etc will all resolve to the IP of my IIS server.
I need to find a way to programmatically add host headers for new subdomains to the site in IIS. For example, I want to be able to have a setup script that I can use to add subdomains without having to manually add the host headers in IIS.
It seems like there must be a way to modify the host headers assigned to a particular IIS website using VBScript, but I'm striking out trying to find it.