smb_gethostbyname
if ((h = smb_gethostbyname(hostname, &error)) == NULL) {
extern struct hostent *smb_gethostbyname(const char *, int *);
if ((h = smb_gethostbyname(dcname.buf, &rc)) == NULL) {