OpenSSH: sshd reverse lookup for local addresses

From: __PPS__ (i-love-spam_at_yandex.ru)
Date: 10/19/05


Date: 18 Oct 2005 18:38:03 -0700

Hello everybody
I have a problem - I searched newsgroups, forums, web... but nothing
solves my problem

Here's my situation:
I run freebsd4.11(192.168.0.128) as a residential gateway and
winxp(192.168.0.1) on my desktop pc. My internet connection is unstable
and often fails, and in such cases I need to login into freebsd box to
do some stuff, but when internet connection is down I cannot login (I
use putty on winxp - it first waits, and then timesout). I traced with
ethereal udp:53 and found out that there's a reverse lookup for
192.168.0.1 (desktop's ip) and this causes big delay when connection is
down. I tried to search for possible solution; two of them where:
useDNS No in config and -u0 command line options. usedns was illegal
option and -u0 doesn't affect anything - sshd still sends reverse dns
lookup contrary to the docs (I see it from ethereal: -u0 din't prevent
that dns query)

here's more info on my situation:
/etc/hosts
::1 localhost
127.0.0.1 localhost
192.168.0.128 serv1
192.168.0.1 main

/etc/host.conf
hosts
bind

basicly, host.conf tells that gethost* c routines should consult
/etc/hosts first, but it doesn't seem to affect sshd. I also can ping
both boxes by their names and or ips.

Is there's any solution to this problem??

Thank you