twisted.names.client.createResolver(servers=None, resolvconf=None, hosts=None) function documentationtwisted.names.client
View Source
Create and return a Resolver.
| Parameters | servers | If 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) |
| resolvconf | If 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) | |
| hosts | If 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) | |