[Bug 8376] Use getaddrinfo to resolve FQDN