domain_to_ip: Fix the error when a domain does not respond