[Bug libc/13027] New: resolver fails when using option rotate with a single IPv6 nameserver
aurelien at aurel32 dot net
sourceware-bugzilla@sourceware.org
Mon Jul 25 22:03:00 GMT 2011
http://sourceware.org/bugzilla/show_bug.cgi?id=13027
Summary: resolver fails when using option rotate with a single
IPv6 nameserver
Product: glibc
Version: unspecified
Status: NEW
Severity: normal
Priority: P2
Component: libc
AssignedTo: drepper.fsp@gmail.com
ReportedBy: aurelien@aurel32.net
Host: x86_64-unknown-linux-gnu
Target: x86_64-unknown-linux-gnu
Build: x86_64-unknown-linux-gnu
When resolv.conf contains a single IPv6 nameserver, and the rotate option, the
resolver correctly send the requests, but ignore all the answers.
This is due to the initialization of the maps in res_send.c(__libc_res_nsend).
For IPv6 nameservers, the map is already initialized, so with a single
nameserver, the code creates a second one.
When the rotate option is activated, the nameservers are swapped, which means
the first one is the non-existing one.
A patch to fix that is attached.
--
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
More information about the Glibc-bugs
mailing list