From owner-freebsd-hackers@FreeBSD.ORG Fri Sep 5 09:29:16 2003 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id E9D9016A4BF for ; Fri, 5 Sep 2003 09:29:16 -0700 (PDT) Received: from oniws.ca (oniws.ca [67.69.49.138]) by mx1.FreeBSD.org (Postfix) with ESMTP id 039A443FD7 for ; Fri, 5 Sep 2003 09:29:16 -0700 (PDT) (envelope-from Dwayne.MacKinnon@xwave.com) Received: from xwave.com ([192.168.0.126]) by oniws.ca (8.12.8p1/8.12.8) with ESMTP id h85GTE0w000478; Fri, 5 Sep 2003 12:29:14 -0400 (EDT) (envelope-from Dwayne.MacKinnon@xwave.com) Message-ID: <3F58B9D6.7040102@xwave.com> Date: Fri, 05 Sep 2003 12:29:10 -0400 From: Dwayne MacKinnon Organization: xwave User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.4) Gecko/20030702 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Ted Faber References: <3F589E94.1080508@xwave.com> <20030905154646.GA59881@rot13.obsecurity.org> <3F58B3F4.3020502@xwave.com> <20030905161030.GC22913@pun.isi.edu> In-Reply-To: <20030905161030.GC22913@pun.isi.edu> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit cc: freebsd-hackers@freebsd.org cc: Kris Kennaway Subject: Re: PUzzling sshd behaviour X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: Dwayne.MacKinnon@xwave.com List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 05 Sep 2003 16:29:17 -0000 Ted Faber wrote: > On Fri, Sep 05, 2003 at 12:04:04PM -0400, Dwayne MacKinnon wrote: > >>That much I know. I was just wondering why the daemon is trying DNS >>lookup when the IP in question is listed in /etc/hosts. I thought >>listings in /etc/hosts would supercede the need for a DNS lookup. Of >>course, I could be wrong... it wouldn't be the first time. :-) > > > If you haven't you need to check out /etc/host.conf , the file that > configures the hostname lookup order (at least on 4.8). > man 5 host.conf will tell you all about it. If you have already > configured this, you might want to look again. (man -k resolver should > help you find whatever it is on 5.x - I suspect it's nsswitch.) My host.conf is a FreeBSD 4.8 default one: it lists hosts, then bind. That's why I don't understand why it's doing DNS... there's a listing in hosts, and according to host.conf the hosts listing should be found first.