This is the mail archive of the
glibc-bugs@sourceware.org
mailing list for the glibc project.
[Bug libc/2099] Support for SRV records in getaddrinfo
- From: "quentusrex at gmail dot com" <sourceware-bugzilla at sourceware dot org>
- To: glibc-bugs at sources dot redhat dot com
- Date: Sun, 9 Jan 2011 11:08:10 +0000
- Subject: [Bug libc/2099] Support for SRV records in getaddrinfo
- Auto-submitted: auto-generated
- References: <bug-2099-131@http.sourceware.org/bugzilla/>
http://sourceware.org/bugzilla/show_bug.cgi?id=2099
William King <quentusrex at gmail dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |quentusrex at gmail dot com
--- Comment #5 from William King <quentusrex at gmail dot com> 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.