Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 20 Oct 2000 23:42:04 -0500 (CDT)
From:      vcardon@siue.edu
To:        dima@unixfreak.org
Cc:        freebsd-questions@freebsd.org
Subject:   Re: /etc/hosts ignored
Message-ID:  <200010210442.XAA04933@cougar.isg.siue.edu>
In-Reply-To: <20001020234158.C7DDE1F21@static.unixfreak.org>
References:  <20001020234158.C7DDE1F21@static.unixfreak.org>

next in thread | previous in thread | raw e-mail | index | archive | help
Hi, sorry about the line length. I am sending these 
messages from a web mail based system, and have
little control over line length.

I have tried pinging skippy. That is how I noticed
the problem in the first place. Could there be some 
other cause?

Thanks,
Victor

Quoting Dima Dorfman <dima@unixfreak.org>:

> > Hi everyone,
>
> Hi.  Please wrap your lines at ~72 characters.
>
> >  I am having a small problem. My it seems that my /etc/hosts file is
> > being ignored. When I try to connect to skippy (192.168.1.1) I get a
> > real IP address.  I have skippy listed in my hosts file. host.conf
> > has hosts before bind. Is there something I\\\'m missing?
>
> How are you checking?  `host`, `nslookup`, and `dig` (maybe a few
> others) contact the DNS servers directly (listed in /etc/resolv.conf).
> They don\'t use /etc/hosts.  If your program uses the gethostbyname()
> library call, /etc/hosts should be checked.  Try `ping skippy` and see
> if that works.
>
> Hope this helps
>
> --
> Dima Dorfman <dima@unixfreak.org>
> Finger dima@unixfreak.org for my public PGP key.
>
> You can never be too thin, too rich, or have too much bandwidth.
>
>
> 



To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200010210442.XAA04933>