On Mon, Apr 07, 2003 at 07:06:18PM +0200, Anders Johansson wrote:
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.
Thank you. I was wondering who'd come to it first. Reverse lookup. Telnet ALWAYS does it. Drives me crazy sometimes, but then again....
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.
You need valid DNS lookups available, or a properly configured hosts file to keep it from checking DNS for the IP Address -> Hostname match. -- Brad Shelton On Line Exchange http://ole.net Phone: 313-526-1111 Fax: 313-526-3333