Home | Trees | Indices | Help |
|
---|
|
object --+ | Resolver
DNS stub resolver
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
dns.resolver.Answer instance |
|
||
|
|||
|
|||
|
|||
Inherited from |
|
|||
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 |
||
int |
flags The message flags to use. |
||
string |
keyalgorithm The TSIG key algorithm to use. |
||
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. |
||
bool |
retry_servfail should we retry a nameserver if it says SERVFAIL? The default is 'false'. |
||
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. |
|
|||
Inherited from |
|
Initialize a resolver instance.
|
Process f as a file in the /etc/resolv.conf format. If f is a string, it is used as the name of the file to open; otherwise it is treated as the file itself. |
Query nameservers to find the answer to the question. The qname, rdtype, and rdclass parameters may be objects of the appropriate type, or strings that can be converted into objects of the appropriate type. E.g. For rdtype the integer 2 and the the string 'NS' both mean to query for records with DNS rdata type NS.
|
Add a TSIG signature to the query.
|
Configure Edns.
|
Overrides the default flags with your own
|
|
cacheThe cache to use. The default is None.
|
ednsThe EDNS level to use. The default is -1, no Edns.
|
flagsThe message flags to use. The default is None (i.e. not overwritten)
|
keyalgorithmThe TSIG key algorithm to use. The default is dns.tsig.default_algorithm.
|
keynameThe TSIG keyname to use. The default is None.
|
keyringThe TSIG keyring to use. The default is None.
|
lifetimeThe total number of seconds to spend trying to get an answer to the question. If the lifetime expires, a Timeout exception will occur.
|
nameserversA list of nameservers to query. Each nameserver is a string which contains the IP address of a nameserver.
|
payloadThe EDNS payload size. The default is 0.
|
portThe port to which to send queries. The default is 53.
|
searchThe search list. If the query name is a relative name, the resolver will construct an absolute query name by appending the search names one by one to the query name.
|
Home | Trees | Indices | Help |
|
---|
Generated by Epydoc 3.0.1 on Fri May 27 09:13:38 2016 | http://epydoc.sourceforge.net |