Bug 14165 - resolv_wrapper doesn't seem to deal with getaddrinfo and getnameinfo
Summary: resolv_wrapper doesn't seem to deal with getaddrinfo and getnameinfo
Alias: None
Product: cwrap
Classification: Unclassified
Component: library (show other bugs)
Version: unspecified
Hardware: All All
: P5 enhancement
Target Milestone: ---
Assignee: Andreas Schneider
QA Contact:
Depends on:
Reported: 2019-10-20 10:27 UTC by Ralph Böhme
Modified: 2019-10-21 06:06 UTC (History)
0 users

See Also:


Note You need to log in before you can comment on or make changes to this bug.
Description Ralph Böhme 2019-10-20 10:27:36 UTC
I guess I'm missing something obvious, but resolv_wrapper only deals with the traditional libresolv interface, not with modern POSIX getaddrinfo/getnameinfo.

It's the first time I actually look into name resolving in Samba and the implemenatation of resolv_wrapper, so I guess I'm missing a key point?
Comment 1 Andreas Schneider 2019-10-20 18:18:20 UTC
getaddrinfo() is handled by nss_wrapper via a hosts file. resolv_wrapper only wraps the functions provided by libresolv().

However nss_wrapper still misses support for nss hosts modules. Once we have that we could write a module which uses resolv_wrappre :-)
Comment 2 Ralph Böhme 2019-10-21 06:06:04 UTC
D'oh! Thanks, I knew I was missing something. :) I was git grepping for getaddrinfo but somehow I must have missed it's presence in nss_wrapper.