name resolution puzzle
Valeri Galtsev
galtsev at kicp.uchicago.edu
Mon Aug 13 14:44:39 UTC 2018
On 08/04/18 01:02, Matthew Seaman wrote:
> On 03/08/2018 22:41, Valeri Galtsev wrote:
>> So, it appears, that the commands "host" and "nslookup" go directly to
>> DNS server, and do not look into /etc/hosts first which I have expected.
>
>
> host(1), dig(1), delv(1), drill(1) and nslookup(1) are all specifically
> tools for doing lookups in the DNS. That's the only place they look.
>
> If you want to replicate the full hostname resolution process using all
> the facilities enabled in your nsswitch.conf, use getent(1) like so:
>
> getent hosts freefall.freebsd.org
Thank you, Matthew! I learned something that solves everything for me!
Valeri
>
> Cheers,
>
> Matthew
>
--
++++++++++++++++++++++++++++++++++++++++
Valeri Galtsev
Sr System Administrator
Department of Astronomy and Astrophysics
Kavli Institute for Cosmological Physics
University of Chicago
Phone: 773-702-4247
++++++++++++++++++++++++++++++++++++++++
More information about the freebsd-questions
mailing list