From owner-freebsd-questions@FreeBSD.ORG Thu Sep 11 21:05:20 2008 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 3CBE8106566C for ; Thu, 11 Sep 2008 21:05:20 +0000 (UTC) (envelope-from naylor.b.david@gmail.com) Received: from qb-out-0506.google.com (qb-out-0506.google.com [72.14.204.235]) by mx1.freebsd.org (Postfix) with ESMTP id E08208FC1E for ; Thu, 11 Sep 2008 21:05:19 +0000 (UTC) (envelope-from naylor.b.david@gmail.com) Received: by qb-out-0506.google.com with SMTP id f30so724290qba.35 for ; Thu, 11 Sep 2008 14:05:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:from:organization:to:subject :date:user-agent:mime-version:content-type:content-transfer-encoding :message-id; bh=96AxQ8QsWqbpYU4PBAlQEqWAyeukkyttKvpkbsH9fD8=; b=Xu8D13vATKnNEPX4l+MdTYzB9bsHIn+OoTGo8NrB36TkGsdEr1y6npSx9qzlarUcBB wsAVxOZFKXaQ3S/wrNKmMIC2STYg2cIieqFhneqm4x0Ic/KmcWRa7/stb+RSvon6euQx RA8Vb/RGWw2px62Zr8oy6cg1ENyWph/dBkDR8= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=from:organization:to:subject:date:user-agent:mime-version :content-type:content-transfer-encoding:message-id; b=pNbmphboThQlXy5dIESfUuEF15rLEfZxMYJ8NmBzkIDL1N4aLdSm7n1IZaqUGI/1cB UqT7J72k29e9lHV3rxsYjylhU3az9j6ZUzRfFd/DKL2em3oDUzzugHstBJPJHMMh9js+ LvgqFAiu9Xe7ICHZBwcilQLGzeYIc70BwcoZQ= Received: by 10.210.24.7 with SMTP id 7mr3853718ebx.178.1221166170124; Thu, 11 Sep 2008 13:49:30 -0700 (PDT) Received: from ?0.0.0.0? ( [196.34.241.123]) by mx.google.com with ESMTPS id u14sm3454007gvf.6.2008.09.11.13.49.26 (version=TLSv1/SSLv3 cipher=RC4-MD5); Thu, 11 Sep 2008 13:49:28 -0700 (PDT) From: David Naylor Organization: Private To: freebsd-questions@freebsd.org Date: Thu, 11 Sep 2008 22:49:00 +0200 User-Agent: KMail/1.9.7 MIME-Version: 1.0 Content-Type: multipart/signed; boundary="nextPart1282935.vR4G7cChB5"; protocol="application/pgp-signature"; micalg=pgp-sha1 Content-Transfer-Encoding: 7bit Message-Id: <200809112249.05138.naylor.b.david@gmail.com> Subject: /etc/hosts not working 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, 11 Sep 2008 21:05:20 -0000 --nextPart1282935.vR4G7cChB5 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Hi, I am trying to redirect a URL request to a different address but it appears= =20 that /etc/hosts is not doing the job. Example: 127.0.0.1 google.com The way I understand it is that by typing google.com in a web browser it=20 should result in the local page being displayed. It instead goes to the=20 proper Google page. =20 `ping google.com' actually pings 127.0.0.1 but `host google' returns the=20 actual IP addresses for google. =20 /etc/nsswitch.conf has `hosts: files dns' and host.conf has `hosts\n dns' Any idea why the system calls are not honouring /etc/hosts? Regards David --nextPart1282935.vR4G7cChB5 Content-Type: application/pgp-signature; name=signature.asc Content-Description: This is a digitally signed message part. -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.4 (FreeBSD) iD8DBQBIyYRBUaaFgP9pFrIRApxGAJ9dY7yA+hHLhcN9cJl6rqWNNqd2xgCeNyNe uX8m4k8TRR9OhFmi2GLLPhI= =Pkh9 -----END PGP SIGNATURE----- --nextPart1282935.vR4G7cChB5--