3 ms·
Chrome and i think Firefox resolve all <name>.localhost domains to localhost per default, so you don't have to add them to the hosts file. I setup a docker prox
by jFriedensreich 2y ago
Chrome and i think Firefox resolve all <name>.localhost domains to localhost per default, so you don't have to add them to the hosts file. I setup a docker proxy on port 80 that resolves all requests from <containername>.localhost to the first exposed port of that container (in order of appearing in the docker compose file) automatically which makes everything smooth without manual steps for docker compose based setups.
- breck 2y ago[dead]
- globular-toast 2y agoSource for this? Are you sure it's not your system resolver doing it?
- kbolino 2y agoIt's probably both. Browsers now have built-in DoH so they usually do their own resolving. Only if you disable "secure DNS" (or you use group policies) will you fall back to the system resolver anymore.
- TingPing 2y agoThere is a draft spec over it, Ill find it later, but they do hardcode it now and never touch dns.
- jFriedensreich 2y agoPretty sure its hard coded in the browser and never touches any resolvers. It does not work the same in safari for example.