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
Subject: /etc/hosts not working * PGP Signed: 09/11/08 at 13:49:05 Hi, I am trying to redirect a URL request to a different address but it appears that /etc/hosts is not doing the job. Example

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

/etc/hosts not working

2008-09-11 Thread David Naylor
Hi, 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 th