shield

code Python verified Free Download devices Cross-platform

code Code Preview

Python
#!/usr/bin/env python3
"""
Domain Blacklist Checker
Check if domain or IP is blacklisted across multiple DNSBL services
"""
import dns.resolver

BLACKLISTS = [
    'zen.spamhaus.org',
    'bl.spamcop.net',
    'b.barracudacentral.org',
    'dnsbl.sorbs.net',
    'spam.dnsbl.sorbs.net'
]

def check_blacklist(ip):
    """Check IP against multiple blacklists"""
    reverse_ip = '.'.join(reversed(ip.split('.')))
    results = []

    for bl in BLACKLISTS:
        try:
            query = f'{reverse_ip}.{bl}'
            dns.resolver.resolve(query, 'A')
            results.append((bl, 'LISTED'))
        except dns.resolver.NXDOMAIN:
            results.append((bl, 'Clean'))
        except Exception as e:
            results.append((bl, f'Error: {e}'))

    return results

if __name__ == '__main__':
    ip = input('Enter IP to check: ')
    results = check_blacklist(ip)

    for bl, status in results:
        icon = '❌' if status == 'LISTED' else '✅'
        print(f'{icon} {bl}: {status}')

# Full script includes:
# - Batch IP checking
# - Domain resolution
# - CSV export
# - Email notifications

info About This Tool

The Domain Blacklist Checker helps you monitor your email reputation by checking if your sending domains or IPs are listed on major blacklists.

Features

  • Check against 5+ major DNSBL services
  • Batch IP checking support
  • Domain to IP resolution
  • CSV export for reporting
  • Email notifications for new listings

Supported Blacklists

  • Spamhaus ZEN
  • SpamCop
  • Barracuda Central
  • SORBS
  • And more...

Requirements

  • Python 3.6+
  • dnspython library

download Download Script

Need Full Automation?

Try Postigo for automated email campaigns with AI personalization

rocket_launch Start Free Trial