From owner-freebsd-questions@freebsd.org Fri Aug 3 22:20:27 2018 Return-Path: Delivered-To: freebsd-questions@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 84246105319B for ; Fri, 3 Aug 2018 22:20:27 +0000 (UTC) (envelope-from roberthuff@rcn.com) Received: from smtp.rcn.com (smtp.rcn.com [69.168.97.78]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 2F93677F4E for ; Fri, 3 Aug 2018 22:20:27 +0000 (UTC) (envelope-from roberthuff@rcn.com) X_CMAE_Category: , , X-CNFS-Analysis: v=2.2 cv=e9pEcuh/ c=1 sm=1 tr=0 a=9TgA2UwI6Wy+6BV4wQM/cQ==:117 a=9TgA2UwI6Wy+6BV4wQM/cQ==:17 a=KGjhK52YXX0A:10 a=kj9zAlcOel0A:10 a=XRQyMpdBKAEA:10 a=dapMudl6Dx4A:10 a=48faUk6PgeAA:10 a=7hNMySir0P3K9clhoDsA:9 a=CjuIK1q_8ugA:10 X-CM-Score: 0 X-Scanned-by: Cloudmark Authority Engine X-Authed-Username: cm9iZXJ0aHVmZkByY24uY29t Authentication-Results: smtp02.rcn.cmh.synacor.com smtp.mail=roberthuff@rcn.com; spf=softfail; sender-id=softfail Authentication-Results: smtp02.rcn.cmh.synacor.com header.from=roberthuff@rcn.com; sender-id=softfail Authentication-Results: smtp02.rcn.cmh.synacor.com smtp.user=roberthuff; auth=pass (PLAIN) Received-SPF: softfail (smtp02.rcn.cmh.synacor.com: transitional domain rcn.com does not designate 209.6.230.48 as permitted sender) Received: from [209.6.230.48] ([209.6.230.48:36822] helo=jerusalem.litteratus.org.litteratus.org) by smtp.rcn.com (envelope-from ) (ecelerity 3.6.25.56547 r(Core:3.6.25.0)) with ESMTPSA (cipher=AES256-GCM-SHA384) id 5D/0E-18484-470D46B5; Fri, 03 Aug 2018 18:00:20 -0400 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <23396.53361.507981.528518@jerusalem.litteratus.org> Date: Fri, 3 Aug 2018 18:00:17 -0400 From: Robert Huff To: Valeri Galtsev Cc: FreeBSD Mailing List Subject: name resolution puzzle In-Reply-To: <5cbb1cc0-8e3f-2736-755e-d182abfd90e6@kicp.uchicago.edu> References: <5cbb1cc0-8e3f-2736-755e-d182abfd90e6@kicp.uchicago.edu> X-Mailer: VM 8.2.0b under 26.1 (amd64-portbld-freebsd12.0) X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.27 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 03 Aug 2018 22:20:27 -0000 Valeri Galtsev writes: > I just noticed some behavior of commands "host" and "nslookup" that > puzzles me. Namely, they do not query /etc/hosts file first, but query > nameserver instead, even though nsswitch.conf order is "files dns": ... > Can someone enlighten me on this? What is the content of /etc/host.conf, and does its usage apply here? Respectfully, Robert Huff