15 Aug 2017
So your are working on a website on your local dev machine and maybe you want to run the website in Local IIS with a custom url. You don't want to run it as an application under the default website, you want it to be a website on it's own with a custom url. So you need to get that custom url to point to your localhost, basically 127.0.0.1
Some kind person has set up the domain localtest.me and set the DNS for *.localtest.me to point to 127.0.0.1, so basically it just points to your local machine.
To test it out, you could use the command line to do the following:
You will see it replies from 127.0.0.1. So there is no need to edit your hosts file any more for local development urls.
I was really pleased when I found this out from one of my YouTube subscribers, so I thought I should share it with you.
Please share this with others to let them know about it.
Thanks to brunty and cemerson from the Tech Nottingham Slack Group for pointing out some security concerns with this. They were concerned that the domain owner could point the traffic to a malware site or something like that, which is a valid point, but I trust the person who registered the domain.
If you don't trust the person who set this domain up, you could always register a domain for yourself and point the subdomains to 127.0.0.1 to achieve the same thing.