Access to query the DNSBLs in real-time is provided by Spamhaus’ Data Query Service (DQS). Easily integrate the email threat intelligence data into your email infrastructure, and immediately protect against the vast bulk of spam and other email-borne threats at the SMTP gateway.
Real-Time
DNS Blocklists
Query a wide range of real-time DNS Blocklists (DNSBLs) covering IPs, domains, and hashes (including malware files, cryptowallets, email addresses and URLs) to protect your email infrastructure, wider network, and users.
Effective & efficient filtering
Block more than 99% of malicious email.
Immediate & trusted protection
Real-time updates with low-false positive rates.
No additional costs
Easily integrated into your existing infrastructure.
Spamhaus’ Data Query Service
Why are there two different names for the data?
Our datasets have been supporting users for a very long time. With new users requesting our support, the dataset names are being updated for clearer understanding. We’re documenting two names, for now, to best support all users.
Datasets Included

Use cases for Real-Time DNS Blocklists
Querying DNSBLs in real-time has many applications beyond protecting your email infrastructure, wider network, and users from email-borne threats. They can also be used to ensure compliance.

For Email Protection
Spamhaus sets the gold standard in DNSBLs for email protection. Trusted by the world’s largest mailbox providers, our data protects billions of users every single day.
Access affordable, effective protection for your email infrastructure and users, utilizing real-time threat intelligence data, with industry-leading low false positive rates.
Save on associated remediation costs and protect your reputation.
Stop a large amount of unwanted email before it hits your network, saving on processing and storage costs.
With less time focused on email management, there is more time available for other issues.
Our Domain datasets and Non-mail emitting IPs (Policy Blocklist) can protect against threats before they are seen in the wild.

For Email Compliance
Gain actionable insights from binary data covering IPs, domains, and other internet resources. Determine whether an IP or domain is listed to ensure outbound email compliance and protect your sending infrastructure, resource reputation, wider network, and users.
Proactively scan outbound emails for malicious URLs to prevent the spread of harmful content and protect both senders and network reputation.
Real-time signals that help teams identify and resolve issues before they impact compliance or deliverability.
Getting started
How to start a free 30-day trial
Simply complete the form and submit. No credit card or payment details are required for the free trial.
What happens next?
You’ll receive an email asking you to verify your address. If you haven’t already, you’ll be prompted to create an account.
Once verified, log in to the Customer portal to view your API key and follow the setup instructions provided in the manual.
Need help?
If you have any questions, please add them to the comments box on the form. Once you gain access to the data, technical support is available via our Customer Portal.
How can I purchase the data?
During your free trial, you can request a quote in the Customer Portal to get the subscription cost based on your setup. You can also enable trials of additional datasets via the Customer Portal.
System requirements
Technical documentation
Pricing
Ready to start
your free trial?
Get a free 30-day trial to query Spamhaus’ real-time DNSBLs via the Data Query Service. No credit card details required.


Integrations
Real-Time DNS Blocklists
DQS is so fast – it’s amazing. We get all these benefits for a great price.
Alcides Zanarotti Junior
Director of Technology, UOL
Frequently Asked Questions
Who can use the Data Query Service?
Email administrators and email engineers running their own mail transfer agent (MTA) or email infrastructure.
You may qualify for a non-commercial Data Query Service account to query the DNSBLs, free of charge – you can check if you meet the usage criteria for a free account here. To understand what’s included in the free service, see this comparison table.
How to use Spamhaus’ DNSBLs for filtering

Explore more
Data Access
Incremental synchronization of binary and contextual datasets to local servers, including access to our entire binary DNS blocklist data. Efficiently transfer data by only copying changes between the source and destination.
Data Access
Integrate context-rich metadata relating to IP and domain reputation to enhance existing data feeds, or consume as an independent data source. Gain additional intelligence to monitor, assess and remediate as required.
Data Access
Access our wide variety of DNS Response Policy Zone files to block or redirect access based on your appetite for risk. We provide the data, you set the terms, configurable to your business’ needs and company requirements/policies.