Implements interfaces: twisted.internet.interfaces.IResolverSimple

A resolver implementation based on a dict mapping names to addresses.

Method __init__ Undocumented
Method getHostByName Return the address mapped to name if it exists, or raise a DNSLookupError.
def __init__(self, names):
Undocumented
def getHostByName(self, name, timeout):

Return the address mapped to name if it exists, or raise a DNSLookupError.

ParametersnameThe name to resolve.
timeoutThe lookup timeout, ignore here.
API Documentation for twisted, generated by pydoctor at 2020-03-25 17:34:30.