| Summary: | gethostbyname() can return duplicate addresses | ||
|---|---|---|---|
| Product: | Red Hat Enterprise Linux 5 | Reporter: | Jonathan Peatfield <j.s.peatfield> |
| Component: | glibc | Assignee: | Jeff Law <law> |
| Status: | CLOSED NOTABUG | QA Contact: | qe-baseos-tools-bugs |
| Severity: | low | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | 5.7 | CC: | fweimer, mfranc |
| Target Milestone: | rc | ||
| Target Release: | --- | ||
| Hardware: | All | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | Bug Fix | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2012-03-01 06:25:02 UTC | Type: | --- |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
|
Description
Jonathan Peatfield
2012-02-29 12:26:43 UTC
I believe that the 'new' behaviour is also present in the latest glibc in EL6.2, but I have not tested that myself. Sorry I forgot to mention that we are actually running on Scientific Linux 5.7 but it is hard to see that this won't also affect RHEL customers since the glibc would be built from the same srpms. I've been unable to recreate your desired behavior, even after installing a fresh version of Red Hat Enterprise Linux 5.6 with glibc-2.5-58.el5_6.4 which reportedly has the desired behaviour. The returning multiple entries, including duplicates has been the intended behaviour when /etc/host.conf specifies "multi on" since 2000 (glibc-2.1.91). This pre-dates Red Hat Enterprise Linux 3.0. There have been a couple bugs where glibc was not producing the intended behaviour; one occurred when using nscd, the other using the getaddrinfo routine from glibc. Both were fixed in glibc-2.5-65. Given the behaviour you're seeing in the intended behaviour when /etc/host.conf specifies multi on, I'm closing this as NOTABUG. If you have further questions, feel free to add them to this bug report. I'll get notified if you add any comments. |