import socket


def isResolvable(host):
    """
    Tries to resolve the hostname.

    :param str host: is the hostname from the URL.
    :return: true if succeeds.
    :rtype: bool
    """
    try:
        socket.gethostbyname(host)
    except socket.gaierror:
        return False
    return True