Change gethostbyname calls to getaddrinfo for dual stack support
Merge pull request #11451 from kev009/getaddrinfo

Change gethostbyname calls to getaddrinfo for dual stack support