Mailinglist Archive: opensuse (4165 mails)
| < Previous | Next > |
Re: [SLE] A [different] Telnet problem [SOLVED - but is there a bug?]
- From: Anders Johansson <andjoh@xxxxxxxxxx>
- Date: Mon, 7 Apr 2003 19:06:18 +0200
- Message-id: <200304071906.18695.andjoh@xxxxxxxxxx>
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.
> 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.
| < Previous | Next > |