Merge get_ip_addresses and find_addresses_for_hostname