|  | 
        
          | __init__(self,
        filename= '/etc/resolv.conf',
        configure=True)Initialize a resolver instance.
 | source code |  | 
    |  | 
        
          | reset(self) Reset all resolver configuration to the defaults.
 | source code |  | 
    |  |  | 
    |  |  | 
    |  | 
        
          | _config_win32_nameservers(self,
        nameservers) Configure a NameServer registry entry.
 | source code |  | 
    |  | 
        
          | _config_win32_domain(self,
        domain) Configure a Domain registry entry.
 | source code |  | 
    |  | 
        
          | _config_win32_search(self,
        search) Configure a Search registry entry.
 | source code |  | 
    |  | 
        
          | _config_win32_fromkey(self,
        key) Extract DNS info from a registry key.
 | source code |  | 
    |  | 
        
          | read_registry(self) Extract resolver configuration from the Windows registry.
 | source code |  | 
    |  | 
        
          | _win32_is_nic_enabled(self,
        lm,
        guid,
        interface_key) | source code |  | 
    |  |  | 
    | dns.resolver.Answer instance | 
        
          | query(self,
        qname,
        rdtype=1,
        rdclass=1,
        tcp=False,
        source=None,
        raise_on_no_answer=True,
        source_port=0) Query nameservers to find the answer to the question.
 | source code |  | 
    |  | 
        
          | use_tsig(self,
        keyring,
        keyname=None,
        algorithm=<DNS name HMAC-MD5.SIG-ALG.REG.INT.>) Add a TSIG signature to the query.
 | source code |  | 
    |  |  | 
    |  |  | 
  
    | Inherited from object:__delattr__,__format__,__getattribute__,__hash__,__new__,__reduce__,__reduce_ex__,__repr__,__setattr__,__sizeof__,__str__,__subclasshook__ | 
    | 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.
 |