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
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
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
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
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
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
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
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
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
9 matches
Mail list logo