Bug 135125
| Summary: | telnet: 0: Name or service not known | ||
|---|---|---|---|
| Product: | Red Hat Enterprise Linux 3 | Reporter: | Mike Batchelor <mike.batchelor> |
| Component: | glibc | Assignee: | Jakub Jelinek <jakub> |
| Status: | CLOSED ERRATA | QA Contact: | Brian Brock <bbrock> |
| Severity: | medium | Docs Contact: | |
| Priority: | medium | ||
| Version: | 3.0 | ||
| Target Milestone: | --- | ||
| Target Release: | --- | ||
| Hardware: | i386 | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | Bug Fix | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2005-05-18 13:59:56 UTC | Type: | --- |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
| Embargoed: | |||
|
Description
Mike Batchelor
2004-10-08 20:34:36 UTC
please provide: $ which telnet and do you have ipv6 enabled? ipv6 is not enabled. Turns out the telnet in my path was /usr/kerberos/bin/telnet, but /usr/bin/telnet returns the same error. I believe this is not a bug in telnet after all, but glibc's gethostbyname(). In fact, it looks like this was broken intentionally in the glibc 2.3 series, for some reason. gethostbyname() no longer resolves undotted decimal addresses, or hexadecimal or octal addresses. It used to, but not anymore. "telnet 0 25" is one of the casualties. Both gethostname ("0") and getaddrinfo ("0", NULL, NULL, &res);
return the same thing as they used to.
So the change is not in glibc.
well, nothing change in the source code of telnet Retested. Works for me on a RHEL3-U3... doh... fell in the trap... tested with /usr/kerberos/bin/telnet (which works) /usr/bin/telnet failed like described in the bug report. With a RHEL3-U4 glibc:
getaddrinfo("0", "25", 0xbfffe250, 0xbfffd9e4) = -2
gai_strerror(-2) = "Name or service not known"
Ok, this seems to be http://sources.redhat.com/bugzilla/show_bug.cgi?id=296 Should be fixed in glibc-2.3.2-95.32. An advisory has been issued which should help the problem described in this bug report. This report is therefore being closed with a resolution of ERRATA. For more information on the solution and/or where to find the updated files, please follow the link below. You may reopen this bug report if the solution does not work for you. http://rhn.redhat.com/errata/RHSA-2005-256.html |