code: def reset(self):
          
          self.domain = \
              dns.name.Name(dns.name.from_text(socket.gethostname())[1:])
          if len(self.domain) == 0:
              self.domain = dns.name.root
          self.nameservers = []
          self.localhosts = set([
            'localhost',
            'loopback',
            '127.0.0.1',
            '0.0.0.0',
            '::1',
            'ip6-localhost',
            'ip6-loopback',
          ])
          # connected and active network interfaces
          self.interfaces = set()
          self.search = set()
          self.search_patterns = ['www.%s.com', 'www.%s.org', 'www.%s.net', ]
          self.port = 53
          self.timeout = 2.0
          self.lifetime = 30.0
          self.keyring = None
          self.keyname = None
          self.keyalgorithm = dns.tsig.default_algorithm
          self.edns = -1
          self.ednsflags = 0
          self.payload = 0
          self.cache = None
docs: Reset all resolver configuration to the defaults.