t.n.c.createResolver(servers=None, resolvconf=None, hosts=None) : function documentation

Part of twisted.names.client View Source

Create and return a Resolver.
ParametersserversIf not None, interpreted as a list of domain name servers to attempt to use. Each server is a tuple of address in str dotted-quad form and int port number. (type: list of (str, int) or None)
resolvconfIf not None, on posix systems will be interpreted as an alternate resolv.conf to use. Will do nothing on windows systems. If None, /etc/resolv.conf will be used. (type: str or None)
hostsIf not None, an alternate hosts file to use. If None on posix systems, /etc/hosts will be used. On windows, C:\windows\hosts will be used. (type: str or None)
Returns (type: IResolver)
API Documentation for Twisted, generated by pydoctor at 2014-05-12 18:27:00.