From owner-freebsd-current@FreeBSD.ORG Wed May 28 10:31:15 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 034FD37B401 for ; Wed, 28 May 2003 10:31:15 -0700 (PDT) Received: from storming.org (MG034043.user.veloxzone.com.br [200.165.34.43]) by mx1.FreeBSD.org (Postfix) with SMTP id 4937843F93 for ; Wed, 28 May 2003 10:31:12 -0700 (PDT) (envelope-from fred@storming.org) Received: (qmail 1490 invoked by uid 1000); 28 May 2003 14:31:10 -0300 Date: Wed, 28 May 2003 14:31:10 -0300 From: Fred Souza To: Ceri Davies , Roberto Nunnari , freebsd-current Message-ID: <20030528173110.GA1354@torment.storming.org> References: <3ED4E9CA.8000309@die.supsi.ch> <20030528170804.GA1112@torment.storming.org> <20030528171334.GA28284@submonkey.net> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="d6Gm4EdcadzBjdND" Content-Disposition: inline In-Reply-To: <20030528171334.GA28284@submonkey.net> X-Sender: fred@storming.org 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:31:15 -0000 --d6Gm4EdcadzBjdND Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable > Umm, host(1) looks in the DNS for hostnames, as per the manpage: >=20 > DESCRIPTION > Host looks for information about Internet hosts. It gets this infor= ma- > tion from a set of interconnected servers that are spread across the > world. >=20 > It doesn't use /etc/hosts, just DNS. That's by design. I'm not sure about that. If you read all the way to end of the manpage, you'll see this part too: ENVIRONMENT HOSTALIASES Name of file containing (host alias, full hostna= me) pairs. FILES /etc/resolv.conf See resolver(5). =20 It could mean, then, that if the environment variable HOSTALIASES is NOT set, it'll use only DNS. But then again, you must use a dot at the end of the host if you don't want it to include that by itself. It's weird, however, that src/contrib/bind/bin/host/host.c does not match HOSTALIASES on a grep. Could it mean that (as usual) ISC's documentation makes little sense according to its source, and that you're right and host does not use non-DNS mechanisms at all for name resolution? Fred --=20 "Chemistry professors never die, they just fail to react." --d6Gm4EdcadzBjdND Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.2 (FreeBSD) iD8DBQE+1PJeZNmEsrl+ROERAj8pAJ9n744FRufLkGyK/6+2VuMvntGx4wCfb7FK OEyXsgtMa0e2m3/vQM5PLss= =9kOk -----END PGP SIGNATURE----- --d6Gm4EdcadzBjdND--