From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 4426 invoked by alias); 9 Jan 2011 11:08:15 -0000 Received: (qmail 4417 invoked by uid 22791); 9 Jan 2011 11:08:15 -0000 X-SWARE-Spam-Status: No, hits=-2.6 required=5.0 tests=ALL_TRUSTED,AWL,BAYES_00 X-Spam-Check-By: sourceware.org Received: from localhost (HELO sourceware.org) (127.0.0.1) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Sun, 09 Jan 2011 11:08:11 +0000 From: "quentusrex at gmail dot com" To: glibc-bugs@sources.redhat.com Subject: [Bug libc/2099] Support for SRV records in getaddrinfo X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: glibc X-Bugzilla-Component: libc X-Bugzilla-Keywords: X-Bugzilla-Severity: enhancement X-Bugzilla-Who: quentusrex at gmail dot com X-Bugzilla-Status: RESOLVED X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: drepper.fsp at gmail dot com X-Bugzilla-Target-Milestone: --- X-Bugzilla-Changed-Fields: CC Message-ID: In-Reply-To: References: X-Bugzilla-URL: http://sourceware.org/bugzilla/ Auto-Submitted: auto-generated Content-Type: text/plain; charset="UTF-8" MIME-Version: 1.0 Date: Sun, 09 Jan 2011 11:08:00 -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 X-SW-Source: 2011-01/txt/msg00020.txt.bz2 http://sourceware.org/bugzilla/show_bug.cgi?id=2099 William King changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |quentusrex at gmail dot com --- Comment #5 from William King 2011-01-09 11:08:01 UTC --- If: _someserv._tcp.domain has the host name "host2.domain" associated, Then the proper response would be for getaddrinfo() to do a lookup(name to ip) on "host2.domain". Yes, this is more work than usually happens for a getaddrinfo() call, but I think this would be the proper way to handle the srv record support. In file: sysdeps/posix/getaddrinfo.c after the section of code: line 2131: "if (service && service[0])" would be a good place to add the srv record lookup. If we know the service, and we know the protocol, then we should first query for SRV records, and if none are returned, then continue on as the code currently works. But if SRV records are returned, then handle them. Thoughts? -- 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.