Logo Search packages:      
Sourcecode: namebench version File versions  Download package

def libnamebench::health_checks::NameServerHealthChecks::CheckCensorship (   self,
  tests 
) [inherited]

Check to see if results from a nameserver are being censored.

Definition at line 197 of file health_checks.py.

00197                                   :
     """Check to see if results from a nameserver are being censored."""
     for (check, expected) in tests:
       (req_type, req_name) = check.split(' ')
       expected_values = expected.split(',')
       result = self.TestAnswers(req_type.upper(), req_name, expected_values,
                                 timeout=self.health_timeout * CENSORSHIP_TIMEOUT_MULTIPLIER)
       warning = result[1]
       if warning:
         self.warnings.add(warning)

  def CheckHealth(self, sanity_checks=None, fast_check=False, final_check=False):


Generated by  Doxygen 1.6.0   Back to index