Date: Mon, 13 Aug 2018 09:44:32 -0500 From: Valeri Galtsev <galtsev@kicp.uchicago.edu> To: freebsd-questions@freebsd.org Subject: Re: name resolution puzzle Message-ID: <fa0d41e7-5684-f2d3-7caf-da51f475891f@kicp.uchicago.edu> In-Reply-To: <403d5d4b-a342-947b-069d-149f1f8232e9@FreeBSD.org> References: <5cbb1cc0-8e3f-2736-755e-d182abfd90e6@kicp.uchicago.edu> <403d5d4b-a342-947b-069d-149f1f8232e9@FreeBSD.org>
next in thread | previous in thread | raw e-mail | index | archive | help
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 ++++++++++++++++++++++++++++++++++++++++
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?fa0d41e7-5684-f2d3-7caf-da51f475891f>