From owner-freebsd-questions Fri Oct 20 16:42: 1 2000 Delivered-To: freebsd-questions@freebsd.org Received: from static.unixfreak.org (static.unixfreak.org [63.198.170.139]) by hub.freebsd.org (Postfix) with ESMTP id 749A137B479 for ; Fri, 20 Oct 2000 16:41:59 -0700 (PDT) Received: by static.unixfreak.org (Postfix, from userid 1000) id C7DDE1F21; Fri, 20 Oct 2000 16:41:58 -0700 (PDT) Subject: Re: /etc/hosts ignored In-Reply-To: <200010202317.SAA29110@cougar.isg.siue.edu> "from vcardon@siue.edu at Oct 20, 2000 06:17:32 pm" To: vcardon@siue.edu Date: Fri, 20 Oct 2000 16:41:58 -0700 (PDT) Cc: freebsd-questions@freebsd.org From: Dima Dorfman Reply-To: dima@unixfreak.org X-Mailer: ELM [version 2.4ME+ PL82 (25)] MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=US-ASCII Message-Id: <20001020234158.C7DDE1F21@static.unixfreak.org> Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.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 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