Re: /etc/hosts not working

2008-09-11 Thread Olivier Nicole
> `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

Re: /etc/hosts not working

2008-09-11 Thread Sahil Tandon
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

RE: /etc/hosts not working

2008-09-11 Thread Michael K. Smith - Adhost
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

Re: /etc/hosts not working

2008-09-11 Thread Lowell Gilbert
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