From owner-freebsd-questions@FreeBSD.ORG Tue Sep 2 00:08:22 2008 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 1ABB8106567F for ; Tue, 2 Sep 2008 00:08:22 +0000 (UTC) (envelope-from m0rchand@comcast.net) Received: from QMTA09.emeryville.ca.mail.comcast.net (qmta09.emeryville.ca.mail.comcast.net [76.96.30.96]) by mx1.freebsd.org (Postfix) with ESMTP id 022BC8FC14 for ; Tue, 2 Sep 2008 00:08:21 +0000 (UTC) (envelope-from m0rchand@comcast.net) Received: from OMTA07.emeryville.ca.mail.comcast.net ([76.96.30.59]) by QMTA09.emeryville.ca.mail.comcast.net with comcast id 9bhK1a0091GXsucA9bsM7Y; Mon, 01 Sep 2008 23:52:21 +0000 Received: from [10.0.1.200] ([76.122.47.225]) by OMTA07.emeryville.ca.mail.comcast.net with comcast id 9bsH1a00E4rWgJL8TbsJ3A; Mon, 01 Sep 2008 23:52:18 +0000 X-Authority-Analysis: v=1.0 c=1 a=fbxrShT4b_12Lk9pyJoA:9 a=4qTenWm516_Lg9G_b0mF55J74SUA:4 a=50e4U0PicR4A:10 Message-Id: <7A686BAC-2F03-4B18-8307-83DDAD949625@comcast.net> From: Tom Marchand To: freebsd-questions@freebsd.org Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit Mime-Version: 1.0 (Apple Message framework v926) Date: Mon, 1 Sep 2008 19:52:16 -0400 X-Mailer: Apple Mail (2.926) Subject: /etc/hosts X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 02 Sep 2008 00:08:22 -0000 Hi, I've got an issue where hosts defined in my /etc/hosts are not being resolved. I've looked at resolv.conf, host.conf and nsswitch.conf and everything looks ok. It's my understanding that with the below configurations, /etc/hosts should be used first then DNS. Correct? This is a 6.1 system. host# cat resolv.conf local domain nameserver x.x.x.x cat host.conf # Auto-generated from nsswitch.conf, do not edit hosts dns host# cat nsswitch.conf group: compat group_compat: nis hosts: files dns networks: files passwd: compat passwd_compat: nis shells: files