Resolver implementation for querying successive authoritative servers to lookup a record, starting from the root nameservers.

AuthorJp Calderone

todo:

   robustify it
   documentation
Class Resolver Resolver implements recursive lookup starting from a specified list of root servers.
Function makePlaceholder Undocumented
Class DeferredResolver Undocumented
Function bootstrap Lookup the root nameserver addresses using the given resolver
Class _DummyController A do-nothing DNS controller. This is useful when all messages received will be responses to previously issued queries. Anything else received will be ignored.
def makePlaceholder(deferred, name): (source)
Undocumented
def bootstrap(resolver, resolverFactory=None): (source)

Lookup the root nameserver addresses using the given resolver

Return a Resolver which will eventually become a root.Resolver instance that has references to all the root servers that we were able to look up.

ParametersresolverThe resolver instance which will be used to lookup the root nameserver addresses. (type: twisted.internet.interfaces.IResolverSimple)
resolverFactoryAn optional callable which returns a resolver instance. It will passed as the resolverFactory argument to Resolver.__init__. (type: callable)
ReturnsA DeferredResolver which will be dynamically replaced with Resolver when the root nameservers have been looked up.
API Documentation for Twisted, generated by pydoctor at 2018-07-14 04:53:34.