def getHostByName(name, timeout=None, effort=10):
 return getResolver().getHostByName(name, timeout, effort)

def getHostByName ( name , timeout = None , effort = 10 ) : return getResolver ( ) . getHostByName ( name , timeout , effort )
resolve a name to a valid ipv4 or ipv6 address .