On Mon, 27 Apr 2020 13:36:16 +0200
"Carlos E. R."
On 27/04/2020 12.28, 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:
man dig: "Unless it is told to query a specific name server, dig will try each of the servers listed in /etc/resolv.conf."
I meant in the sense of ignoring or not using /etc/hosts. And of course, it can be told to directly query dns servers not listed in resolv.conf.
But that has nothing to do with the resolver. It doesn't ignore the resolver, unless you tell it to. But the resolver does not use /etc/nsswitch.conf Selectively quoting my references does not make things clearer!!!!!!!
man dig: "Unless it is told to query a specific name server, dig will try each of the servers listed in /etc/resolv.conf. If no usable server addresses are found, dig will send the query to the local host."
-- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org