Skip the Windows HOSTS file and use something like Acrylic DNS[0], works great for me and supports wildcards.
I even use it together with the router to have my phone use the DNS and you can see which hosts get connected and so on as you use the phone. It ain't pretty.
[0]: https://mayakron.altervista.org/support/acrylic/Home.htm