Name Resolving bug in Open SSH 3.0.2

Gil Disatnik Jewnix at technohac.com
Sat Dec 8 23:08:00 EST 2001


Hello there,
In OpenSSH 3.0.2p1 there is a strange name resolving bug:

/etc/nsswitch.conf shows:

hosts:          files dns

When I am trying to connect to a host that is in /etc/hosts using the 
hostname, ssh tries to first resolve this name using the dns, regardless to 
the resolve order in /etc/nsswitch.conf, if the dns is timeout or the 
machine is not connected to the Internet at this time - this causes a delay 
of 10 seconds before connecting to a neighbor machine... that's bad.
REMOVING dns from /etc/nsswitch.conf solves this problem, however... 
/etc/nsswitch is there to tell which mechanism to go to first...

What do you say?


Regards

Gil Disatnik
UNIX system/security administrator at netish inc.
www.netish.com

GibsonLP at EFnet
_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_
"Windows NT has detected mouse movement, you MUST restart
your computer before the new settings will take effect, [ OK ]"
--------------------------------------------------------------------
Windows is a 32 bit patch to a 16 bit GUI based on a 8 bit operating
system, written for a 4 bit processor by a 2 bit company which can
not stand 1 bit of competition.
-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-




More information about the openssh-unix-dev mailing list