I am facing a dilemma related to another question but not exactly the same.
I want to use IIS Express with a custom URL but without modifying the local HOSTS file.
Specifically, for me, dev.example.com
resolves to 127.0.0.1 using DNS (our DNS is set up so that *.example.com
resolves to 127.0.0.1). This is what I want to use as a project URL. If I add dev.example.com
to my HOSTS file, it works, but if I don't, it doesn't. I'm guessing this is because Visual Studio doesn't recognize this as being a local URL.
Is there a way to not modify the HOSTS file but still use a custom URL like dev.example.com
as a Project Url in Visual Studio with IIS Express?