> `ping google.com' actually pings 127.0.0.1 but `host google' returns
> the actual IP addresses for google.
ping will resolve the name using the mecanism defined in
/etc/nsswitch.conf, usually:
hosts: files dns nis
try first /etc/hosts, then DNS, then NIS
But host(1) command is designed
David Naylor <[EMAIL PROTECTED]> 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
Hello David:
_
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of
David Naylor
Sent: Thursday, September 11, 2008 1:49 PM
To: freebsd-questions@freebsd.org
Subje
David Naylor <[EMAIL PROTECTED]> writes:
> 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 l