4 ms·
On modern systemd-based Linux systems that use its systemd-resolved DNS resolver it automatically forwards all *.localhost traffic to your local host. It works
by qbasic_forever 3y ago
On modern systemd-based Linux systems that use its systemd-resolved DNS resolver it automatically forwards all *.localhost traffic to your local host. It works great with caddy for local development and testing of services.
- francislavoie 3y agoYep! And some browsers now hard-coded resolve *.localhost to ::1 by default, so you often don't need any resolver at all. See https://dev.to/k4ml/firefox-and-chrome-resolve-any-localhost-domain-localhost-to-loopback-address-26d9 https://dev.to/k4ml/firefox-and-chrome-resolve-any-localhost...
- klysm 3y agoI’m initially bothered by browsers doing this but perhaps it’s fine