Re: Needless DNS queries
On Wed, Jun 08, 2022 at 12:56:52AM +0000, Lee wrote:
> host and dig are non-standard. or use non-standard name lookups? library??
> In any case, try your example with ping or ssh - the search list will
> be applied after the initial NXDOMAIN
On Debian, the canonical tool for performing generic hostname lookups
according to the rules established by /etc/nsswitch.conf and other
local system config files would be:
getent hosts NAME
unicorn:~$ getent hosts www.google.com.
2607:f8b0:4009:80b::2004 www.google.com
unicorn:~$ host www.google.com
www.google.com has address 142.250.190.100
www.google.com has IPv6 address 2607:f8b0:4009:80b::2004
(Demonstrating the difference between canonical and useful. My system
has no IPv6 capability.)
Reply to: