I want to access the application www.testsite.com using different wildcard Sub-domain such as :
abc.testsite.com
xyz.testsite.com
I have installed IIS Express 10 on windows 10 Machine and followed below steps:
Created an simple Asp.net MVC web application and published in local folder
Added an website in local IIS as www.testsite.com
Mapped the website to the published folder.
Added binding as *.testsite.com
Edited host file with 127.0.0.1 www.testsite.com and 127.0.0.1 *.testsite.com
Now I am able to access www.testsite.com but not using any other sub domains
Am I missing anything ?
You can add wildcard entry on IIS, but you have to specify the list of subdomains that you are going to map. Ultimately host file will not support any wildcard entry.