You need to check if a domain exists or resolve an IP address before making an HTTP request.
Some of these tools include: