more portable name to address resolution strategy

Drop Socket::GetAddrInfo usage, relying on Socket module if recent
enough to resolve IPv6 and IPv4 addresses, with a fallback on legacy
gethostbyname/inet_ntoa functions otherwise.