def dnsbl_scanner(self, rdata, ip):
        for dnsbl, blacklisted in self.dnsbl_check(ip):
            # Scan.log.debug('Testing: %s' % dnsbl)
            if blacklisted:
                Scan.log.debug('blacklisted: %s' % dnsbl)
                try:
                    query = build_query(ip, dnsbl)
                    txt = get_txt(query)[0]
                except dns.resolver.NoAnswer:
                    Scan.log.debug("No TXT record for %s" % query)
                rdata.append(
                    (ip,
                     dnsbl,
                     blacklisted,
                     txt,)
                )
        return rdata
dataset/ETHPy150Open cakebread/musubi/musubi/scan.py/Scan.dnsbl_scanner/original