From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 27692 invoked by alias); 9 Feb 2013 08:50:38 -0000 Received: (qmail 27527 invoked by uid 48); 9 Feb 2013 08:50:19 -0000 From: "gauryogesh.nsit at gmail dot com" 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: Sat, 09 Feb 2013 08:50: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-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: gauryogesh.nsit at gmail dot com X-Bugzilla-Status: NEW X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: unassigned at sourceware dot org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Changed-Fields: CC Message-ID: In-Reply-To: References: X-Bugzilla-URL: http://sourceware.org/bugzilla/ Auto-Submitted: auto-generated Content-Type: text/plain; charset="UTF-8" MIME-Version: 1.0 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 X-SW-Source: 2013-02/txt/msg00045.txt.bz2 http://sourceware.org/bugzilla/show_bug.cgi?id=14308 Yogesh Gaur changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |gauryogesh.nsit at gmail | |dot com --- Comment #1 from Yogesh Gaur 2013-02-09 08:50:17 UTC --- Hello All, This issue is coming because of both message type of T_A and T_AAAA are being send in parallel for processing through api _nss_dns_gethostbyname4_r(). Actually following conditions happens before coming this issue: 1> Receive request of type T_A, creating session table entry. T_A -- Host address This is non-referral response and would create its own session table entry. 2> Receive request of type T_AAAA on port x, reusing session table entry from #1 T_AAAA -- Ip6 Address This is referral response and would reuse previous created session table entry. 3> Respond to T_AAAA request on port x and remove session table entry. 4> Load-balancer receives response from DNS server for T_A request, but since session table entry is gone, it simply forwards the traffic. Client receives a reply from a different IP not from the IP it expects and simply ignores it. 5> This then lead to message failure and returns with error-code as EAI_NODATA i.e. No address associated with hostname. This issue is only coming with some bad DNS server as they are not able to process the request correctly. There is no proper fix for this is yet been released by glibc and this bug is being reported from glibc-2.9. I found this link which contains patch information using which work-around for this issue can be applied. http://sourceware.org/bugzilla/show_bug.cgi?id=7060 -- 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.