This is the mail archive of the glibc-bugs@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug libc/2099] Support for SRV records in getaddrinfo


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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]