get_ip_by_host just looks for v4 addresses, and returns nothing if the host only has a v6 address.
get_ip_by_host just looks for v4 addresses, and returns nothing if the host only has a v6 address.