News for hackers. Stuff that matters.
Re:Google adds experimental setting to hide full URLs in Chr... by Spivak on Monday June 15, 2020 @10:21AM (#23527610)
This point merits an explanation. The file /etc/resolv.conf is a configuration file for the `dns` NSS module used by the glibc resolver.

Google's async DNS feature uses Chrome's own internal DNS resolver which doesn't call gethostname(). It would be incorrect for Chrome to parse this file and attempt to "respect" your settings because NSS is a series of black-box system-specific modules. If you removed the dns module from /etc/nsswitch.conf then resolv.conf wouldn't even enter the mix on your system and then Chrome would do the wrong thing. If the dns module behaved differently on your system and /etc/resolv.conf was actually /etc/resolv.json or /etc/resolver.conf then Chrome would again do the wrong thing.

When resolving a name applications have two choices, either look up the name with glibc, send the request through the NSS gauntlet of black-box modules and take whatever it returns of perform the DNS request itself and ignore everything on the system. Any sort of hybrid approach would be more confusing.

Re:Google adds experimental setting to hide full URLs in Chr... by megous on Monday June 15, 2020 @05:41PM (#23533335)
Hmm, so does this mean /etc/hosts will no longer work either, etc.? That's handled by the same glibc function too.