getaddrinfo: use the modules servent and hostent.