Bug 215283
Summary: | gethostbyname() fails to resolve "localhost" in FC6 | ||||||
---|---|---|---|---|---|---|---|
Product: | [Fedora] Fedora | Reporter: | Tim <ack210t> | ||||
Component: | glibc | Assignee: | Jakub Jelinek <jakub> | ||||
Status: | CLOSED RAWHIDE | QA Contact: | Brian Brock <bbrock> | ||||
Severity: | medium | Docs Contact: | |||||
Priority: | medium | ||||||
Version: | 6 | CC: | drepper | ||||
Target Milestone: | --- | ||||||
Target Release: | --- | ||||||
Hardware: | All | ||||||
OS: | Linux | ||||||
Whiteboard: | |||||||
Fixed In Version: | 2.5.90-7 | Doc Type: | Bug Fix | ||||
Doc Text: | Story Points: | --- | |||||
Clone Of: | Environment: | ||||||
Last Closed: | 2006-11-20 16:30:50 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: | |||||||
Attachments: |
|
Description
Tim
2006-11-13 09:01:01 UTC
Created attachment 141024 [details]
C code to demonstrate problem
Same here and a couple other people I know have had the same problem. Tested with the standard resoveip localhost Tobias This isn't really a bug. The hosts file specifies an IPv6 address and gethostbyname() queries for an IPv4 address. The result is a failure by design. However, there is no problem to change this. It won't break anything and prevent user mistakes like this from causing problems. I've changed the cvs archive upstream, the change will be in the next rawhide build. But take this as an indication that the program which has this problem is broken. Every program should simply use getaddrinfo() and now of the getby* crap. This is in glibc-2.5.90-7 in rawhide. |