From owner-freebsd-questions@FreeBSD.ORG Thu Apr 13 16:07:56 2006 Return-Path: X-Original-To: questions@freebsd.org Delivered-To: freebsd-questions@FreeBSD.ORG Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id E32A816A413 for ; Thu, 13 Apr 2006 16:07:56 +0000 (UTC) (envelope-from freebsd-listen@fabiankeil.de) Received: from smtprelay05.ispgateway.de (smtprelay05.ispgateway.de [80.67.18.43]) by mx1.FreeBSD.org (Postfix) with ESMTP id D3A3443D45 for ; Thu, 13 Apr 2006 16:07:55 +0000 (GMT) (envelope-from freebsd-listen@fabiankeil.de) Received: (qmail 2534 invoked from network); 13 Apr 2006 16:07:54 -0000 Received: from unknown (HELO localhost) ([pbs]775067@[217.50.149.43]) (envelope-sender ) by smtprelay05.ispgateway.de (qmail-ldap-1.03) with SMTP for ; 13 Apr 2006 16:07:54 -0000 Date: Thu, 13 Apr 2006 18:07:54 +0200 From: Fabian Keil To: Josh Paetzel Message-ID: <20060413180754.11a8aa61@localhost> In-Reply-To: <200604131055.19504.josh@tcbug.org> References: <200604131055.19504.josh@tcbug.org> X-Mailer: Sylpheed-Claws 2.0.0 (GTK+ 2.8.6; i386-portbld-freebsd6.0) X-PGP-KEY-URL: http://www.fabiankeil.de/gpg-keys/freebsd-listen-2006-08-19.asc Mime-Version: 1.0 Content-Type: multipart/signed; boundary="Sig_Rv=2wGoTiOYy+dbeFb=2hJd"; protocol="application/pgp-signature"; micalg=PGP-SHA1 Cc: questions@freebsd.org Subject: Re: /etc/hosts isn't being read X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 13 Apr 2006 16:07:57 -0000 --Sig_Rv=2wGoTiOYy+dbeFb=2hJd Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable Josh Paetzel 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--