This is the mail archive of the
glibc-bugs@sourceware.org
mailing list for the glibc project.
[Bug libc/13027] New: resolver fails when using option rotate with a single IPv6 nameserver
- From: "aurelien at aurel32 dot net" <sourceware-bugzilla at sourceware dot org>
- To: glibc-bugs at sources dot redhat dot com
- Date: Mon, 25 Jul 2011 22:03:31 +0000
- Subject: [Bug libc/13027] New: resolver fails when using option rotate with a single IPv6 nameserver
- Auto-submitted: auto-generated
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.