Dnia 22.04.2021 o godz. 09:33:04 @lbutlr pisze:
> 
> What? /etc/hosts is processed before DNS, that is how adding adservers to
> /etc/hosts blocks those adservers from being accessed.

At least in Linux, it actually depends on the contents of file
/etc/nsswitch.conf . If there's an entry like "hosts: files dns" in that
file, then /etc/hosts is processed before DNS. If there is "hosts: dns files"
then it's the other way - /etc/hosts file is consulted only when DNS is not
available. It can even be "hosts: dns" in which case /etc/hosts file is not
used at all, or "hosts: files" when only /etc/hosts is used and DNS is not
used at all.
-- 
Regards,
   Jaroslaw Rafa
   r...@rafa.eu.org
--
"In a million years, when kids go to school, they're gonna know: once there
was a Hushpuppy, and she lived with her daddy in the Bathtub."

Reply via email to