Date: 03 Nov 2003 08:31:49 -0500 From: Lowell Gilbert <lgusenet@be-well.ilk.org> To: freebsd-questions@freebsd.org Subject: Re: problem with ssh in 4.9 and /etc/hosts file Message-ID: <44sml5inne.fsf@be-well.ilk.org> In-Reply-To: <3FA5991D.2050007@aracnet.com> References: <3FA5991D.2050007@aracnet.com>
next in thread | previous in thread | raw e-mail | index | archive | help
henry tieman <henryt_NOSPAM@aracnet.com> 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.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?44sml5inne.fsf>