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 network/14308] getaddrinfo DNS referral response returns host not found when A and AAAA questions are sent and one response is a referral


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.


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