gethostinfo
hostres = gethostinfo(hostname, 1);
static struct addrinfo *gethostinfo(char const *host, int exit_on_error);