This is the mail archive of the
glibc-bugs@sourceware.org
mailing list for the glibc project.
[Bug libc/3425] New: gethostbyname() with RES_USE_INET6 breaks with CNAME records
- From: "arjones at simultan dot dyndns dot org" <sourceware-bugzilla at sourceware dot org>
- To: glibc-bugs at sources dot redhat dot com
- Date: 25 Oct 2006 20:25:55 -0000
- Subject: [Bug libc/3425] New: gethostbyname() with RES_USE_INET6 breaks with CNAME records
- Reply-to: sourceware-bugzilla at sourceware dot org
Running Fedora Core 5 with all the latest patches, including glibc-2.4-11. When
resolving a host with gethostbyname() and res.options |= RES_USE_INET6,
everything works fine unless the name being resolved is a CNAME. Examples:
RES_USE_INET6 not set, gethostbyname("smtprelay.t-online.de") performs an A
record lookup, and receives a CNAME record response ("fmrlallmx.t-online.com")
and additional A records with the first few names of the many A records for
fmrlallmx.t-online.com. The function returns these addresses to the application.
RES_USE_INET6 set, gethostbyname("fmrlallmx.t-online.com") performs a AAAA
record lookup, receives a negative reply, and subsequently performs an A record
lookup, returning the results to the application as IPv4-mapped IPv6 addresses.
RES_USE_INET6 set, gethostbyname("smtprelay.t-online.de") performs a AAAA record
lookup, receives a CNAME response ("fmrlallmx.t-online.com", as usual) with no
additional records, and stops there, returning NULL to the application.
--
Summary: gethostbyname() with RES_USE_INET6 breaks with CNAME
records
Product: glibc
Version: 2.4
Status: NEW
Severity: normal
Priority: P2
Component: libc
AssignedTo: drepper at redhat dot com
ReportedBy: arjones at simultan dot dyndns dot org
CC: glibc-bugs at sources dot redhat dot com
GCC build triplet: i686-pc-linux-gnu
GCC host triplet: i686-pc-linux-gnu
GCC target triplet: i686-pc-linux-gnu
http://sourceware.org/bugzilla/show_bug.cgi?id=3425
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.