From owner-freebsd-questions@FreeBSD.ORG Fri Sep 12 03:41:21 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 D81501065671 for ; Fri, 12 Sep 2008 03:41:21 +0000 (UTC) (envelope-from sahil@tandon.net) Received: from aegis.hamla.org (aegis.hamla.org [206.251.255.39]) by mx1.freebsd.org (Postfix) with ESMTP id C2AA98FC0C for ; Fri, 12 Sep 2008 03:41:21 +0000 (UTC) (envelope-from sahil@tandon.net) Received: from localhost (localhost [127.0.0.1]) by aegis.hamla.org (Postfix) with ESMTP id 5EFB95C71; Thu, 11 Sep 2008 23:41:31 -0400 (EDT) X-Virus-Scanned: by ClamAV at aegis.hamla.org Received: from aegis.hamla.org ([127.0.0.1]) by localhost (aegis.hamla.org [127.0.0.1]) (amavisd-new, port 10024) with LMTP id DnU0f1R1EzRm; Thu, 11 Sep 2008 23:41:29 -0400 (EDT) Date: Thu, 11 Sep 2008 23:41:17 -0400 From: Sahil Tandon To: David Naylor Message-ID: <20080912034117.GA48495@shepherd> References: <200809112249.05138.naylor.b.david@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200809112249.05138.naylor.b.david@gmail.com> Cc: freebsd-questions@freebsd.org Subject: Re: /etc/hosts not working X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: "freebsd-questions@freebsd.org" List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 12 Sep 2008 03:41:21 -0000 David Naylor wrote: > I am trying to redirect a URL request to a different address but it > appears 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 should result in the local page being displayed. It instead goes > to the proper Google page. Which browser? Works fine here; might be a browser cache issue. > `ping google.com' actually pings 127.0.0.1 but `host google' returns > the actual IP addresses for google. This means both ping and host are working as designed. -- Sahil Tandon