Skip to main content

Easy DNSBL querying

Project description

A first stab at writing something that could be construed as a python script. Aims to simplify querying multiple DNSBLs.


Run the program with an argument of either an IP address, domain name, AS number, or MD5/SHA1 hash. If no argument is given, drop into a python shell with dnsbl_query imported as a library.

To utilize HTTBL, provide the DNSBLResults instance with auth_tokens={‘HTTPBL’: ‘<your_api_key>’}.

>>> from ezdnsbl import DNSBLResults
>>> results = DNSBLResults('', auth_tokens={'HTTPBL': '<your_api_key>'})
>>> print(a)
    Returned 2 result(s):
        40528 | | US | arin | 2009-06-29
        40528 | | US | arin | 2009-06-29
IPtoASNPeers: IP
    Returned 2 result(s):
        2914 3257 11164 | | US | arin | 2009-06-29
        2914 3257 11164 16876 | | US | arin | 2009-06-29

Take a look at the source for more info.

NOTE: This script makes NO ATTEMPT to rate-limit queries - it is up to YOU to ensure that your usage conforms to the various AUPs and terms of each of the providers listed below.

DNS Blacklists Queried

The following DNSBL providers are queried:

TeamCymru MHR and IP-ASN Mapping (’s TOR Node Blacklist (
GBUdb (
Project Honeypot’s Http:BL (,
LashBack’s Unsubscribe Blacklist (
Spamhaus’ ZEN and DBL (
Rik van Riel’s Spamikaze instance, Passive Spam Block List (,


Inspired by vincecarney’s dnsbl:

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for ezdnsbl, version 0.2.1
Filename, size File type Python version Upload date Hashes
Filename, size ezdnsbl-0.2.1-py2-none-any.whl (27.4 kB) File type Wheel Python version py2 Upload date Hashes View
Filename, size ezdnsbl-0.2.1.tar.gz (21.7 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page