Subject: bin/10604: telnet(1) tries to reverse-lookup destination, adds delay on connection
To: None <gnats-bugs@gnats.netbsd.org>
From: None <itojun@itojun.org>
List: netbsd-bugs
Date: 07/17/2000 19:21:49
>Number:         10604
>Category:       bin
>Synopsis:       telnet(1) tries to reverse-lookup destination, adds delay on connection
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    bin-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sat Jul 15 22:56:00 PDT 2000
>Closed-Date:
>Last-Modified:
>Originator:     Jun-ichiro itojun Hagino
>Release:        1.4.2, 1.5_ALPHA and current
>Organization:
	itojun.org
>Environment:
System: NetBSD lychee.itojun.org 1.4.2 NetBSD 1.4.2 (LYCHEE.v6) #1027: Sun Jul 16 13:06:34 JST 2000 itojun@lychee.itojun.org:/export/home/itojun/k/kame/netbsd/sys/arch/i386/compile/LYCHEE.v6 i386


>Description:
	usr.bin/telnet/commands.c:tn() tries to reverse lookup the final
	destination (gethostbyaddr), if the destination is specified by
	numeric (like 127.0.0.1).  the behavior is from IPv4-only days.
	KAME tried to preserve all the behavior so IPv4/v6 code calls
	getnameinfo().
	the behavior adds too long delay on outbound connection if:
	- we have no nameserver yet, and/or
	- we specify numeric destination to avoid lookup
>How-To-Repeat:
	try
	% telnet 127.0.0.1
	with no nameserver.
>Fix:
	not sure...  "-n" is already taken.
>Release-Note:
>Audit-Trail:
>Unformatted: