From owner-freebsd-questions Fri Oct 20 21:44: 6 2000 Delivered-To: freebsd-questions@freebsd.org Received: from mail.isg.siue.edu (mail.isg.siue.edu [146.163.5.4]) by hub.freebsd.org (Postfix) with ESMTP id 01B8D37B4C5 for ; Fri, 20 Oct 2000 21:44:03 -0700 (PDT) Received: from cougar.isg.siue.edu (cougar [146.163.5.29]) by mail.isg.siue.edu (8.9.1/8.9.1) with ESMTP id XAA08021; Fri, 20 Oct 2000 23:42:04 -0500 (CDT) Received: (from nobody@localhost) by cougar.isg.siue.edu (8.9.1/8.9.1) id XAA04933; Fri, 20 Oct 2000 23:42:04 -0500 (CDT) Date: Fri, 20 Oct 2000 23:42:04 -0500 (CDT) From: vcardon@siue.edu Message-Id: <200010210442.XAA04933@cougar.isg.siue.edu> X-Authentication-Warning: cougar.isg.siue.edu: nobody set sender to vcardon@siue.edu using -f To: dima@unixfreak.org Reply-To: vcardon@siue.edu Cc: freebsd-questions@freebsd.org References: <20001020234158.C7DDE1F21@static.unixfreak.org> In-Reply-To: <20001020234158.C7DDE1F21@static.unixfreak.org> MIME-Version: 1.0 Content-Type: text/plain Content-Transfer-Encoding: 8bit User-Agent: IMP/PHP3 Imap webMail Program 2.0.11 X-Originating-IP: 24.17.229.11 Subject: Re: /etc/hosts ignored Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG 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 : > > 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 > 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