From owner-freebsd-questions@FreeBSD.ORG Mon Nov 3 05:31:50 2003 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id EA80716A4CE for ; Mon, 3 Nov 2003 05:31:50 -0800 (PST) Received: from be-well.no-ip.com (lowellg.ne.client2.attbi.com [66.30.200.37]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4F24D43FB1 for ; Mon, 3 Nov 2003 05:31:50 -0800 (PST) (envelope-from lgusenet@be-well.ilk.org) Received: by be-well.no-ip.com (Postfix, from userid 1147) id 91AB93B05; Mon, 3 Nov 2003 08:31:49 -0500 (EST) Sender: lowell@be-well.ilk.org To: freebsd-questions@freebsd.org References: <3FA5991D.2050007@aracnet.com> From: Lowell Gilbert Date: 03 Nov 2003 08:31:49 -0500 In-Reply-To: <3FA5991D.2050007@aracnet.com> Message-ID: <44sml5inne.fsf@be-well.ilk.org> Lines: 33 User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.3 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Subject: Re: problem with ssh in 4.9 and /etc/hosts file X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 03 Nov 2003 13:31:51 -0000 henry tieman writes: > I have a small home network, 2 machines, both running FreeBSD 4.9. One > with fixed IP address running ppp with NAT and a DHCP server and the > other machine is a DHCP client. Both machines have the standard > host.conf file and a /etc/hosts file that only differs on the > localhost line. The standard host.conf file tells the network to use > the /etc/hosts file first before trying DNS. I do not want to run a > DNS server on my local network. > > When I'm connected using PPP - ssh from the DHCP server to the client > has no pause. > > When I'm not dialed up - the ssh connection from server to client is > very slow. There's about a 75 sec wait before the password prompt. > Client to client also has the pause w/o ppp running. But server to > server and client to server are fast. > > I think I've traced it down to a call to getnameinfo() in sshd. There > are 3 (or more) implementations of this function in the source for > FreeBSD 4.9. All versions I've found of getnameinfo() call > gethostbyaddr() - which has 2 (or more) versions in the source. At > least one doesn't read /etc/host.conf and only makes calls to DNS. The > one in contrib/bind is evil. Yes, it is compiled in /usr/obj. No, I > don't know if it's linked with sshd - that requires another makeworld > which is running now. > > There are two work arounds for using ssh without recompiling so I'm > not too worried. But I don't have sendmail setup to the outside so I > can't create a problem report. A problem report isn't appropriate. What you need is that *both* of the machines have /etc/hosts entries for the other machine.