Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 11 Sep 2008 23:41:17 -0400
From:      Sahil Tandon <sahil@tandon.net>
To:        David Naylor <naylor.b.david@gmail.com>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: /etc/hosts not working
Message-ID:  <20080912034117.GA48495@shepherd>
In-Reply-To: <200809112249.05138.naylor.b.david@gmail.com>
References:  <200809112249.05138.naylor.b.david@gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
David Naylor <naylor.b.david@gmail.com> 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 <sahil@tandon.net>



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