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])