Date: Thu, 11 Sep 2008 22:49:00 +0200 From: David Naylor <naylor.b.david@gmail.com> To: freebsd-questions@freebsd.org Subject: /etc/hosts not working Message-ID: <200809112249.05138.naylor.b.david@gmail.com>
next in thread | raw e-mail | index | archive | help
--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--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200809112249.05138.naylor.b.david>