public inbox for glibc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug network/15218] New: getaddrinfo uses PTR records for canonname if address family specified
@ 2013-03-01  6:20 ghudson at mit dot edu
  2013-03-01 19:56 ` [Bug network/15218] " bugdal at aerifal dot cx
                   ` (7 more replies)
  0 siblings, 8 replies; 9+ messages in thread
From: ghudson at mit dot edu @ 2013-03-01  6:20 UTC (permalink / raw)
  To: glibc-bugs

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

             Bug #: 15218
           Summary: getaddrinfo uses PTR records for canonname if address
                    family specified
           Product: glibc
           Version: unspecified
            Status: NEW
          Severity: normal
          Priority: P2
         Component: network
        AssignedTo: unassigned@sourceware.org
        ReportedBy: ghudson@mit.edu
    Classification: Unclassified


Created attachment 6909
  --> http://sourceware.org/bugzilla/attachment.cgi?id=6909
Test program demonstrating getaddrinfo issue

With today's master, getaddrinfo with AI_CANONNAME yields the right
ai_canonname (the result of CNAME resolution but not PTR lookup) if no other
hint fields are given.  However, if hint.ai_family is set to INET6, it appears
to do a PTR lookup.  The attached test program demonstrates the problem (the
first and third output lines in particular):

$ ./a.out ptr-mismatch.kerberos.org
AI_CANONNAME alone: www.kerberos.org
AI_ADDRCONFIG also: www.kerberos.org
ai_family AF_INET : KERBEROS-ORG.MIT.EDU
ai_family AF_INET6: Name or service not known

-- 
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.


^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2014-06-13 18:46 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-03-01  6:20 [Bug network/15218] New: getaddrinfo uses PTR records for canonname if address family specified ghudson at mit dot edu
2013-03-01 19:56 ` [Bug network/15218] " bugdal at aerifal dot cx
2013-03-02  6:30 ` ghudson at mit dot edu
2013-03-02  6:51 ` ghudson at mit dot edu
2013-03-02  7:12 ` ghudson at mit dot edu
2013-10-17 14:36 ` schwab@linux-m68k.org
2014-02-16 19:41 ` jackie.rosen at hushmail dot com
2014-05-28 19:41 ` schwab at sourceware dot org
2014-06-13 18:46 ` fweimer at redhat dot com

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).