From owner-freebsd-current@FreeBSD.ORG Wed May 28 10:22:06 2003 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 66E2B37B401 for ; Wed, 28 May 2003 10:22:06 -0700 (PDT) Received: from mail.westbend.net (ns1.westbend.net [216.47.253.3]) by mx1.FreeBSD.org (Postfix) with ESMTP id 60AD543FA3 for ; Wed, 28 May 2003 10:22:05 -0700 (PDT) (envelope-from hetzels@westbend.net) Received: from Admin02 (admin02.westbend.net [216.47.253.19]) by mail.westbend.net (8.12.9/8.12.9) with SMTP id h4SHLuV4036926; Wed, 28 May 2003 12:21:56 -0500 (CDT) (envelope-from hetzels@westbend.net) Message-ID: <066101c3253d$a4dfa9a0$13fd2fd8@Admin02> From: "Scot W. Hetzel" To: "Roberto Nunnari" , "freebsd-current" References: <3ED4E9CA.8000309@die.supsi.ch> Date: Wed, 28 May 2003 12:21:57 -0500 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2800.1158 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165 X-Virus-Scanned: by amavisd-milter (http://amavis.org/) Subject: Re: /etc/hosts completely ignored X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 28 May 2003 17:22:06 -0000 From: "Roberto Nunnari" > -bash-2.05b# cat /etc/hosts > 127.0.0.1 localhost.noonlights.net localhost > 192.168.1.5 jupiter.noonlights.net jupiter > 192.168.1.5 jupiter.noonlights.net. > 193.5.56.6 www.freebsd.org myfreebsd > > note the wrong IP for www.freebsd.org!! just for testing purposes! > > -bash-2.05b# cat /etc/host.conf > hosts > bind > > > -bash-2.05b# host localhost > Host not found. > > -bash-2.05b# host localhost.noonlights.net > Host not found. > > See? /etc/hosts is completely ignored.. > > If I missed something, I'd be grateful if somebody could > let me know... for I'm new to /etc/nsswitch.conf.. but after > reading the manpage I have no clue left.. just an idea that > is a bug.. > I get the same results on 4-STABLE with the "host" command. Looking at the host man pages, it states host does the lookups using domain servers. host - look up host names using domain server Try ping, telnet, ftp, or ssh, as they should consult the hosts table before checking with a domain servers. Scot