Date: Wed, 28 May 2003 14:31:10 -0300 From: Fred Souza <fred@storming.org> To: Ceri Davies <setantae@submonkey.net>, Roberto Nunnari <nunnari@die.supsi.ch>, freebsd-current <freebsd-current@freebsd.org> Subject: Re: /etc/hosts completely ignored Message-ID: <20030528173110.GA1354@torment.storming.org> In-Reply-To: <20030528171334.GA28284@submonkey.net> References: <3ED4E9CA.8000309@die.supsi.ch> <20030528170804.GA1112@torment.storming.org> <20030528171334.GA28284@submonkey.net>
next in thread | previous in thread | raw e-mail | index | archive | help
--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--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20030528173110.GA1354>