Re: system not using hosts file

2008-04-12 Thread Bob Proulx
Brian McKee wrote: > I don't understand why 'host fred' doesn't return 127.0.0.1 Because host is a BIND (Berkeley Internet Name Daemon) command it only reports DNS data from nameservers. /etc/hosts isn't a nameserver and so isn't used. This is also true of the 'dig' command. There are actually

Re: system not using hosts file

2008-04-11 Thread Brian McKee
On 10-Apr-08, at 9:21 PM, Sudev Barar wrote: On 11/04/2008, Bernardo Dal Seno <[EMAIL PROTECTED]> wrote: On 10/04/2008, Bob Cox <[EMAIL PROTECTED]> wrote: On Thu, Apr 10, 2008 at 17:02:14 -0400, Brian McKee ([EMAIL PROTECTED] heb.com) wrote: I don't understand why 'host fred' doesn't return 1

Re: system not using hosts file

2008-04-10 Thread Bob Cox
On Fri, Apr 11, 2008 at 05:17:56 +0200, NN_il_Confusionario ([EMAIL PROTECTED]) wrote: > You probably want > > getent hosts fred > > the man pages for hosts and getent should explain the differences This is something new I learned today - thank you. And.. On Thu, Apr 10, 2008 at 22:15:37 -04

Re: system not using hosts file

2008-04-10 Thread NN_il_Confusionario
On Thu, Apr 10, 2008 at 05:02:14PM -0400, Brian McKee wrote: > ==> host -v fred > Received 97 bytes from 192.168.0.2#53 in 0 ms You probably want getent hosts fred the man pages for hosts and getent should explain the differences -- Chi usa software non libero avvelena anche te. Digli di smett

Re: system not using hosts file

2008-04-10 Thread Douglas A. Tutty
On Thu, Apr 10, 2008 at 05:02:14PM -0400, Brian McKee wrote: > > I don't understand why 'host fred' doesn't return 127.0.0.1 > > ==> host -v fred > Trying "fred.realsubdomain.realdomainname.com" > Trying "fred.realdomainname.com" > Trying "fred" > Host fred not found: 3(NXDOMAIN) > Received 97 by

Re: system not using hosts file

2008-04-10 Thread Sudev Barar
On 11/04/2008, Bernardo Dal Seno <[EMAIL PROTECTED]> wrote: > On 10/04/2008, Bob Cox <[EMAIL PROTECTED]> wrote: > > On Thu, Apr 10, 2008 at 17:02:14 -0400, Brian McKee ([EMAIL PROTECTED]) > wrote: > > > > > > I don't understand why 'host fred' doesn't return 127.0.0.1 > > > I think host perfo

Re: system not using hosts file

2008-04-10 Thread Bernardo Dal Seno
On 10/04/2008, Bob Cox <[EMAIL PROTECTED]> wrote: > On Thu, Apr 10, 2008 at 17:02:14 -0400, Brian McKee ([EMAIL PROTECTED]) 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

Re: system not using hosts file

2008-04-10 Thread Bob Cox
On Thu, Apr 10, 2008 at 17:02:14 -0400, Brian McKee ([EMAIL PROTECTED]) wrote: > > I don't understand why 'host fred' doesn't return 127.0.0.1 > > ==> host -v fred > Trying "fred.realsubdomain.realdomainname.com" > Trying "fred.realdomainname.com" > Trying "fred" > Host fred not found: 3(NXDOMAIN

system not using hosts file

2008-04-10 Thread Brian McKee
I don't understand why 'host fred' doesn't return 127.0.0.1 ==> host -v fred Trying "fred.realsubdomain.realdomainname.com" Trying "fred.realdomainname.com" Trying "fred" Host fred not found: 3(NXDOMAIN) Received 97 bytes from 192.168.0.2#53 in 0 ms ==> cat /etc/hosts 127.0.0.1 l