On Monday 07 April 2003 6:51 pm, Brad Shelton wrote:
On Mon, Apr 07, 2003 at 07:06:18PM +0200, Anders Johansson wrote:
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.
Thanks to all on this. I think we have pinned down what is going on. But I would say that OS/2 and M$ telnet do not exhibit the behaviour. Presumably the GNU/Linux sources for telnet are so rooted in history that no-one dare suggest a change.... regards Vince Littler