예제 #1
0
def forward_lookup(host):
    """Do a forward lookup on host"""
    addrinfo = asyncdns.forward_lookup([host])
    if not isinstance(addrinfo[host], Exception):
        return set(addr for addr in addrinfo[host])
예제 #2
0
def forward_lookup(host):
    """Do a forward lookup on host"""
    addrinfo = asyncdns.forward_lookup([host])
    if not isinstance(addrinfo[host], Exception):
        return set(addr for addr in addrinfo[host])