From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 13031 invoked by alias); 29 May 2013 02:04:12 -0000 Mailing-List: contact glibc-bugs-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Post: List-Help: , Sender: glibc-bugs-owner@sourceware.org Received: (qmail 12993 invoked by uid 48); 29 May 2013 02:04:09 -0000 From: "atsushi at onoe dot org" To: glibc-bugs@sourceware.org Subject: [Bug network/14308] getaddrinfo DNS referral response returns host not found when A and AAAA questions are sent and one response is a referral Date: Wed, 29 May 2013 02:04:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: glibc X-Bugzilla-Component: network X-Bugzilla-Version: 2.15 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: atsushi at onoe dot org X-Bugzilla-Status: NEW X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: unassigned at sourceware dot org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-Bugzilla-URL: http://sourceware.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2013-05/txt/msg00251.txt.bz2 http://sourceware.org/bugzilla/show_bug.cgi?id=14308 --- Comment #3 from Atsushi Onoe --- Comment on attachment 7049 --> http://sourceware.org/bugzilla/attachment.cgi?id=7049 Proposed patch to handle DNS responding referral for AAAA If there is at least one correct response within parallel query, it should be used, just like the case of SERVFAIL/NOTIMP/REFUSED. Actually, the code to skip referral response already exists in glibc since 2.4. Unfortunately, the parallel query code via _nss_dns_gethostbyname4_r() is inserted without adopting the issue. I think the label next_ns in send_dg() should be moved before checking another response of parallel query. Attached patch works properly to get 'A' record from the DNS respond referral response for 'AAAA' query. -- You are receiving this mail because: You are on the CC list for the bug.