sometimes WINS resolver don't with gethostbyname2_r and getaddrinfo. add following function to nsswitch/wins.c solve this problem. NSS_STATUS _nss_wins_gethostbyname2_r(const char *name, int af, struct hostent *he, char *buffer, size_t buflen, int *errnop, int *h_errnop) { if(af!=AF_INET){ *h_errnop = NO_DATA; *errnop = EAFNOSUPPORT; return NSS_STATUS_UNAVAIL; } return _nss_wins_gethostbyname_r(name,he,buffer,buflen,errnop,h_errnop); } -------------- next part -------------- 3j?Zr??????y??v?????