query = dns.message.make_query(nameECS, 'TXT', 'IN')
self.sendECSQuery(query, expected2)
- return # remove this line to peek at cache
+ if not "PEEK_AT_CACHE" in os.environ: # set to peek at cache
+ return
+
rec_controlCmd = [os.environ['RECCONTROL'],
'--config-dir=%s' % 'configs/' + self._confdir,
'dump-cache', 'x']
query = dns.message.make_query(nameECS, 'TXT', 'IN')
self.sendECSQuery(query, expected2)
- return #remove this line to peek at cache
+ if not "PEEK_AT_CACHE" in os.environ: # set to peek at cache
+ return
+
rec_controlCmd = [os.environ['RECCONTROL'],
'--config-dir=%s' % 'configs/' + self._confdir,
'dump-cache y']