7 Apr
2003
7 Apr
'03
17:06
On Monday 07 April 2003 18:23, Vince Littler wrote:
But the question remains, is there not a small bug inherent in this in that the destination address should be checked for being an IP address or a URL, and DNS only invoked for a URL?
After actually looking at the source, I see the reason. telnet does a getaddrinfo with the AI_CANONNAME set, which does at least a reverse name lookup. telnet itself doesn't try to parse the address very much. It looks like that's where the call to dns comes from. Maybe you could call it a bug or a buglet or an unwanted feature. If you have more than one machine you should have either host file entries or a local dns anyway.