Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
qbasic_forever
· 3y ago · 0 comments
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.
Comments
[–]
francislavoie
3y ago
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...
[–]
klysm
3y ago
I’m initially bothered by browsers doing this but perhaps it’s fine