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

def libnamebench::health_checks::NameServerHealthChecks::TestNegativeResponse (   self  )  [inherited]

Test for NXDOMAIN hijaaking.

Definition at line 116 of file health_checks.py.

00116                                 :
    """Test for NXDOMAIN hijaaking."""
    is_broken = False
    warning = None
    poison_test = 'nb.%s.google.com.' % random.random()
    (response, duration, error_msg) = self.TimedRequest('A', poison_test,
    if not response:
      is_broken = True
    elif response.answer:
      warning = 'NXDOMAIN Hijacking'

    return (is_broken, warning, duration)

  def TestRootServerResponse(self):

Generated by  Doxygen 1.6.0   Back to index