Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 13 Apr 2006 18:07:54 +0200
From:      Fabian Keil <freebsd-listen@fabiankeil.de>
To:        Josh Paetzel <josh@tcbug.org>
Cc:        questions@freebsd.org
Subject:   Re: /etc/hosts isn't being read
Message-ID:  <20060413180754.11a8aa61@localhost>
In-Reply-To: <200604131055.19504.josh@tcbug.org>
References:  <200604131055.19504.josh@tcbug.org>

next in thread | previous in thread | raw e-mail | index | archive | help
--Sig_Rv=2wGoTiOYy+dbeFb=2hJd
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: quoted-printable

Josh Paetzel <josh@tcbug.org> wrote:

> I have a stock 6.0-RELEASE box that doesn't seem to be=20
> reading /etc/hosts
>=20
> In /etc/hosts I have:
>=20
> 192.168.1.101 example example.example.org
>=20
> /etc/nsswitch.conf is stock:
>=20
> group: compat
> group_compat: nis
> hosts: files dns
> networks: files
> passwd: compat
> passwd_compat: nis
> shells: files
>=20
> $ host example
> Host example not found: 3(NXDOMAIN)
>=20
> $ host example.example.org
> Host example not found 3(NXDOMAIN)

Did host ever query /etc/hosts?
=20
> What am I doing wrong here that is keeping /etc/hosts from being read?

Does ping ignore /etc/hosts as well?

fk@TP51 ~ $host localhost
Host localhost not found: 3(NXDOMAIN)
fk@TP51 ~ $ping localhost
PING localhost (127.0.0.1): 56 data bytes
64 bytes from 127.0.0.1: icmp_seq=3D0 ttl=3D64 time=3D0.383 ms
^C
--- localhost ping statistics ---
1 packets transmitted, 1 packets received, 0% packet loss
round-trip min/avg/max/stddev =3D 0.383/0.383/0.383/0.000 ms

Fabian
--=20
http://www.fabiankeil.de/

--Sig_Rv=2wGoTiOYy+dbeFb=2hJd
Content-Type: application/pgp-signature; name=signature.asc
Content-Disposition: attachment; filename=signature.asc

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2.2 (FreeBSD)

iD8DBQFEPndbjV8GA4rMKUQRAi+OAKCwV5El4cD0+UnEesv1OU3K+r6O6wCgyNei
qILe0KlwGu5U/Tigk0zwWRM=
=r9Ep
-----END PGP SIGNATURE-----

--Sig_Rv=2wGoTiOYy+dbeFb=2hJd--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20060413180754.11a8aa61>