From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 13604 invoked by alias); 30 Jul 2014 14:00:53 -0000 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 Received: (qmail 13586 invoked by uid 48); 30 Jul 2014 14:00:49 -0000 From: "brunni at netestate dot de" To: glibc-bugs@sourceware.org Subject: [Bug network/17215] New: getaddrinfo with AI_CANONNAME and AF_INET causes PTR lookup Date: Wed, 30 Jul 2014 14:00:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: glibc X-Bugzilla-Component: network X-Bugzilla-Version: 2.17 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: brunni at netestate dot de X-Bugzilla-Status: NEW X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: unassigned at sourceware dot org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-Bugzilla-URL: http://sourceware.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2014-07/txt/msg00692.txt.bz2 https://sourceware.org/bugzilla/show_bug.cgi?id=17215 Bug ID: 17215 Summary: getaddrinfo with AI_CANONNAME and AF_INET causes PTR lookup Product: glibc Version: 2.17 Status: NEW Severity: normal Priority: P2 Component: network Assignee: unassigned at sourceware dot org Reporter: brunni at netestate dot de getaddrinfo makes a PTR lookup when called with ai_flags = AI_CANONNAME and ai_family = AF_INET: #include #include #include struct addrinfo hints = {.ai_flags = AI_CANONNAME, .ai_family = AF_INET}; int main (int argc, char *argv[]) { struct addrinfo *ap; int err; err = getaddrinfo("netestate.de", "500", &hints, &ap); } This is problematic for me as Javas InetAddress.getByName() works like this on ipv4 systems and causes an unnecessary reverse lookup for every forward lookup. It seems to be fixed in current distributions: https://bugzilla.redhat.com/show_bug.cgi?id=714823 I get the problem when using glibc 2.17 compiled from source. Is this still an issue with glibc 2.19? -- You are receiving this mail because: You are on the CC list for the bug.