The getaddrinfo API provides a superset of the info provided by gethostbyname but isn't ipv4 specific.
Attach a file by drag & drop or click to upload