Hacker News new | ask | show | jobs
by qbasic_forever 1054 days 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.
1 comments

Yep! 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...
I’m initially bothered by browsers doing this but perhaps it’s fine