Пример #1
0
 def check_rdns(self):
     if self.check_dns:
         update_rdns(self)
         if self.hostname == self.reversedns:
             info_message.send(sender=None, text='Reverse DNS matches.\n')
         else:
             info_message.send(sender=None, text='Reverse DNS mismatch found: %s != %s\n' % (self.hostname, self.reversedns))
     else:
         info_message.send(sender=None, text='Reverse DNS check disabled for this host.\n')
Пример #2
0
 def check_rdns(self):
     if self.check_dns:
         update_rdns(self)
         if self.hostname == self.reversedns:
             info_message.send(sender=None, text='Reverse DNS matches')
         else:
             text = 'Reverse DNS mismatch found: '
             text += '{0!s} != {1!s}'.format(self.hostname, self.reversedns)
             info_message.send(sender=None, text=text)
     else:
         info_message.send(sender=None, text='Reverse DNS check disabled')
Пример #3
0
 def check_rdns(self):
     if self.check_dns:
         update_rdns(self)
         if self.hostname == self.reversedns:
             info_message.send(sender=None, text='Reverse DNS matches')
         else:
             text = 'Reverse DNS mismatch found: '
             text += '{0!s} != {1!s}'.format(self.hostname, self.reversedns)
             info_message.send(sender=None, text=text)
     else:
         info_message.send(sender=None,
                           text='Reverse DNS check disabled')