Spamhaus Technology and abuse.ch Logo
Solutions
Data
Email & Network
Cyber Threat Intelligence
Resources
About

Passive DNS
API

Access Spamhaus' passive DNS (pDNS) database through a simple API with historical context and rapid, actionable insight into DNS infrastructure — including capturing CNAMEs, nameservers, TXT, MX, and other query responses.

Enable analysts to trace malicious domains, track infrastructure changes, and investigate cyber threats by revealing how DNS records have evolved over time across the internet.

Rapid query results

Optimized infrastructure ensures low-latency API queries, delivering results in near real time.

Easy to use API

A simplified API supporting a variety of query types, with technical assistance available.

High-quality, global data

A wealth of data from our extensive DNS sensor network provides comprehensive historical visibility.

Spamhaus Passive DNS via API

Uncover historical, and up-to-the-moment DNS infrastructure connections from Spamhaus’ Passive DNS (pDNS) database — the same data used daily by Spamhaus researchers to assist their investigations and research.

Easily integrate the pDNS API with your applications to enrich existing data feeds, or use it as an independent data source, giving analysts additional context for domains or IPs.

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

Passive DNS

(Passive DNS)

A repository of DNS infrastructure connections, capturing CNAMEs, nameservers, TXT, MX, and other query responses over time. This dataset enables analysts and hunters to pivot, enrich indicators, track malicious infrastructure changes, and uncover related threats—critical for correlation, incident response, and proactive defense.

transition

Use cases for Passive DNS via API

From SOC teams to Incident response analysts, our Passive DNS API can be integrated directly into existing platforms, tools and workflows to assist research and investigations.

Threat Hunting
Threat Intelligence Enrichment
Threat Hunting
Transition

For Threat Hunting

Boost the efficiency and depth of your threat hunting by pivoting quickly from a single indicator to a broader set of related DNS infrastructure. Passive DNS via API uncovers historical links between domains and IPs, revealing intelligence that would otherwise remain hidden.

With additional DNS context, detect newly active malicious domains, track emerging threats, and map related infrastructure, opening up new paths for proactive threat hunting.

Infrastructure pivots

Starting with a single domain or IP, easily pivot from one indicator to uncover a set of connected infrastructure and accelerate investigations.

Historical lookups

By contextualising domains and IPs, i.e. how they are historically linked, passive DNS exposes previously unknown intelligence just beneath the surface.

DGA Detection

Use the data to identify associated domains and related subdomains, spot suspicious patterns linked to DGAs (Domain Generated Algorithm), and open up new paths for investigation.

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?

    Once you’ve completed the form to trial the Passive DNS via API, one of our team will be in touch to get you set up with access.

    Need help?

    If you have any questions, please add them to the comments box below. 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

    Any tool, script, or platform that supports making HTTPS requests can be used.

  • Technical documentation

    Full set up details for the Passive DNS via API are available in the customer portal once starting a free trial. Our team will provide support to set up access for all users.

  • Pricing

    Pricing is based on monthly query volume, with final costs provided after the trial based on actual usage. Alternatively please contact our sales team.

Ready to start
your free trial?

Get a free 30-day trial of the Passive DNS via API. No credit card details required.

Sign up

Frequently Asked Questions

  • What is Passive DNS data?

    It is a log of DNS queries and answers over time, recording the mappings between domain names and IP addresses. The data consists of anonymized DNS queries, collected from recursive DNS servers worldwide. It includes a number of different internet records including: IPs, domains, hosts, name servers, and canonical names. Using the Passive DNS Real Time Feed, you can uncover the connections between these records.

    You can learn more about where passive DNS data comes from in "What is Passive DNS? A beginner’s guide".

  • Who can use Passive DNS via API?

    A wide range of roles can benefit from using the Passive DNS API including:

    • Security professionals: to investigate suspicious domains and uncover malicious infrastructure, or assist with incident response.
    • Malware Researchers: to track malicious domains, and reduce the need for complex reverse engineering when dealing with malware.
    • Brand Protection Specialists: to detect infringement of copyright and brands by detecting spoofed domains.
  • Where does Passive DNS data come from?

    We collect feeds from both our own systems and trusted partners, and we also perform targeted lookups. Every entry in our database represents an actual result from a live DNS server.

  • Is Passive DNS data GDPR compliant?

    Data received from subscribers contains no Personally Identifiable Information (PII) so there is no compromise of organizational, customer or employee data. All data is transported to Spamhaus with encryption in place.

    Passive DNS does not store which client (or person) made a query, just the fact that at some point in time, a domain has been associated with a specific DNS record. This ensures that privacy is maintained throughout the system.

  • With Passive DNS, can users query specific pieces of information e.g. an ip or domain, and get all the results in a single query?

    The user can query by IP, host, domain, and several other query types. See the documentation for all query types. The user will get all the results we have in a single query with a maximum of 100,000 entries returned. We do not have any kind of pagination.

Explore more

Data Access

Passive DNS Real-Time Feed

A firehose of Passive DNS data, get updates as soon as they are generated with minimal or no delay. This provides immediate access for up-to-date information on DNS infrastructure connections.

Learn More

Data Access

abuse.ch API

High-impact data, dedicated to malware indicators, from a globally diverse, knowledge-rich community. Access enterprise-grade intelligence, with reliability and scale, to enrich, hunt and track with clarity and confidence.

Learn More

Data Access

Intelligence API

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.

Learn More