Re: system not using hosts file
On 11/04/2008, Bernardo Dal Seno <dibbex@gmail.com> wrote:
> On 10/04/2008, Bob Cox <debian-user@lists.bobcox.com> wrote:
> > On Thu, Apr 10, 2008 at 17:02:14 -0400, Brian McKee (map@map-heb.com) wrote:
> > >
> > > I don't understand why 'host fred' doesn't return 127.0.0.1
>
>
> I think host performs a DNS lookup, so maybe it bypasses the file
> hosts altogether. ping, as Bob
> Cox suggested, should be a better test.
That is correct as output below shows:
sudev@sudev-804:~$ host localhost
localhost.selfip.org has address 210.24.115.116
sudev@sudev-804:~$ ping localhost
PING localhost (127.0.0.1) 56(84) bytes of data.
64 bytes from localhost (127.0.0.1): icmp_seq=1 ttl=64 time=0.061 ms
64 bytes from localhost (127.0.0.1): icmp_seq=2 ttl=64 time=0.056 ms
--
Regards,
Sudev Barar
Read http://blog.sudev.in for topics ranging from here to there.
Reply to: