From owner-freebsd-current@FreeBSD.ORG Wed May 28 10:08:13 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 34FDE37B401 for ; Wed, 28 May 2003 10:08:13 -0700 (PDT) Received: from storming.org (MG034043.user.veloxzone.com.br [200.165.34.43]) by mx1.FreeBSD.org (Postfix) with SMTP id 3B6A743F85 for ; Wed, 28 May 2003 10:08:10 -0700 (PDT) (envelope-from fred@storming.org) Received: (qmail 1197 invoked by uid 1000); 28 May 2003 14:08:04 -0300 Date: Wed, 28 May 2003 14:08:04 -0300 From: Fred Souza To: Roberto Nunnari Message-ID: <20030528170804.GA1112@torment.storming.org> References: <3ED4E9CA.8000309@die.supsi.ch> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="/9DWx/yDrRhgMJTb" Content-Disposition: inline In-Reply-To: <3ED4E9CA.8000309@die.supsi.ch> X-Sender: fred@storming.org cc: freebsd-current Subject: Re: /etc/hosts completely ignored X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: fred@storming.org 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:08:13 -0000 --/9DWx/yDrRhgMJTb Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable [snip] > -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 [snip] > -bash-2.05b# cat /etc/nsswitch.conf > hosts: files dns >=20 >=20 > -bash-2.05b# cat /etc/host.conf > hosts > bind >=20 >=20 > -bash-2.05b# cat /etc/resolv.conf > domain noonlights.net > nameserver 195.190.166.166 > nameserver 195.190.166.167 >=20 > -bash-2.05b# host localhost > Host not found. >=20 > -bash-2.05b# host localhost.noonlights.net > Host not found. I think it's host-related. I have a similar setup muself, although I'm currently running 5.1-BETA (sources as of around midnight 28/05/03 GMT-3). If I try `host localhost`, I get Host not found, too. But if I try `host localhost.`, it finds that host fine. Have you tried `host localhost.noonlights.net.` or even `host localhost.`? I think it might be because host forces the inclusion of its domainname at the end of the argument if it's not dot-ended. The rest of the output you pasted suggests that I'm right about this, and thus it _is_ a host's fault. I agree that we should fix our base code, but I support the idea of reporting that to ISC, so they can merge the changes to their codebase instead. Fred --=20 "idiot box, n: The part of the envelope that tells a person where to place the stamp when they can't quite figure it out for themselves." -- "Sniglets", Rich Hall & Friends --/9DWx/yDrRhgMJTb Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.2 (FreeBSD) iD8DBQE+1Oz0ZNmEsrl+ROERAgMqAJ43xTvcWRf0G+mg20uBf9MO9aEm1wCgiz3W /DpVknzlTtLb0M2s9nGIYos= =1kCL -----END PGP SIGNATURE----- --/9DWx/yDrRhgMJTb--