3 ms·
> There's really no way to win here. Sure there is. Consulting the local hosts file isn't contacting the configured caching DNS server, so there is no SHOULD o
by dragonwriter 6y ago
> There's really no way to win here.
Sure there is. Consulting the local hosts file isn't contacting the configured caching DNS server, so there is no SHOULD or SHOULD NOT violated by consulting hosts and then defaulting 127.0.0.1 if a more specific address in the loopback address range is not provided.
(Relying on a system-level name resolution API also isn't contacting the caching DNS server, and if that API behaves according to spec, including potentially relying on local resources loke hosts but not remote DNS servers for localhost domains, that would also work.)
- bzbarsky 6y ago> Consulting the local hosts file isn't contacting the configured caching DNS server Sure, see my comment at https://news.ycombinator.com/item?id=25439154 https://news.ycombinator.com/item?id=25439154 > and if that API behaves according to spec, including potentially relying on local resources loke hosts but not remote DNS servers for localhost domains But does it?