Bug 2121 - telnet is unable to resolve hostnames
telnet is unable to resolve hostnames
Status: CLOSED CURRENTRELEASE
Product: Red Hat Linux
Classification: Retired
Component: telnet (Show other bugs)
6.0
i386 Linux
medium Severity high
: ---
: ---
Assigned To: Cristian Gafton
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 1999-04-11 05:28 EDT by Pekka Pietikäinen
Modified: 2008-05-01 11:37 EDT (History)
0 users

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 1999-04-11 17:21:03 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)

  None (edit)
Description Pekka Pietikäinen 1999-04-11 05:28:53 EDT
connecting (pp):~ >telnet evil.netppl.fi
Trying 0.0.0.0...
Connected to evil.netppl.fi.
Escape character is '^]'.

Red Hat Linux release 5.9.7 (Starbuck)

(so it connects to localhost instead, works fine when
using a IP address)

here's the ltrace output
inet_aton("evil", 0xbffff65c)                     = 0
gethostbyname("evil")                             =
0x40145ab0
strncpy(0x08057a40, "evil.netppl.fi", 64)         =
0x08057a40
__bzero(0xbffff658, 16, 0xbffff6f8, 1, 0)         = 0
getservbyname(0x0805433e, 0x08054324, 0xbffff6f8, 1, 0) =
0x40145bd0
inet_ntoa(NULL)                                   =
"0.0.0.0"
printf("Trying %s...\r\n", "0.0.0.0"Trying 0.0.0.0...
Comment 1 Jeff Johnson 1999-04-11 17:21:59 EDT
Fixed in telnet-0.10-26.

Note You need to log in before you can comment on or make changes to this bug.