| Method Summary |
| |
__init__(self,
filename,
configure)
Initialize a resolver instance. |
| dns.resolver.Answer instance
|
query(self,
qname,
rdtype,
rdclass,
tcp)
Query nameservers to find the answer to the question. |
| |
read_registry(self)
Extract resolver configuration from the Windows registry. |
| |
read_resolv_conf(self,
f)
Process f as a file in the /etc/resolv.conf format. |
| |
reset(self)
Reset all resolver configuration to the defaults. |
| |
use_edns(self,
edns,
ednsflags,
payload)
Configure Edns. |
| |
use_tsig(self,
keyring,
keyname)
Add a TSIG signature to the query. |
| |
_compute_timeout(self,
start)
|
| |
_config_win32_domain(self,
domain)
Configure a Domain registry entry. |
| |
_config_win32_fromkey(self,
key)
Extract DNS info from a registry key. |
| |
_config_win32_nameservers(self,
nameservers)
Configure a NameServer registry entry. |
| |
_config_win32_search(self,
search)
Configure a Search registry entry. |
| |
_determine_split_char(self,
entry)
|
| Inherited from object |
| |
__delattr__(...)
x.__delattr__('name') <==> del x.name |
| |
__getattribute__(...)
x.__getattribute__('name') <==> x.name |
| |
__hash__(x)
x.__hash__() <==> hash(x) |
| |
__new__(T,
S,
...)
T.__new__(S, ...) -> a new object with type S, a subtype of T |
| |
__reduce__(...)
helper for pickle |
| |
__reduce_ex__(...)
helper for pickle |
| |
__repr__(x)
x.__repr__() <==> repr(x) |
| |
__setattr__(...)
x.__setattr__('name', value) <==> x.name = value |
| |
__str__(x)
x.__str__() <==> str(x) |
| Instance Variable Summary |
| dns.resolver.Cache object |
cache: The cache to use. |
| dns.name.Name object |
domain: The domain of this host |
| int |
edns: The EDNS level to use. |
| int |
ednsflags: The EDNS flags |
| dns.name.Name object |
keyname: The TSIG keyname to use. |
| dict |
keyring: The TSIG keyring to use. |
| float |
lifetime: The total number of seconds to spend trying to get an answer to the
question. |
| list of strings |
nameservers: A list of nameservers to query. |
| int |
payload: The EDNS payload size. |
| int |
port: The port to which to send queries. |
| list of dns.name.Name objects |
search: The search list. |
| float |
timeout: The number of seconds to wait for a response from a server, before
timing out. |