Date: Fri, 20 Oct 2000 16:41:58 -0700 (PDT) From: Dima Dorfman <dima@unixfreak.org> To: vcardon@siue.edu Cc: freebsd-questions@freebsd.org Subject: Re: /etc/hosts ignored Message-ID: <20001020234158.C7DDE1F21@static.unixfreak.org> In-Reply-To: <200010202317.SAA29110@cougar.isg.siue.edu> "from vcardon@siue.edu at Oct 20, 2000 06:17:32 pm"
next in thread | previous in thread | raw e-mail | index | archive | help
> 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?20001020234158.C7DDE1F21>