This is the mail archive of the
glibc-bugs@sourceware.org
mailing list for the glibc project.
[Bug network/15218] New: getaddrinfo uses PTR records for canonname if address family specified
- From: "ghudson at mit dot edu" <sourceware-bugzilla at sourceware dot org>
- To: glibc-bugs at sourceware dot org
- Date: Fri, 01 Mar 2013 06:19:38 +0000
- Subject: [Bug network/15218] New: getaddrinfo uses PTR records for canonname if address family specified
- Auto-submitted: auto-generated
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.