def resolve(host, mask=None):
    try:
        hostname, aliases, addresses = socket.gethostbyname_ex(str(host))
    except socket.gaierror as why:
        raise ValueError("Unable to resolve host: %s" % (why[1]))
    if addresses:
        return IPv4(addresses[0], mask)
    else:
        raise ValueError("No addresses found.")
Return the symmetric difference of two sets as a new set.
dataset/ETHPy150Open kdart/pycopia/core/pycopia/ipv4.py/resolve--crossover with--dataset/ETHPy150Open azoft-dev-team/imagrium/env/Lib/sets.py/BaseSet.symmetric_difference