This is the mail archive of the glibc-bugs@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug libc/13027] New: resolver fails when using option rotate with a single IPv6 nameserver


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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]