Dave Howorth wrote:
On Sun, 26 Apr 2020 21:54:56 +0200 "Carlos E. R."
wrote: On 26/04/2020 14.52, Ruben Safir wrote:
On 4/26/20 8:02 AM, Carlos E. R. wrote:
The tools "host" or "dig" are designed to test the name servers and ignore the "files", ie, what /etc/hosts say. These tools do not replicate what happens with a normal program that asks the system for a name to IP conversion.
Instead, you test the toolchain with "ping", and then you see that /etc/hosts works perfectly.
dig souldn't ignore the resolver - which is the same library that ping would access.
Yes, it must. It has a precise purpose, documented.
I think there's some confusion about terminology.
dig does not ignore the resolver:
It is as you say a matter of terminology. I would still say 'dig' ignores the resolver, as in the glibc resolver. (which includes nscd and looking at nsswitch.conf, hence optionally /etc/hosts). 'dig' and 'host' both only talk to a nameserver. -- Per Jessen, Zürich (21.1°C) http://www.hostsuisse.com/ - dedicated server rental in Switzerland. -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org