public inbox for glibc-bugs@sourceware.org
help / color / mirror / Atom feed
From: "atsushi at onoe dot org" <sourceware-bugzilla@sourceware.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	[thread overview]
Message-ID: <bug-14308-131-ACFwK245Kb@http.sourceware.org/bugzilla/> (raw)
In-Reply-To: <bug-14308-131@http.sourceware.org/bugzilla/>

http://sourceware.org/bugzilla/show_bug.cgi?id=14308

--- Comment #3 from Atsushi Onoe <atsushi at onoe dot org> ---
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.


  parent reply	other threads:[~2013-05-29  2:04 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-06-29  5:28 [Bug network/14308] New: " law at redhat dot com
2012-08-13  1:04 ` [Bug network/14308] " phattanon at nettree dot co.th
2013-02-09  8:50 ` gauryogesh.nsit at gmail dot com
2013-05-29  2:03 ` atsushi at onoe dot org
2013-05-29  2:04 ` atsushi at onoe dot org [this message]
2014-04-15 16:08 ` siddhesh at redhat dot com
2014-04-30  6:23 ` cvs-commit at gcc dot gnu.org
2014-04-30  6:37 ` siddhesh at redhat dot com
2014-04-30  6:38 ` siddhesh at redhat dot com
2014-06-18  4:28 ` fweimer at redhat dot com

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=bug-14308-131-ACFwK245Kb@http.sourceware.org/bugzilla/ \
    --to=sourceware-bugzilla@sourceware.org \
    --cc=glibc-bugs@sourceware.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).