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