We've inherited the following website setup:
- one main website and around 130 secondary websites, which all point to the main website domain (through a CNAME DNS setup);
- Website is hosted on an IIS 6 server;
- The code is the same for all websites;
- The 130 secondary websites display almost the same content as the main website, with some unique differences, specific to each domain;
- The content is served based on the domain name. I mean, the backed reads the browser's web address and serves content accordingly.
Currently the 130 web domains don't work without www.
Setting each of the 130 domains DNS with an A Name pointing to the IP address of the main website didn't work. This results in lost of the original domain, therefore the main website is served.
Is a purely DNS setup solution possible?
Is there a straight forward solution that doesn't require 131 versions of the same code and 131 different IP addresses?
I'm primarily a front end developer, all of this DNS/server setup is a bit out of my comfort zone so apologies if some of this description makes no sense and please let me know if you require further info. Thank you kindly in advance.
For the record (ah!), these are the DNS records allowed by our provider Star: