gethostby* users

Jeremy Allison jra at
Fri Oct 12 18:13:54 GMT 2007

On Fri, Oct 12, 2007 at 11:10:15AM -0700, Ulrich Drepper wrote:
> Hash: SHA1
> Andrew Bartlett wrote:
> > Some parts of the protocol just don't
> > allow for anything but IPv4, but where we can, things are being updated
> > for Samba 3.2.  
> I've pointed out at numerous occasions that getaddrinfo is not for IPv6
> only.  You should always use getaddrinfo, even for IPv4-only situations.
>   See
> The gethostby* interfaces simply don't cut it in today's network anymore.

Yep, I agree. I'm slowly but surely removing all "gethostby*" calls
from Samba3 and replacing with as much protocol independence as
possible (I'm probably going to leave the old wins server/resolver
code alone as that protocol is defined around IPv4 only and can't be moved
to IPv6).


More information about the samba-technical mailing list