title: DomainTools Threat Feeds API service_id: threat-feeds auth_types: API Key (X-API-Key header), HMAC Signature source_url: https://docs.domaintools.com/api/threat-feeds/ api_specification: https://docs.domaintools.com/specs/threat-feeds.yml ## Overview Proactive threat intelligence through curated feeds of malicious and suspicious domain infrastructure. Threat Feeds deliver real-time indicators directly to security tools for automated blocking and monitoring. ## Key Capabilities - Real-time data delivery with configurable polling (as frequent as 1 minute) - 90-day historical data access via Download API - Multiple specialized feeds: Newly Observed Domains, High Risk, Registration Changes - Domain pattern filtering for efficient data reduction - Reliable data continuity with deduplication mechanisms ## This Documentation This reference covers the complete Threat Feeds API including feed types, polling mechanisms, filtering options, and integration patterns. --- Proactive cybersecurity through curated lists of malicious and suspicious infrastructure indicators. Threat Feeds deliver real-time intelligence directly to your security tools, enabling you to block threats before they cause harm. Instead of waiting to react to an attack, you can integrate this data into systems like firewalls, proxies, and SIEMs to automatically defend against threats that leverage new or high-risk domains. ## Common capabilities - Real-time data delivery: Access the latest threat intelligence within minutes of observation, crucial for stopping attacks leveraging ephemeral (short-lived) domains. - Configurable polling frequency: Tailor data retrieval to your operational needs, with updates available as frequently as every 1 minute. - Comprehensive historical data: Retrieve up to 90 days of historical feed data via the Download API to ensure no data is missed. - Diverse threat intelligence feeds: Access a variety of specialized feeds, including those for newly observed domains, high-risk domains, and domain registration changes, to match specific threat intelligence needs. - Reliable data continuity: Ensure seamless data ingestion with mechanisms to prevent data loss or duplication, allowing for continuous and uninterrupted threat monitoring. - Granular filtering: Efficiently narrow down threat data using domain pattern filtering, reducing the need for extensive downstream processing. ## Getting started Tip: Quick start with Python Our Python SDK provides native support for this API. Install with pip install domaintools_api --upgrade ### Quick Start: Your First Request Get started with Threat Feeds in under 5 minutes by following these steps. #### 1. Get your API key Your API key is available in your DomainTools account dashboard. For this tutorial, we'll use header authentication (recommended). For the full credential picture across products, see Authentication. #### 2. Choose a feed Start with the Newly Observed Domains (NOD) feed - it's ideal for general threat detection and has moderate volume. #### 3. Make your first request ```sh curl -H "X-Api-Key: $DOMAINTOOLS_API_KEY" \ 'https://api.domaintools.com/v1/feed/nod/?sessionID=myFirstSession' ``` This prints the last hour of newly observed domains to your terminal. To save the output to a file instead, add -o : ```sh curl -o nod_output.json -H "X-Api-Key: $DOMAINTOOLS_API_KEY" \ 'https://api.domaintools.com/v1/feed/nod/?sessionID=myFirstSession' ``` #### 4. Understand the response You'll receive JSON data (NDJSON format) with entries like: ```json {"timestamp":"2025-01-06T15:30:42Z","domain":"example.com"} {"timestamp":"2025-01-06T15:30:45Z","domain":"example.net"} ``` Each line contains: - timestamp: When the domain or IP was first observed - domain: The apex-level domain name IP-based feeds (IP Risk, IP Hotlist) return ip instead of domain, along with additional enrichment fields. See the individual feed documentation for details. For passive DNS feeds, each domain value is delivered as a single fully qualified domain name (FQDN), validated against the bailiwick and observed in an authoritative DNS response. FQDNs can contain characters outside conventional hostname, URL, or application-specific syntax. #### 5. Set up continuous polling Call the same endpoint again with the same sessionID: ```sh curl -H "X-Api-Key: $DOMAINTOOLS_API_KEY" \ 'https://api.domaintools.com/v1/feed/nod/?sessionID=myFirstSession' ``` This returns only domains observed since your last request — no duplicates. As before, the output prints to your terminal unless you redirect it to a file with -o. #### 6. Handle the response in your application Python example: ```python import os import requests import json import time api_key = os.environ["DOMAINTOOLS_API_KEY"] url = "https://api.domaintools.com/v1/feed/nod/" headers = {"X-Api-Key": api_key} params = {"sessionID": "myFirstSession"} while True: response = requests.get(url, headers=headers, params=params) for line in response.text.strip().split('\n'): if line: domain_data = json.loads(line) print(f"New domain: {domain_data['domain']}") time.sleep(60) # Poll every minute ``` #### Next steps - Filter domains: Add ?domain=*.io to monitor specific TLDs - Try other feeds: Explore NAD, NOH, Domain Hotlist, and Domain Risk - Download historical data: Use the Download API for backfill - Integrate with DNS firewalls: Configure RPZ for NOD and NAD View detailed NOD documentation ### Access methods Each feed supports different access methods: - Real-time Feed API: Stream current data with configurable polling (as often as every 60 seconds) - Real-time Download API: Historical archives organized by hour, available for 90 days - Daily Download: Daily batch files for archival and bulk processing - RPZ: Response Policy Zone format for direct DNS firewall integration (select feeds) All feeds support flexible authentication methods and provide comprehensive filtering options to match your specific security requirements. | Feed | Real-time Feed | Real-time Download | Daily Download | RPZ | |------|:------------------:|:------------------:|:--------------:|:---:| |   | | | | | | Predictive Risk Feeds ||||| | Domain Hotlist | ✓ | ✓ | ✓ | ✓ | | Domain Risk | ✓ | ✓ | ✓ | | | IP Hotlist | ✓ | ✓ | ✓ | ✓ | | IP Risk | ✓ | ✓ | ✓ | | |   | | | | | | Discovery Feeds ||||| | Newly Active Domains (NAD) | ✓ | ✓ | | ✓ | | Newly Observed Domains (NOD) | ✓ | ✓ | | ✓ | | Newly Observed Hostnames (NOH) | ✓ | ✓ | | | | Domain Discovery | ✓ | ✓ | ✓ | | | Parsed Domain RDAP | ✓ | ✓ | | | | 5-Minute Domain WHOIS | | | ✓ | | | 5-Minute IP WHOIS | | | ✓ | | ## Predictive risk feeds Identify new, potentially risky infrastructure before it's used in attacks. ### Domain Hotlist The Domain Hotlist identifies malicious and currently operational apex-level domains with high Domain Risk Scores that have shown activity within the last 24 hours. Each entry includes a 24-hour expiration time, making it a focused alternative to the broader Domain Risk feed. Use this feed when you need to: - Build high-confidence block lists - Identify currently active and highly risky domains for immediate action - Enhance SOC and Threat Intel workflows with log and alert enrichment - Create custom network or endpoint block rules - Triage domain-based alerts - Integrate as a blocklist into DNS resolvers via RPZ Inclusion criteria: Apex-level domains with high Domain Risk Scores (≥70 Proximity OR ≥90 Phish OR ≥90 Malware OR ≥90 Spam) that have shown activity within the last 24 hours. Each entry expires after 24 hours. View Domain Hotlist documentation ### Domain Risk The Domain Risk feed provides a continuous data stream of all newly-scored, high-risk domains, regardless of their recent activity. This offers a more comprehensive view of potentially dangerous infrastructure that may not be currently active but still poses a risk. Use this feed when you need to: - Gain comprehensive visibility into potentially dangerous infrastructure - Enable proactive threat intelligence for early detection - Set up automated detection rules in TIPs or SIEMs - Trigger alerts when network devices communicate with high-risk domains - Create automated playbooks for domain enrichment - Prioritize threats more quickly Inclusion criteria: All apex-level domains with a combined Domain Risk Score of 70 or higher, regardless of observed activity. View Domain Risk documentation ### IP Hotlist The IP Hotlist identifies high-risk IP addresses hosting hostile domains that are observed to be active within a 24-hour time window. Each entry includes comprehensive risk scores and enrichment data to help prioritize threats based on hosting infrastructure. Use this feed when you need to: - Block high-risk hosting infrastructure - Monitor active threat actor IP addresses - Correlate domain threats with hosting patterns - Build IP-based threat intelligence - Detect malicious hosting providers - Enrich security alerts with IP context Inclusion criteria: More than 50% of domains on the IP have proximity score of 70+ OR Threat Profile score of 90+; pDNS activity on malicious domains within 24 hours. View IP Hotlist documentation ### IP Risk The IP Risk feed provides comprehensive risk intelligence for all IP addresses known to be hosting domains. This feed includes extensive enrichment data such as threat scores, geographic information, ASN details, and domain hosting metrics. Use this feed when you need to: - Monitor IP addresses hosting domains for threat intelligence - Analyze hosting infrastructure risk patterns - Correlate IP-based threats with domain activity - Build IP reputation databases - Detect suspicious hosting patterns - Enrich security alerts with IP risk context - Track threat actor infrastructure Inclusion criteria: IP is actively hosting one or more domains (regardless of risk level). View IP Risk documentation ## Discovery feeds Track new domains and hostnames as they appear. To compare the four discovery feeds and choose one for your workflow, see Choosing a Discovery Feed. ### Newly Active Domains (NAD) The NAD feed lists domains that have become active in our global passive DNS sensor network, either for the first time or after a period of inactivity (at least 10 days). This helps identify when a previously dormant domain is being repurposed, a common tactic for attackers. Use this feed when you need to: - Detect the reactivation of previously dormant domains - Identify potentially suspicious infrastructure - Monitor domains that might be used for malicious activities - Integrate as a blocklist into DNS resolvers via RPZ Inclusion criteria: Domains observed in passive DNS to be newly active in the latest lifecycle of the domain, either for the first time or after an inactive period of at least 10 days. View Newly Active Domains documentation ### Newly Observed Domains (NOD) The NOD feed provides a real-time list of domains that have been observed for the first time in our global passive DNS sensor network. This feed is ideal for brand protection, corporate intelligence, and temporarily blocking outbound connections to brand-new domains until their reputation can be assessed. Use this feed when you need to: - Identify newly registered domains for typosquatting (registering domains similar to popular brands) or brand abuse - Monitor the emergence of new domains relevant to your organization - Temporarily block access to newly observed domains to mitigate risks - Integrate as a blocklist into DNS resolvers via RPZ Inclusion criteria: Domains observed in passive DNS for the first time. View Newly Observed Domains documentation ### Newly Observed Hostnames (NOH) The NOH feed offers a more granular, hostname-level view by listing fully qualified domain names (FQDNs) the first time they are observed on our global passive DNS sensor network. This helps you detect threats like phishing and domain shadowing (creating malicious subdomains on compromised legitimate domains) that often use unique subdomains on legitimate-looking domains to evade detection. Use this feed when you need to: - Detect phishing attempts using unique subdomains - Identify domain shadowing tactics - Enhance real-time threat detection with high-volume hostname data - Monitor subdomain creation on legitimate domains Inclusion criteria: Fully qualified domain names (FQDNs) observed in passive DNS for the first time. View Newly Observed Hostnames documentation ### Domain Discovery This feed contains the largest dataset of its kind, providing a daily list of all newly registered and newly observed domains from all TLDs, including those that don't publish zone files. Use this feed when you need to: - Perform comprehensive domain monitoring for security and intelligence - Track the global landscape of new domain registrations - Identify emerging threats and trends related to new domain creation - Analyze patterns in domain registration activity Inclusion criteria: All newly registered and newly observed domains from all TLDs, including TLDs that do not publish zone files. View Domain Discovery documentation ### Parsed Domain RDAP This feed provides parsed and normalized domain information extracted from raw RDAP records, including contact information, registrar details, name servers, and important dates. Use this feed for efficient data searching, indexing, and automated processing in security workflows. Use this feed when you need to: - Search for, index, or cross-reference data from RDAP records - Enable programmatic access to structured RDAP data - Analyze domain registration data to identify patterns - Track threat actors through registration information - Monitor changes in registration data for brand protection Inclusion criteria: Changes to global domain registration information, populated by the Registration Data Access Protocol (RDAP). View Parsed Domain RDAP documentation ### 5-Minute Domain WHOIS The 5-Minute Domain WHOIS feed provides the most recently updated domain WHOIS records, processed on a 5-minute basis. Use this feed when you need to: - Monitor domain registration changes in near real-time - Track WHOIS record updates for threat intelligence - Analyze domain ownership and contact information changes - Build domain registration databases - Detect suspicious registration patterns Inclusion criteria: All domain names processed since the previous 5-minute update cycle. View 5-Minute Domain WHOIS documentation ### 5-Minute IP WHOIS The 5-Minute IP WHOIS feed provides the most recently updated IPv4 WHOIS records, processed on a 5-minute basis. Use this feed when you need to: - Monitor IP address allocation and ownership changes - Track IP WHOIS record updates for threat intelligence - Analyze network infrastructure changes - Build IP intelligence databases - Correlate IP ownership with threat activity Inclusion criteria: All IPv4 addresses processed since the previous 5-minute update cycle. View 5-Minute IP WHOIS documentation ### Need help? - API Reference: Complete endpoint documentation with interactive reference - Resources: OpenAPI spec downloads, SDK tips, and user guides - Authentication issues: Contact enterprisesupport@domaintools.com - Questions about which feed to use: Review the feed descriptions above or contact your DomainTools counterpart This page shows you how to: - Choose between the Download API and Feed API for bulk data retrieval - Retrieve a full day of feed data using either API - Recover from ingestion gaps without losing your place in the stream These patterns apply to any Threat Feed that supports the Real-time Feed API and Real-time Download API. Examples on this page use the Newly Observed Domains (NOD) feed. ## Before you begin - Obtain your API credentials from your DomainTools account dashboard. - Confirm that your account has access to the feed you want to retrieve. - Review session management to understand how sessionID (a persistent cursor that tracks your position in the feed), HTTP 206, and HTTP 200 responses work. ## Which API to use | Scenario | Recommended API | Why | |----------|----------------|-----| | Backfill a full day or more | Download API | Files are pre-built hourly snapshots. No session state to manage, and you avoid loading the real-time stream. | | Retrieve historical data with filters | Feed API | Supports query parameters like domain (on domain-oriented feeds), risk score thresholds, and time windows that the Download API doesn't offer. | | Catch up after a short outage | Feed API | Your existing sessionID already points to where you left off. | ## Retrieve a full day from the Download API The Download API provides hourly snapshot files, already serialized and organized by date. This is the simplest way to retrieve a full day of data. 1. Request the file list for a specific day. Each hour produces a data file and a checksum file, so set limit=48 to cover 24 hours: ```sh curl -H "X-Api-Key: $DOMAINTOOLS_API_KEY" \ 'https://api.domaintools.com/v1/download/nod/?limit=48' > files.json ``` 2. Download the hourly files. Each .json.gz file contains one hour of feed data in the same NDJSON format as the Feed API: ```sh for url in $(jq -r '.response.files[].url' files.json | grep '\.json\.gz$'); do curl -O "$url" done ``` 3. Verify file integrity using the .sha256 checksum files: ```sh for url in $(jq -r '.response.files[].url' files.json | grep '\.sha256$'); do curl -O "$url" done sha256sum -c *.sha256 ``` The Download API retains 90 days of hourly files. If a request fails with HTTP 403, verify your API credentials and feed access. For details on response structure and file naming, see the Download API section of your feed's documentation (for example, Domain Hotlist Download API). ## Retrieve a full day from the Feed API Use this approach when you need the Feed API's filtering capabilities or when you don't have access to the Download API for your feed. 1. Start a new session with after=-86400 (24 hours ago) and fromBeginning=true. This returns the first hour of data within that window: ```sh curl -H "X-Api-Key: $DOMAINTOOLS_API_KEY" \ 'https://api.domaintools.com/v1/feed/nod/?sessionID=backfill-2025-01-06&after=-86400&fromBeginning=true' ``` The API responds with HTTP 206, indicating more data is available. The sessionID now points to the end of that first batch. 2. Drop the after and fromBeginning parameters. Continue calling the Feed API with only the sessionID: Caution: Don't pass fromBeginning=true on subsequent calls. The API returns HTTP 406 if fromBeginning is used with an existing session ID. ```sh curl -H "X-Api-Key: $DOMAINTOOLS_API_KEY" \ 'https://api.domaintools.com/v1/feed/nod/?sessionID=backfill-2025-01-06' ``` 3. Repeat step 2 while the API returns HTTP 206. When you receive HTTP 200, you've retrieved all available data. Note: Each request can return up to 10 million results. For high-volume feeds, a full day may require many iterations. Respect the rate limits of 2 queries per minute and 120 queries per hour. ## Recover from ingestion lag If your ingestion job goes down or falls behind, you don't need to start over. The Feed API retains your session position for up to 5 days. Your sessionID continues to point to the last record delivered to you. To resume: 1. Restart your consumer with the same sessionID it was using before the outage. 2. Call the Feed API as you normally would — no extra parameters needed: ```sh curl -H "X-Api-Key: $DOMAINTOOLS_API_KEY" \ 'https://api.domaintools.com/v1/feed/nod/?sessionID=mySOC' ``` 3. The API returns all data accumulated since your last successful request. Process the 206 responses as usual until you receive a 200. If your outage exceeds 5 days, the session position expires. Create a new sessionID and use the full-day retrieval workflow or the Download API to backfill the gap. ## Related resources - Threat Feeds overview — feed descriptions and access method matrix - Session management — how sessionID, HTTP 206, and session deletion work - Individual feed documentation for API-specific parameters and response fields Patterns for integrating Threat Feeds into common security workflows, organized by objective. ## Proactive defense Use DomainTools Threat Feeds to proactively reduce exposure to attacker-controlled infrastructure before it is used against your environment. These feeds enable both preventive controls and risk-informed allow/deny decisions. ### Ingestion and integration options - Ingest via API or data pipeline into a Security Information and Event Management (SIEM), Extended Detection and Response (XDR), or data platform for downstream control logic and automation. - Schedule feed downloads or run streaming pipelines for continuous updates. - Enforce at the DNS layer with Response Policy Zone (RPZ) for automated blocking at resolution time. - Apply selective enforcement in firewalls or endpoint controls for high-confidence indicators. ### Preventive controls - Apply targeted blocking using curated subsets of Domain Hotlist or IP Hotlist based on confidence thresholds. - Use RPZ zones (Domain Hotlist, Newly Observed Domains, Newly Active Domains) for DNS-based prevention where appropriate. - Use IP Risk to identify widely used hosting providers ("super-hosters") and build allowlists to reduce disruption. ### Best practices - Avoid bulk enforcement of entire feeds at the network or endpoint layer without tuning. - Start with high-confidence subsets and expand coverage gradually. - Combine blocking with visibility into what would have been blocked before enforcing aggressively. Feeds: Domain Hotlist, IP Risk, IP Hotlist, Newly Active Domains, Newly Observed Domains, Newly Observed Hostnames ## Threat detection Detect when assets in your environment communicate with suspicious or high-risk infrastructure. DomainTools feeds enable early identification of threats that may evade traditional signature-based detection. ### Detection patterns - Cross-reference internal telemetry (DNS logs, proxy logs, Endpoint Detection and Response (EDR), NetFlow) against Domain Hotlist, IP Hotlist, Newly Observed Domains, and Newly Active Domains. - Trigger alerts when entities match known or emerging suspicious infrastructure. - Use Newly Observed Domains and Newly Active Domains to identify early-stage attack infrastructure before reputation systems catch up. ### Risk-based alerting - Ingest Domain Risk and IP Risk feeds and trigger alerts based on: - overall_risk - all_threats_combined_percent - Prioritize alerts dynamically based on severity scoring rather than static blocklists. - Both feeds are also consumable from agentic AI workflows via the DomainTools MCP Server, without requiring a separate enrichment pipeline. ### Noise reduction - Use IP Risk context (ASN, hosting type, usage patterns) to distinguish: - Commodity or shared infrastructure - Dedicated or suspicious infrastructure - Suppress or de-prioritize alerts tied to known "super-hosters" where appropriate. Feeds: Domain Hotlist, IP Risk, IP Hotlist, Newly Active Domains, Newly Observed Domains, Newly Observed Hostnames ## Automated enrichment Enhance alerts and investigation workflows with domain and IP context from DomainTools feeds. - Query Domain Risk or IP Risk via API or feed ingestion and join on domain or IP fields in alert data. - Add context such as: - Risk scores and threat distributions - Autonomous System Number (ASN), organization, and geolocation - Passive DNS resolution patterns - Improve triage speed and consistency by embedding risk intelligence directly into analyst workflows. Feeds: Domain Risk, IP Risk, IP Hotlist ## Brand and supply chain monitoring Identify domains and subdomains that impersonate your organization, brands, or supply chain partners to support early detection of phishing, fraud, and abuse campaigns. ### Detection approach - Use the Feed API domain filter — supported on domain-oriented feeds (Domain Risk, Domain Hotlist, Newly Observed Domains, Newly Observed Hostnames, Newly Active Domains, Domain Discovery, Parsed Domain RDAP; not IP Risk or IP Hotlist) — to retrieve targeted subsets matching your organization name, brands, or key suppliers (for example, *yourcompany* or *partnername*). - Alternatively, ingest full feeds (Newly Observed Domains, Newly Observed Hostnames, Domain Discovery) and apply custom pattern-matching logic to detect: - Typosquatting (character substitution, omission, homoglyphs) - Keyword abuse (for example, login, secure, update, support) - Brand and phishing term combinations ### Coverage by feed type - Newly Observed Domains detects newly observed apex domains at first appearance in DNS. - Domain Discovery identifies newly registered domains, including those not yet resolving. - Newly Observed Hostnames detects abuse at the subdomain level, including: - Malicious subdomains on compromised infrastructure - Abuse on legitimate hosting platforms (for example, user-generated subdomains) ### Prioritization and triage - Prioritize domains that: - Are newly observed or newly registered - Contain high-risk keywords combined with brand terms - Show early DNS activity (first-seen or rapid resolution patterns) - Enrich hits with Domain Risk or IP Risk to: - Prioritize higher-risk findings - Reduce false positives from benign brand references ### Best practices - Maintain a continuously updated watchlist of brand and supplier keywords. - Include common misspellings, abbreviations, and homoglyph variants. - Automate filtering and evaluation to process new domains as they appear in near real time. Feeds: Domain Risk, IP Risk, Newly Active Domains, Newly Observed Domains, Newly Observed Hostnames ## Customer-facing phishing and credential harvesting hunt Proactively identify domains likely being used to target your customers with phishing, credential harvesting, or payment fraud campaigns. ### Detection approach - Monitor for newly registered, newly observed, or newly active domains that contain high-risk keywords commonly associated with phishing, such as: - login, secure, verify, auth, account, update, password - Financial lures: wallet, card, billing, invoice, payment - Combine keyword matching with brand or service names (your organization, products, or partners) to identify targeted attacks. - Apply filters using the Feed API or post-ingestion processing to continuously evaluate new domains as they appear. ### Coverage by feed type - Domain Discovery identifies newly registered domains before they are used in attacks. - Newly Observed Domains detects apex domains at first appearance in DNS. - Newly Active Domains surfaces domains that suddenly become active after dormancy, a common phishing pattern. - Newly Observed Hostnames detects phishing hosted on subdomains, often on compromised or shared infrastructure. - Domain Hotlist provides curated high-confidence phishing and abuse indicators. ### Prioritization and triage - Prioritize domains that: - Are newly registered or newly observed - Contain both brand terms and phishing keywords - Exhibit early DNS resolution or sudden activation behavior - Enrich results with Domain Risk or IP Risk to: - Prioritize higher-risk domains - Identify infrastructure commonly linked to phishing campaigns ### Best practices - Maintain a keyword library tailored to your customer workflows (for example, login flows, billing terms, product names). - Include common variations and synonyms used in phishing lures. - Continuously tune filters to balance coverage and noise. - Automate ingestion and filtering to ensure near real-time visibility into emerging threats. Feeds: Domain Hotlist, Newly Observed Domains, Newly Active Domains, Newly Observed Hostnames, Domain Discovery ## DGA domain detection Identify domains generated by a domain generation algorithm (DGA), used by malware for command-and-control (C2), data exfiltration, and fallback communication. ### Detection approach - Continuously monitor feeds for bursts of newly active or newly observed domains, a common pattern associated with DGA-based infrastructure. - Apply DGA detection logic to domain strings, including: - High entropy or randomness - Unusual character distribution or length - Lack of recognizable language patterns - Ingest feeds via API or data pipelines and automate analysis to evaluate domains in near real time. ### Coverage by feed type - Newly Active Domains detects domains that suddenly become active after dormancy, a strong signal of DGA activation patterns. - Newly Observed Domains identifies previously unseen apex domains appearing in DNS for the first time. - Newly Observed Hostnames surfaces subdomains that may be generated dynamically as part of DGA activity. - Domain Discovery identifies newly registered domains before they are used in attacks. ### Detection signals - Bursts of domains appearing within short time windows - Domains with similar structural patterns (length, character sets, prefixes or suffixes) - Low historical presence combined with sudden DNS activity - Repeated resolution attempts from endpoints to multiple similar domains ### Prioritization and triage - Prioritize domains that: - Appear in clusters or bursts - Exhibit strong DGA-like string characteristics - Are queried repeatedly by a single endpoint or small group of hosts - Enrich findings with Domain Risk or IP Risk to: - Identify known malicious infrastructure tied to DGAs - Differentiate benign high-entropy domains from malicious ones ### Best practices - Combine string-based DGA detection with behavioral signals (query patterns, timing, frequency). - Avoid relying solely on lexical analysis, as modern DGAs may mimic natural language. - Continuously tune detection thresholds to balance false positives and missed detections. - Correlate with endpoint telemetry to identify infected hosts early. Feeds: Newly Active Domains, Newly Observed Domains, Newly Observed Hostnames, Domain Discovery ## Related resources - Threat Feeds overview - Data retrieval patterns - Domain Risk - IP Risk - Domain Hotlist - IP Hotlist The Domain Hotlist identifies malicious and currently operational apex-level domains with high Domain Risk Scores that have shown activity within the last 24 hours. Each entry includes a 24-hour expiration time, making it a focused alternative to the broader Domain Risk feed for building high-confidence block lists. ## Overview Domains are apex-level (for example, example.com but not www.example.com), and the feed includes only those with high risk scores that have been active in the last 24 hours. Use this feed when you need to: - Build high-confidence block lists - Identify currently active and highly risky domains for immediate action - Enhance SOC and Threat Intel workflows with log and alert enrichment - Create custom network or endpoint block rules - Triage domain-based alerts - Integrate as a blocklist into DNS resolvers via RPZ Inclusion criteria: Apex-level domains with high Domain Risk Scores that have shown activity within the last 24 hours. Each entry expires after 24 hours. ## Quick Start Get started with the Domain Hotlist feed in under 60 seconds using the Real-time Feed API: ```sh # Start polling for high-risk, actively communicating domains curl -H "X-Api-Key: $DOMAINTOOLS_API_KEY" \ 'https://api.domaintools.com/v1/feed/domainhotlist/?sessionID=myBlocklist' ``` This returns the last hour of data. Call again with the same sessionID to get only new data since your last request. See Real-time Feed API for complete details and Authentication for auth options. ## Requirements You need the following to access Threat Feeds: - An Enterprise Account with DomainTools, accessible at https://account.domaintools.com/my-account/ - Authentication credentials (API key for header authentication, or API username and key for HMAC or open key authentication) - A way to interact with a REST API delivered through AWS Obtain your API credentials from your group's API administrator. API administrators can manage their API keys at https://research.domaintools.com, selecting the drop-down account menu and choosing API admin. For assistance, contact enterprisesupport@domaintools.com. ## Authentication You can authenticate to the Domain Hotlist APIs using three different methods. Choose the method that best fits your security requirements and technical environment. ### API key (header) authentication Authenticate your requests by including the API key in the header of each HTTP request. The API key serves as a unique identifier and authenticates your requests. Required header: X-Api-Key: $DOMAINTOOLS_API_KEY Examples: ```sh # Feed API request curl -H "X-Api-Key: $DOMAINTOOLS_API_KEY" \ 'https://api.domaintools.com/v1/feed/domainhotlist/?sessionID=myBlocklist' ``` ```sh # Download API request curl -H "X-Api-Key: $DOMAINTOOLS_API_KEY" \ 'https://api.domaintools.com/v1/download/domainhotlist/' ``` ### HMAC authentication HMAC authentication is a secure alternative to API key-based methods. It requires signing each request with an HMAC digest derived from your API key, providing integrity and authenticity without exposing credentials directly in the request. This method is recommended for systems where authentication credentials shouldn't be stored in plain text or included directly in request URLs. DomainTools supports MD5, SHA1, and SHA256 for the hashing algorithm. Use SHA256 — it's the recommended choice and is more resistant to collision attacks than MD5 or SHA1. Required query parameters: - api_username: Your DomainTools API username - signature: HMAC-SHA256 signature of api_username + timestamp + uri_path - timestamp: Current UTC timestamp in ISO 8601 format (for example, 2025-06-01T15:30:00Z) Constructing the HMAC signature: ```sh signature = HMAC-SHA256(api_key, api_username + timestamp + uri_path) ``` Caution: URI path must include API version The uri_path parameter must include the API version prefix. For example, use /v1/feed/nod/ not /feed/nod/. Example Python signing function: ```python import hmac import hashlib def sign(api_username, api_key, timestamp, uri): params = f"{api_username}{timestamp}{uri}" return hmac.new(api_key.encode("utf-8"), params.encode("utf-8"), hashlib.sha256).hexdigest() ``` Note: HMAC timestamp requirements The timestamp parameter in HMAC authentication must be current (within a few minutes of the server time). The timestamps shown in these examples are static for demonstration purposes. In production, generate a fresh timestamp for each request using your system's current time in ISO 8601 UTC format (e.g., 2025-01-06T15:30:00Z). Examples: ```sh # Feed API request with HMAC curl 'https://api.domaintools.com/v1/feed/domainhotlist/?api_username=YOUR_USERNAME&signature=HMAC_SIGNATURE×tamp=2025-01-06T15:30:00Z&sessionID=myBlocklist' ``` ```sh # Download API request with HMAC curl 'https://api.domaintools.com/v1/download/domainhotlist/?api_username=YOUR_USERNAME&signature=HMAC_SIGNATURE×tamp=2025-01-06T15:30:00Z' ``` ### Open key authentication This is the easiest authentication scheme to implement, but also the least secure. Each request contains the full API key and API username as query parameters. We recommend using API key header authentication or HMAC authentication instead. If you're unsure about your authentication options, contact enterprisesupport@domaintools.com. Required query parameters: - api_username: Your API username - api_key: Your API key Examples: ```sh # Feed API request curl 'https://api.domaintools.com/v1/feed/domainhotlist/?api_username=YOUR_USERNAME&api_key=YOUR_API_KEY&sessionID=myBlocklist' ``` ```sh # Download API request curl 'https://api.domaintools.com/v1/download/domainhotlist/?api_username=YOUR_USERNAME&api_key=YOUR_API_KEY' ``` ## Real-time Feed API The Feed API provides real-time access to current Domain Hotlist data. Use this API to poll for the latest feed updates at regular intervals, maintain a session to track your position in the feed, and filter results based on your specific needs. ### Base URL ```text https://api.domaintools.com/v1/feed/domainhotlist/ ``` ### Rate limits Real-time feeds have the following rate limits: - 2 queries per minute - 120 queries per hour If you exceed these limits, the API returns an error. ### Response formats The API supports two response formats: NDJSON (Newline-Delimited JSON) - Default format when no Accept header is specified - Also known as JSON Lines (JSONL) - One JSON object per line - Efficient for streaming and processing large datasets - Set Accept: application/x-ndjson to explicitly request this format CSV (Comma-Separated Values) - Set Accept: text/csv to request CSV format - Add &headers=1 to the query parameters to include column headers as the first line - Not available for all feeds; check the specific feed documentation for CSV support ### Session management Session management allows you to maintain your position in the feed data stream, ensuring you don't miss or duplicate events when polling the API. How sessions work: - Start a new session: Provide a unique sessionID parameter of your choosing. By default, the API returns the past hour of results. - Resume a session: Use the same sessionID in subsequent requests. The API returns all data since your last request. - Handle large result sets: If a single request exceeds 10M results, the API returns an HTTP 206 response code. Repeat the same request with the same sessionID to receive the next batch of data until you receive an HTTP 200 response code. - One request at a time: Do not send simultaneous requests with the same sessionID for the same feed. Wait for each request to complete before sending the next one. Concurrent requests with the same sessionID can produce errors or incomplete results. - Delete a session: Use an HTTP DELETE request with your sessionID to clear the saved offset and start fresh. Session ID requirements: - 1 to 64 characters in length - Alphanumeric characters and hyphens only ([a-zA-Z0-9-]+) - Case-sensitive ### Quick start The standard access pattern is to periodically request the most recent feed data, as often as every 60 seconds. ```sh curl -H "X-Api-Key: $DOMAINTOOLS_API_KEY" \ 'https://api.domaintools.com/v1/feed/domainhotlist/?sessionID=myBlocklist' ``` This starts a new session and returns the last hour of data. Subsequent calls with the same sessionID return data since the last request. ### Feed API parameters #### sessionID Type: String Valid values: 1-64 alphanumeric characters and hyphens ([a-zA-Z0-9-]+) Description: A unique identifier for the session, used for resuming data retrieval from the last point. Use a new sessionID to begin a new session, fetching the most recent hour by default. Reuse the same sessionID to return all feed data since your last request. If omitted, time window parameters (such as after/before) are required. Example: sessionID=mySOC Required: Yes, to continue where you left off (or use after/before instead) #### after Type: Integer or string Valid values: - Integer: -1 to -432,000 (relative seconds before current time) - String: ISO 8601 datetime in UTC format (YYYY-MM-DDTHH:MM:SSZ) Description: The start of the query window (inclusive). When using an integer, the value is in seconds relative to the current time. When using a string, provide an absolute timestamp. The query window covers the most recent 5 days. A value older than 5 days is capped to the start of that window, and the response begins 5 days back. Example: after=-60 or after=2024-10-16T10:20:00Z Required: Yes, if before or sessionID not provided #### before Type: Integer or string Valid values: - Integer: -1 to -432,000 (relative seconds before current time) - String: ISO 8601 datetime in UTC format (YYYY-MM-DDTHH:MM:SSZ) Description: The end of the query window (inclusive). When using an integer, the value is in seconds relative to the current time. When using a string, provide an absolute timestamp. The query window covers the most recent 5 days. A value older than 5 days places the window entirely outside it, and the response contains no records. Example: before=-120 or before=2024-10-16T10:20:00Z Required: Yes, if after or sessionID not provided #### domain Type: String Valid values: Domain character set restricted by the DNS specification (letters, digits, hyphens). International characters should be specified in punycode. A trailing dot is acceptable. Description: Filter for an exact domain or a domain substring by prefixing or suffixing your string with *. Multiple parameters are supported (for example, ?domain=*apple*&domain=*microsoft*). The URL-encoded version of * (%2A) may be required in some clients. Example: domain=*bank* or domain=example.com Required: No #### fromBeginning Type: Boolean Valid values: true, false, 1, 0 Description: Requires a sessionID. Set fromBeginning=true on the first request with a new session ID to return the first hour of data in the time window rather than the last. false is the default. Using it with a session ID that already exists returns HTTP 406, so drop fromBeginning from subsequent requests. Using it without a sessionID, or passing a value that isn't a boolean, returns HTTP 422. Example: fromBeginning=true Required: No #### top Type: Integer Valid values: Positive integer, 1-1,000,000,000 Description: Limits the number of results in the response payload. Primarily intended for testing. Example: top=10 Required: No #### headers Type: Boolean Valid values: true, false, 1, 0 Description: Adds a header row as the first line of the response when text/csv is requested. Set headers=1 to enable; false is the default. Enabling it on a request that doesn't ask for text/csv returns HTTP 422, as does a value that isn't a boolean. Example: headers=1 Required: No #### Domain Hotlist filter parameters Type: integer (optional) Range: 1-99 Filter results to include only domains with risk scores greater than or equal to the specified threshold. You can apply multiple risk score filters simultaneously. When multiple filters are used, domains must meet ALL specified thresholds to be included in the results. Available risk score filters: - overall_min - Minimum overall risk score - malware_min - Minimum malware risk score - phishing_min - Minimum phishing risk score - spam_min - Minimum spam risk score - proximity_min - Minimum proximity risk score ### Feed API response structure The API returns NDJSON format with one domain per line. About Domain Risk Scores: Domain Risk Scores predict the likelihood that a domain was registered with malicious intent. Each score ranges from 0-100, with special meanings for 0 (zero-listed/excluded from scoring) and 100 (blocklisted/known-bad). Regular scores range from 1-99, with null values indicating the domain has aged out of that threat profile. | Score Range | Score Color | Description | | :---- | :---- | :---- | | 100 | Red | Blocklisted. These domains can be considered known-bad, and have the highest likelihood of malicious intent. This includes sinkholed domains. DomainTools combines third party blocklists with our own scoring to determine which domains to blocklist. | | 90-99 | Red | Strong confidence in near-term weaponization. | | 70-89 | Orange | A potential threshold for suggesting malicious intent, and our default recommendation for significance in an investigation. Individual mileage may vary, depending on your security context and priorities. | | 50-69 | Yellow | May require attention, depending on your security posture. | | 1-49 | Grey | Very little evidence of malicious intent. | | 0 | Grey | Zero-listed. DomainTools excludes the domain from risk scoring, so it receives no 1-99 risk value. Reasons for zero-listing a domain include well-known, established domains that could otherwise be blocked by mistake, and domains vital to the expected operation of the Internet. A score of 0 reflects exclusion from scoring and isn't in itself a judgment that the domain is safe. | See the Domain Risk Score user guide for complete details. Response fields: timestamp (string): ISO 8601 UTC timestamp when the domain was scored or observed domain (string): The apex-level domain name phishing_risk (integer, nullable): Phishing risk score (0-100), or null if not applicable malware_risk (integer, nullable): Malware risk score (0-100), or null if not applicable spam_risk (integer, nullable): Spam risk score (0-100), or null if not applicable proximity_risk (integer): Proximity risk score (0-100) overall_risk (integer): Overall combined risk score (0-100) expires (string): ISO 8601 UTC timestamp when this entry expires (24 hours from initial observation) Example response: ```json {"timestamp":"2025-01-06T15:30:42Z","domain":"example.com","phishing_risk":75,"malware_risk":85,"spam_risk":88,"proximity_risk":99,"overall_risk":99,"expires":"2025-01-07T15:30:42Z"} {"timestamp":"2025-01-06T15:30:45Z","domain":"example.net","phishing_risk":null,"malware_risk":null,"spam_risk":null,"proximity_risk":95,"overall_risk":95,"expires":"2025-01-07T15:30:45Z"} ``` ### Feed API response codes | Code | Status | Description | |------|--------|-------------| | 200 | OK | The request was successful and all data has been delivered | | 206 | Partial content | The request was successful, but only a portion of the data was returned. The request exceeded 10M results or the 1-hour evaluation window. Repeat the same request with the same sessionID to receive the next batch of data until you receive an HTTP 200 response | | 400 | Bad request | The request is malformed | | 403 | Forbidden | Missing or invalid API credentials | | 404 | Not found | The requested resource (such as a sessionID) doesn't exist | | 406 | Not acceptable | Either the specified Accept header value isn't supported (only application/x-ndjson and text/csv are accepted), or fromBeginning was used with a sessionID that already exists | | 422 | Unprocessable entity | The request is syntactically valid but violates semantic or domain-specific rules (for example, invalid query parameter values) | ### Feed API examples Basic session polling: ```sh # Start a new session curl -H "X-Api-Key: $DOMAINTOOLS_API_KEY" \ 'https://api.domaintools.com/v1/feed/domainhotlist/?sessionID=myBlocklist' ``` ```sh # Resume the session (returns data since last request) curl -H "X-Api-Key: $DOMAINTOOLS_API_KEY" \ 'https://api.domaintools.com/v1/feed/domainhotlist/?sessionID=myBlocklist' ``` Time window filtering: ```sh # Get data from a specific time range curl -H "X-Api-Key: $DOMAINTOOLS_API_KEY" \ 'https://api.domaintools.com/v1/feed/domainhotlist/?after=2025-01-06T10:00:00Z&before=2025-01-06T11:00:00Z' ``` Domain filtering: ```sh # Filter for specific domain patterns curl -H "X-Api-Key: $DOMAINTOOLS_API_KEY" \ 'https://api.domaintools.com/v1/feed/domainhotlist/?domain=*.example.com&sessionID=myBlocklist' ``` CSV format: ```sh # Request CSV format with headers curl -H 'Accept: text/csv' -H "X-Api-Key: $DOMAINTOOLS_API_KEY" \ 'https://api.domaintools.com/v1/feed/domainhotlist/?headers=1&sessionID=myBlocklist' ``` ```sh # Request CSV format without headers curl -H 'Accept: text/csv' -H "X-Api-Key: $DOMAINTOOLS_API_KEY" \ 'https://api.domaintools.com/v1/feed/domainhotlist/?sessionID=myBlocklist' ``` Risk score filtering: ```sh # Filter for domains with overall risk ≥ 90 curl -H "X-Api-Key: $DOMAINTOOLS_API_KEY" \ 'https://api.domaintools.com/v1/feed/domainhotlist/?overall_min=90&sessionID=myBlocklist' ``` ```sh # Filter for domains with high phishing and malware risk curl -H "X-Api-Key: $DOMAINTOOLS_API_KEY" \ 'https://api.domaintools.com/v1/feed/domainhotlist/?phishing_min=80&malware_min=80&sessionID=myBlocklist' ``` Handling large result sets: ```sh # If you receive HTTP 206, repeat the request to get the next batch curl -H "X-Api-Key: $DOMAINTOOLS_API_KEY" \ 'https://api.domaintools.com/v1/feed/domainhotlist/?sessionID=myBlocklist' ``` ```sh # Repeat until you receive HTTP 200 curl -H "X-Api-Key: $DOMAINTOOLS_API_KEY" \ 'https://api.domaintools.com/v1/feed/domainhotlist/?sessionID=myBlocklist' ``` Delete a session: ```sh # Clear the saved offset and start fresh curl -X DELETE -H "X-Api-Key: $DOMAINTOOLS_API_KEY" \ 'https://api.domaintools.com/v1/feed/domainhotlist/?sessionID=myBlocklist' ``` ## Real-time Download API The Real-time Download API provides access to historical Domain Hotlist data through temporary AWS S3 file links. Use this API to retrieve archived data you may have missed or to backfill your systems with historical information. Files are organized by hour and available for 90 days. ### Base URL ```text https://api.domaintools.com/v1/download/domainhotlist/ ``` ### Download API parameters #### limit Type: Integer Valid values: Positive integer Description: Limits the number of files returned in the response, starting from the most recent. Use to control payload size or test specific cases. Example: limit=10 Required: No #### page Type: Integer Valid values: Non-negative integer (0, 1, 2, ...) Description: Selects which page of results to return. Pages begin at 0 with the latest results. Use with limit and prefix to control results. The server returns an HTTP 404 (No data to download.) message when the page request exceeds the last page of results. Example: page=3 Required: No #### prefix Type: String Valid values: Date/time prefix matching the feed's filename format Description: Filters results by date using the file prefix. Use with page and limit to control results. Filename prefixes vary by feed. For example, files for this feed begin with the date in YYYY-MM-DD format. Example: prefix=2025-06-24 Required: No ### Download API response structure The API returns a JSON response containing an array of downloadable files. Each file entry includes: download_name (string): The feed identifier (domainhotlist) files (array): List of downloadable file entries Each file object contains: | Field | Type | Description | |-------|------|-------------| | name | string | Path and filename of the downloadable file | | last_modified | string | Timestamp of last modification in ISO 8601 UTC format | | etag | string | ETag (hash) used to verify file identity and versioning | | size | integer | File size in bytes | | url | string | Temporary signed URL to download the file from AWS | File naming convention: - Data file: domainhotlist/{YYYY-MM-DD}/domainhotlist-{YYYYMMDD}.{HH00}-{HH00}.json.gz - Checksum file: domainhotlist/{YYYY-MM-DD}/domainhotlist-{YYYYMMDD}.{HH00}-{HH00}.json.gz.sha256 Example response: ```json { "response": { "download_name": "domainhotlist", "files": [ { "name": "domainhotlist/2024-11-19/domainhotlist-20241119.1900-2000.json.gz.sha256", "last_modified": "2024-11-19T20:00:11+00:00", "etag": "\"67a6d9b0973b2d31ffb779dc8f7f8cfa\"", "size": 64, "url": "https://download.example.com/domainhotlist/2024-11-19/domainhotlist-20241119.1900-2000.json.gz.sha256?Expires=..." }, { "name": "domainhotlist/2024-11-19/domainhotlist-20241119.1900-2000.json.gz", "last_modified": "2024-11-19T20:00:11+00:00", "etag": "\"67a6d9b0973b2d31ffb779dc8f7f8cfa\"", "size": 245000, "url": "https://download.example.com/domainhotlist/2024-11-19/domainhotlist-20241119.1900-2000.json.gz?Expires=..." } ] } } ``` ### Download API response codes | Code | Status | Description | |------|--------|-------------| | 200 | OK | The request was successful | | 400 | Bad request | The request is malformed | | 401 | Unauthorized | Missing or invalid API credentials | | 403 | Forbidden | Missing or invalid API credentials | | 404 | Not found | No data to download | | 422 | Unprocessable entity | The request is syntactically valid but violates semantic or domain-specific rules (for example, invalid query parameter values) | ### Download API file contents The *.json.gz.sha256 file is a checksum containing a SHA-256 hash value used to verify the integrity of the downloaded file. The *.json.gz file, when uncompressed, contains JSON data in the same format as the Feed API response (NDJSON with timestamp, domain, risk score fields, and expires). ### Download API examples List available files: ```sh # Get the most recent files curl -H "X-Api-Key: $DOMAINTOOLS_API_KEY" \ 'https://api.domaintools.com/v1/download/domainhotlist/?limit=10' ``` Download and verify a file: ```sh # Get the file list curl -H "X-Api-Key: $DOMAINTOOLS_API_KEY" \ 'https://api.domaintools.com/v1/download/domainhotlist/?limit=2' > files.json # Extract the URL and download the data file curl -o domainhotlist-data.json.gz "$(jq -r '.response.files[1].url' files.json)" # Download the checksum file curl -o domainhotlist-data.json.gz.sha256 "$(jq -r '.response.files[0].url' files.json)" # Verify the integrity sha256sum -c domainhotlist-data.json.gz.sha256 ``` Batch processing: ```sh # Download multiple files in a loop for url in $(curl -H "X-Api-Key: $DOMAINTOOLS_API_KEY" \ 'https://api.domaintools.com/v1/download/domainhotlist/?limit=24' | \ jq -r '.response.files[].url' | grep '\.json\.gz$'); do curl -O "$url" done ``` ## Daily Download API The Daily Download API provides daily batch summaries as an alternative to hourly real-time data. Use this when you need daily aggregated data rather than real-time updates. ### Overview Daily feed of high-risk domains that are observed to be active within a 24 hour time window. The Daily Domain Hotlist is available in multiple variants, each filtered by different risk score thresholds. All variants require passive DNS activity within 24 hours. Inclusion threshold: Varies by variant. See File naming section below. Format: Tab-separated text file (gzipped); one domain per line with component risk scores Size: ~900,000 domains; compressed size varies by variant. See Download size. Note: The Daily Domain Hotlist is also available in RPZ format. Contact enterprisesupport@domaintools.com for information about RPZ delivery. ### Base URL ```text https://api.domaintools.com/v1/download/daily_domain_hotlist/ ``` ### Daily Download parameters The Daily Download API supports standard download parameters: #### api_username Type: string (required for HMAC and open key auth) Your DomainTools API username #### api_key Type: string (required for open key auth) Your DomainTools API key #### signature Type: string (required for HMAC auth) HMAC signature of your request #### timestamp Type: string (required for HMAC auth) Current timestamp for HMAC authentication in ISO 8601 format #### limit Type: integer (optional) Limit the list of signed files. Ordering of files is always descending, so the latest files are first. #### page Type: integer (optional) Select which page of results are returned. Pages begin at 0 with latest results. #### prefix Type: string (optional) Filter results by date using the file prefix. ### Daily Download response structure The API returns a JSON response with signed URLs for downloadable files: download_name (string): The feed identifier (daily_domain_hotlist) files (array): List of downloadable file entries Each file object contains: | Field | Type | Description | |-------|------|-------------| | name | string | File path (e.g., daily_domain_hotlist/99s.domainhotlist.gz) | | last_modified | string | Last modified date in ISO 8601 format | | etag | string | Entity tag (hash of the file) | | size | integer | Size in bytes | | url | string | Signed AWS download URL (valid for 12 hours) | ### Daily Download response codes | Code | Status | Description | |------|--------|-------------| | 200 | OK | The request was successful | | 400 | Bad request | Invalid request parameters | | 401 | Unauthorized | Missing or invalid authentication | | 403 | Forbidden | Insufficient permissions | | 404 | No data to download | No files available | ### Daily Download file naming The Daily Domain Hotlist is available in five variants, filtered by Domain Risk Score thresholds: - 90s.domainhotlist.gz: Domains with Proximity ≥ 70 OR (Malware Risk ≥ 90 AND Phishing Risk ≥ 90) - 95s.domainhotlist.gz: Domains with Proximity ≥ 85 OR (Malware Risk ≥ 95 AND Phishing Risk ≥ 95) - 99s.domainhotlist.gz: Domains with Proximity ≥ 85 OR (Malware Risk ≥ 99 AND Phishing Risk ≥ 99) - 1k.domainhotlist.gz: Top 1,000 highest-risk domains with Proximity ≥ 75 OR (Malware Risk ≥ 90 AND Phishing Risk ≥ 90) - 100k.domainhotlist.gz: Top 100,000 highest-risk domains with Proximity ≥ 75 OR (Malware Risk ≥ 90 AND Phishing Risk ≥ 90) All variants require passive DNS activity within 24 hours. ### Download size The size value in each Download API file entry gives the compressed file size in bytes. Example compressed file sizes: | File | Approximate compressed size | | --- | --- | | 99s.domainhotlist.gz | 23.55 MB | | 95s.domainhotlist.gz | 25.05 MB | | 90s.domainhotlist.gz | 39.31 MB | | 1k.domainhotlist.gz | 6.08 KB | | 100k.domainhotlist.gz | 692.28 KB | These examples use decimal KB and MB. Actual sizes vary by variant. Check the Download API's size values for current file sizes. ### File contents The tab-separated file contains one domain per line with the following fields: - Domain Name: The apex-level domain - Phishing: Machine learning classifier prediction for phishing (0-100) - Malware: Machine learning classifier prediction for malware (0-100) - Spam: Machine learning classifier prediction for spam (0-100) - Proximity: Indicates shared registration or infrastructure with known-bad domains (0-100) Example line: ```text example.com 75 85 88 99 ``` The risk score fields are used to filter domains into the different hotlist variants as described in the File naming section. For detailed information about these scores, see the Domain Risk Score user guide. ### Daily Download examples List available files: ```sh curl -H "X-Api-Key: $DOMAINTOOLS_API_KEY" \ 'https://api.domaintools.com/v1/download/daily_domain_hotlist/' ``` Download a specific file: ```sh # Get the file list curl -H "X-Api-Key: $DOMAINTOOLS_API_KEY" \ 'https://api.domaintools.com/v1/download/daily_domain_hotlist/?limit=1' > files.json # Download the file curl -o daily-domain-hotlist.gz "$(jq -r '.response.files[0].url' files.json)" # Decompress and view gunzip daily-domain-hotlist.gz head daily-domain-hotlist ``` ## RPZ Access The Domain Hotlist feed is available via Response Policy Zone (RPZ) for direct integration with DNS firewalls. ### Overview Response Policy Zone (RPZ) provides DNS-level blocking by integrating Threat Feeds directly into your DNS resolver. This allows you to automatically block or redirect DNS queries for domains in the feed, providing real-time protection before connections are established. How RPZ works: When a user attempts to access a domain in the RPZ feed, your DNS resolver responds with an NXDOMAIN ("no such domain") status code, effectively making the domain unavailable. This blocks malicious domains at the DNS layer, preventing endpoint communication before any connection is established. Benefits: - Real-time protection: Blocks threats at the DNS resolver level - Automatic updates: Receives updates via DNS zone transfers (AXFR/IXFR) - No client configuration: Works transparently for all clients using your DNS resolver - Efficient: Minimal performance impact on DNS resolution - Standard protocol: Uses DNS Response Policy Zones specification Zone naming format: RPZ zones are named using the pattern: [interval].[feed].rpz.domaintools.com Available time intervals: 5m, 10m, 30m, 1h, 3h (and 12h/24h for some feeds — availability varies by feed) Larger time intervals are supersets that include smaller intervals. Smaller intervals have smaller zone sizes and may be available faster. ### Available zones The Domain Hotlist feed is available in the following RPZ zones: - 1k.domainhotlist.rpz.domaintools.com - Top 1,000 highest-risk domains with Proximity ≥ 75 OR (Malware Risk ≥ 90 AND Phishing Risk ≥ 90) - 100k.domainhotlist.rpz.domaintools.com - Top 100,000 highest-risk domains with Proximity ≥ 75 OR (Malware Risk ≥ 90 AND Phishing Risk ≥ 90) - 90s.domainhotlist.rpz.domaintools.com - Domains with Proximity ≥ 70 OR (Malware Risk ≥ 90 AND Phishing Risk ≥ 90) - 95s.domainhotlist.rpz.domaintools.com - Domains with Proximity ≥ 85 OR (Malware Risk ≥ 95 AND Phishing Risk ≥ 95) - 99s.domainhotlist.rpz.domaintools.com - Domains with Proximity ≥ 85 OR (Malware Risk ≥ 99 AND Phishing Risk ≥ 99) All zones require passive DNS activity within the last 24 hours. Choosing a zone: - Smaller numbers = higher confidence, lower volume: The 1k and 99s zones contain the highest-risk domains with the fewest false positives - Larger numbers = broader coverage, higher volume: The 100k and 90s zones provide more comprehensive coverage but may include more borderline cases - Choose based on your risk tolerance and infrastructure capacity ### Configuration Configuration requirements: To access RPZ feeds, you need to: 1. Provide IP addresses: Contact enterprisesupport@domaintools.com with: - IP address(es) from which you connect to the RPZ provider DNS server - IP address(es) to receive DNS NOTIFY messages (typically the same) 2. Configure firewall: Add rules to allow DomainTools hosts to send UDP packets to port 53: - IPv4: 104.244.13.88 Port: 53 - IPv4: 104.244.14.88 Port: 53 3. Set up TSIG authentication: DomainTools uses TSIG (Secret Key Transaction Authentication) for authorization: - TSIG key algorithm: hmac-sha512 - TSIG key and key name: Provided by DomainTools Enterprise Support Delivery method: RPZ feeds are delivered via: - Incremental Zone Transfers (IXFR) - Full zone transfers (AXFR) - DNS NOTIFY messages to trigger zone updates For detailed configuration instructions, including DNS resolver setup, advanced features (allowlists, walled gardens, logging), and troubleshooting, see the Response Policy Zone documentation. ### Testing Testing your RPZ configuration: When your DNS resolver blocks a domain using RPZ, the response includes an SOA (Start of Authority) record that identifies which RPZ feed was used. Test domain: Each RPZ feed includes a test domain entry: test.rpz.domaintools.test Use this to verify the RPZ feed is loaded and working. A successful test returns: - NXDOMAIN status code - SOA record in the ADDITIONAL section showing the specific feed name Example SOA record: ```text ;; ADDITIONAL SECTION: 3h.iphotlist.rpz.domaintools.com. 86400 IN SOA rpz-ns1.domaintools.com. noc.domaintools.com. 946684799 600 300 86400 86400 ``` The SOA SERIAL number (Unix epoch timestamp) indicates when the feed was last regenerated. Troubleshooting: If the SOA record appears in the AUTHORITY section instead of ADDITIONAL, or doesn't show the specific feed name, the response didn't come from RPZ. Check your DNS resolver's RPZ-related logs for additional debugging information. ### RPZ examples Test the RPZ feed: ```sh # Query the test domain dig test.rpz.domaintools.test # Expected response includes NXDOMAIN and SOA record showing the feed name # Example SOA in ADDITIONAL section: # 1k.domainhotlist.rpz.domaintools.com. 86400 IN SOA rpz-ns1.domaintools.com. ... ``` Verify a specific zone is loaded: ```sh # Test with the top 1,000 highest-risk zone dig @your-dns-server test.rpz.domaintools.test # Check the SOA record shows: 1k.domainhotlist.rpz.domaintools.com ``` ## Related resources - Domain Risk feed - Newly Active Domains feed - Domain Risk Score user guide - Response Policy Zone documentation The Domain Risk feed provides a continuous data stream of all newly-scored, high-risk domains (combined score of 70+), regardless of their recent activity. This offers comprehensive visibility into potentially dangerous infrastructure that may not be currently active but still poses a risk. ## Overview Domains are apex-level (for example, example.com but not www.example.com), and the feed includes all domains that reach a combined Domain Risk Score of 70 or higher, whether or not they show recent activity. Use this feed when you need to: - Gain comprehensive visibility into potentially dangerous infrastructure - Enable proactive threat intelligence for early detection - Set up automated detection rules in TIPs or SIEMs - Trigger alerts when network devices communicate with high-risk domains - Create automated playbooks for domain enrichment - Prioritize threats more quickly Inclusion criteria: All apex-level domains with a combined Domain Risk Score of 70 or higher, regardless of observed activity. Important note: While Domain Risk entries don't expire, we recommend using entries no older than 24 hours for optimal threat detection. ## Quick Start Get started with the Domain Risk feed in under 60 seconds using the Real-time Feed API: ```sh # Start polling for high-risk domains curl -H "X-Api-Key: $DOMAINTOOLS_API_KEY" \ 'https://api.domaintools.com/v1/feed/domainrisk/?sessionID=myThreatIntel' ``` This returns the last hour of data. Call again with the same sessionID to get only new data since your last request. See Real-time Feed API for complete details and Authentication for auth options. ## Requirements You need the following to access Threat Feeds: - An Enterprise Account with DomainTools, accessible at https://account.domaintools.com/my-account/ - Authentication credentials (API key for header authentication, or API username and key for HMAC or open key authentication) - A way to interact with a REST API delivered through AWS Obtain your API credentials from your group's API administrator. API administrators can manage their API keys at https://research.domaintools.com, selecting the drop-down account menu and choosing API admin. For assistance, contact enterprisesupport@domaintools.com. ## Authentication You can authenticate to the Domain Risk APIs using three different methods. Choose the method that best fits your security requirements and technical environment. ### API key (header) authentication Authenticate your requests by including the API key in the header of each HTTP request. The API key serves as a unique identifier and authenticates your requests. Required header: X-Api-Key: $DOMAINTOOLS_API_KEY Examples: ```sh # Feed API request curl -H "X-Api-Key: $DOMAINTOOLS_API_KEY" \ 'https://api.domaintools.com/v1/feed/domainrisk/?sessionID=myThreatIntel' ``` ```sh # Download API request curl -H "X-Api-Key: $DOMAINTOOLS_API_KEY" \ 'https://api.domaintools.com/v1/download/domainrisk/' ``` ### HMAC authentication HMAC authentication is a secure alternative to API key-based methods. It requires signing each request with an HMAC digest derived from your API key, providing integrity and authenticity without exposing credentials directly in the request. This method is recommended for systems where authentication credentials shouldn't be stored in plain text or included directly in request URLs. DomainTools supports MD5, SHA1, and SHA256 for the hashing algorithm. Use SHA256 — it's the recommended choice and is more resistant to collision attacks than MD5 or SHA1. Required query parameters: - api_username: Your DomainTools API username - signature: HMAC-SHA256 signature of api_username + timestamp + uri_path - timestamp: Current UTC timestamp in ISO 8601 format (for example, 2025-06-01T15:30:00Z) Constructing the HMAC signature: ```sh signature = HMAC-SHA256(api_key, api_username + timestamp + uri_path) ``` Caution: URI path must include API version The uri_path parameter must include the API version prefix. For example, use /v1/feed/nod/ not /feed/nod/. Example Python signing function: ```python import hmac import hashlib def sign(api_username, api_key, timestamp, uri): params = f"{api_username}{timestamp}{uri}" return hmac.new(api_key.encode("utf-8"), params.encode("utf-8"), hashlib.sha256).hexdigest() ``` Note: HMAC timestamp requirements The timestamp parameter in HMAC authentication must be current (within a few minutes of the server time). The timestamps shown in these examples are static for demonstration purposes. In production, generate a fresh timestamp for each request using your system's current time in ISO 8601 UTC format (e.g., 2025-01-06T15:30:00Z). Examples: ```sh # Feed API request with HMAC curl 'https://api.domaintools.com/v1/feed/domainrisk/?api_username=YOUR_USERNAME&signature=HMAC_SIGNATURE×tamp=2025-01-06T15:30:00Z&sessionID=myThreatIntel' ``` ```sh # Download API request with HMAC curl 'https://api.domaintools.com/v1/download/domainrisk/?api_username=YOUR_USERNAME&signature=HMAC_SIGNATURE×tamp=2025-01-06T15:30:00Z' ``` ### Open key authentication This is the easiest authentication scheme to implement, but also the least secure. Each request contains the full API key and API username as query parameters. We recommend using API key header authentication or HMAC authentication instead. If you're unsure about your authentication options, contact enterprisesupport@domaintools.com. Required query parameters: - api_username: Your API username - api_key: Your API key Examples: ```sh # Feed API request curl 'https://api.domaintools.com/v1/feed/domainrisk/?api_username=YOUR_USERNAME&api_key=YOUR_API_KEY&sessionID=myThreatIntel' ``` ```sh # Download API request curl 'https://api.domaintools.com/v1/download/domainrisk/?api_username=YOUR_USERNAME&api_key=YOUR_API_KEY' ``` ## Real-time Feed API The Feed API provides real-time access to current Domain Risk data. Use this API to poll for the latest feed updates at regular intervals, maintain a session to track your position in the feed, and filter results based on your specific needs. ### Base URL ```text https://api.domaintools.com/v1/feed/domainrisk/ ``` ### Rate limits Real-time feeds have the following rate limits: - 2 queries per minute - 120 queries per hour If you exceed these limits, the API returns an error. ### Response formats The API supports two response formats: NDJSON (Newline-Delimited JSON) - Default format when no Accept header is specified - Also known as JSON Lines (JSONL) - One JSON object per line - Efficient for streaming and processing large datasets - Set Accept: application/x-ndjson to explicitly request this format CSV (Comma-Separated Values) - Set Accept: text/csv to request CSV format - Add &headers=1 to the query parameters to include column headers as the first line - Not available for all feeds; check the specific feed documentation for CSV support ### Session management Session management allows you to maintain your position in the feed data stream, ensuring you don't miss or duplicate events when polling the API. How sessions work: - Start a new session: Provide a unique sessionID parameter of your choosing. By default, the API returns the past hour of results. - Resume a session: Use the same sessionID in subsequent requests. The API returns all data since your last request. - Handle large result sets: If a single request exceeds 10M results, the API returns an HTTP 206 response code. Repeat the same request with the same sessionID to receive the next batch of data until you receive an HTTP 200 response code. - One request at a time: Do not send simultaneous requests with the same sessionID for the same feed. Wait for each request to complete before sending the next one. Concurrent requests with the same sessionID can produce errors or incomplete results. - Delete a session: Use an HTTP DELETE request with your sessionID to clear the saved offset and start fresh. Session ID requirements: - 1 to 64 characters in length - Alphanumeric characters and hyphens only ([a-zA-Z0-9-]+) - Case-sensitive ### Quick start The standard access pattern is to periodically request the most recent feed data, as often as every 60 seconds. ```sh curl -H "X-Api-Key: $DOMAINTOOLS_API_KEY" \ 'https://api.domaintools.com/v1/feed/domainrisk/?sessionID=myThreatIntel' ``` This starts a new session and returns the last hour of data. Subsequent calls with the same sessionID return data since the last request. ### Feed API parameters #### sessionID Type: String Valid values: 1-64 alphanumeric characters and hyphens ([a-zA-Z0-9-]+) Description: A unique identifier for the session, used for resuming data retrieval from the last point. Use a new sessionID to begin a new session, fetching the most recent hour by default. Reuse the same sessionID to return all feed data since your last request. If omitted, time window parameters (such as after/before) are required. Example: sessionID=mySOC Required: Yes, to continue where you left off (or use after/before instead) #### after Type: Integer or string Valid values: - Integer: -1 to -432,000 (relative seconds before current time) - String: ISO 8601 datetime in UTC format (YYYY-MM-DDTHH:MM:SSZ) Description: The start of the query window (inclusive). When using an integer, the value is in seconds relative to the current time. When using a string, provide an absolute timestamp. The query window covers the most recent 5 days. A value older than 5 days is capped to the start of that window, and the response begins 5 days back. Example: after=-60 or after=2024-10-16T10:20:00Z Required: Yes, if before or sessionID not provided #### before Type: Integer or string Valid values: - Integer: -1 to -432,000 (relative seconds before current time) - String: ISO 8601 datetime in UTC format (YYYY-MM-DDTHH:MM:SSZ) Description: The end of the query window (inclusive). When using an integer, the value is in seconds relative to the current time. When using a string, provide an absolute timestamp. The query window covers the most recent 5 days. A value older than 5 days places the window entirely outside it, and the response contains no records. Example: before=-120 or before=2024-10-16T10:20:00Z Required: Yes, if after or sessionID not provided #### domain Type: String Valid values: Domain character set restricted by the DNS specification (letters, digits, hyphens). International characters should be specified in punycode. A trailing dot is acceptable. Description: Filter for an exact domain or a domain substring by prefixing or suffixing your string with *. Multiple parameters are supported (for example, ?domain=*apple*&domain=*microsoft*). The URL-encoded version of * (%2A) may be required in some clients. Example: domain=*bank* or domain=example.com Required: No #### fromBeginning Type: Boolean Valid values: true, false, 1, 0 Description: Requires a sessionID. Set fromBeginning=true on the first request with a new session ID to return the first hour of data in the time window rather than the last. false is the default. Using it with a session ID that already exists returns HTTP 406, so drop fromBeginning from subsequent requests. Using it without a sessionID, or passing a value that isn't a boolean, returns HTTP 422. Example: fromBeginning=true Required: No #### top Type: Integer Valid values: Positive integer, 1-1,000,000,000 Description: Limits the number of results in the response payload. Primarily intended for testing. Example: top=10 Required: No #### headers Type: Boolean Valid values: true, false, 1, 0 Description: Adds a header row as the first line of the response when text/csv is requested. Set headers=1 to enable; false is the default. Enabling it on a request that doesn't ask for text/csv returns HTTP 422, as does a value that isn't a boolean. Example: headers=1 Required: No #### Domain Risk filter parameters Type: integer (optional) Range: 1-99 Filter results to include only domains with risk scores greater than or equal to the specified threshold. You can apply multiple risk score filters simultaneously. When multiple filters are used, domains must meet ALL specified thresholds to be included in the results. Available risk score filters: - overall_min - Minimum overall risk score - malware_min - Minimum malware risk score - phishing_min - Minimum phishing risk score - spam_min - Minimum spam risk score - proximity_min - Minimum proximity risk score ### Feed API response structure The API returns NDJSON format with one domain per line. About Domain Risk Scores: Domain Risk Scores predict the likelihood that a domain was registered with malicious intent. Each score ranges from 0-100, with special meanings for 0 (zero-listed/excluded from scoring) and 100 (blocklisted/known-bad). Regular scores range from 1-99, with null values indicating the domain has aged out of that threat profile. | Score Range | Score Color | Description | | :---- | :---- | :---- | | 100 | Red | Blocklisted. These domains can be considered known-bad, and have the highest likelihood of malicious intent. This includes sinkholed domains. DomainTools combines third party blocklists with our own scoring to determine which domains to blocklist. | | 90-99 | Red | Strong confidence in near-term weaponization. | | 70-89 | Orange | A potential threshold for suggesting malicious intent, and our default recommendation for significance in an investigation. Individual mileage may vary, depending on your security context and priorities. | | 50-69 | Yellow | May require attention, depending on your security posture. | | 1-49 | Grey | Very little evidence of malicious intent. | | 0 | Grey | Zero-listed. DomainTools excludes the domain from risk scoring, so it receives no 1-99 risk value. Reasons for zero-listing a domain include well-known, established domains that could otherwise be blocked by mistake, and domains vital to the expected operation of the Internet. A score of 0 reflects exclusion from scoring and isn't in itself a judgment that the domain is safe. | See the Domain Risk Score user guide for complete details. Response fields: timestamp (string): ISO 8601 UTC timestamp when the domain was scored or observed domain (string): The apex-level domain name phishing_risk (integer, nullable): Phishing risk score (0-100), or null if not applicable malware_risk (integer, nullable): Malware risk score (0-100), or null if not applicable spam_risk (integer, nullable): Spam risk score (0-100), or null if not applicable proximity_risk (integer): Proximity risk score (0-100) overall_risk (integer): Overall combined risk score (0-100) Example response: ```json {"timestamp":"2025-01-06T15:30:42Z","domain":"example.com","phishing_risk":94,"malware_risk":88,"spam_risk":93,"proximity_risk":80,"overall_risk":94} {"timestamp":"2025-01-06T15:30:45Z","domain":"example.net","phishing_risk":96,"malware_risk":91,"spam_risk":99,"proximity_risk":85,"overall_risk":99} ``` ### Feed API response codes | Code | Status | Description | |------|--------|-------------| | 200 | OK | The request was successful and all data has been delivered | | 206 | Partial content | The request was successful, but only a portion of the data was returned. The request exceeded 10M results or the 1-hour evaluation window. Repeat the same request with the same sessionID to receive the next batch of data until you receive an HTTP 200 response | | 400 | Bad request | The request is malformed | | 403 | Forbidden | Missing or invalid API credentials | | 404 | Not found | The requested resource (such as a sessionID) doesn't exist | | 406 | Not acceptable | Either the specified Accept header value isn't supported (only application/x-ndjson and text/csv are accepted), or fromBeginning was used with a sessionID that already exists | | 422 | Unprocessable entity | The request is syntactically valid but violates semantic or domain-specific rules (for example, invalid query parameter values) | ### Feed API examples Basic session polling: ```sh # Start a new session curl -H "X-Api-Key: $DOMAINTOOLS_API_KEY" \ 'https://api.domaintools.com/v1/feed/domainrisk/?sessionID=myThreatIntel' ``` ```sh # Resume the session (returns data since last request) curl -H "X-Api-Key: $DOMAINTOOLS_API_KEY" \ 'https://api.domaintools.com/v1/feed/domainrisk/?sessionID=myThreatIntel' ``` Time window filtering: ```sh # Get data from a specific time range curl -H "X-Api-Key: $DOMAINTOOLS_API_KEY" \ 'https://api.domaintools.com/v1/feed/domainrisk/?after=2025-01-06T10:00:00Z&before=2025-01-06T11:00:00Z' ``` Domain filtering: ```sh # Filter for specific domain patterns curl -H "X-Api-Key: $DOMAINTOOLS_API_KEY" \ 'https://api.domaintools.com/v1/feed/domainrisk/?domain=*.example.com&sessionID=myThreatIntel' ``` CSV format: ```sh # Request CSV format with headers curl -H 'Accept: text/csv' -H "X-Api-Key: $DOMAINTOOLS_API_KEY" \ 'https://api.domaintools.com/v1/feed/domainrisk/?headers=1&sessionID=myThreatIntel' ``` ```sh # Request CSV format without headers curl -H 'Accept: text/csv' -H "X-Api-Key: $DOMAINTOOLS_API_KEY" \ 'https://api.domaintools.com/v1/feed/domainrisk/?sessionID=myThreatIntel' ``` Risk score filtering: ```sh # Filter for domains with overall risk ≥ 90 curl -H "X-Api-Key: $DOMAINTOOLS_API_KEY" \ 'https://api.domaintools.com/v1/feed/domainrisk/?overall_min=90&sessionID=myThreatIntel' ``` ```sh # Filter for domains with high phishing and malware risk curl -H "X-Api-Key: $DOMAINTOOLS_API_KEY" \ 'https://api.domaintools.com/v1/feed/domainrisk/?phishing_min=80&malware_min=80&sessionID=myThreatIntel' ``` ```sh # Limit the response to 10 records curl -H "X-Api-Key: $DOMAINTOOLS_API_KEY" \ 'https://api.domaintools.com/v1/feed/domainrisk/?top=10&sessionID=myThreatIntel' ``` Handling large result sets: ```sh # If you receive HTTP 206, repeat the request to get the next batch curl -H "X-Api-Key: $DOMAINTOOLS_API_KEY" \ 'https://api.domaintools.com/v1/feed/domainrisk/?sessionID=myThreatIntel' ``` ```sh # Repeat until you receive HTTP 200 curl -H "X-Api-Key: $DOMAINTOOLS_API_KEY" \ 'https://api.domaintools.com/v1/feed/domainrisk/?sessionID=myThreatIntel' ``` Delete a session: ```sh # Clear the saved offset and start fresh curl -X DELETE -H "X-Api-Key: $DOMAINTOOLS_API_KEY" \ 'https://api.domaintools.com/v1/feed/domainrisk/?sessionID=myThreatIntel' ``` ## Real-time Download API The Real-time Download API provides access to historical Domain Risk data through temporary AWS S3 file links. Use this API to retrieve archived data you may have missed or to backfill your systems with historical information. Files are organized by hour and available for 90 days. ### Base URL ```text https://api.domaintools.com/v1/download/domainrisk/ ``` ### Download API parameters #### limit Type: Integer Valid values: Positive integer Description: Limits the number of files returned in the response, starting from the most recent. Use to control payload size or test specific cases. Example: limit=10 Required: No #### page Type: Integer Valid values: Non-negative integer (0, 1, 2, ...) Description: Selects which page of results to return. Pages begin at 0 with the latest results. Use with limit and prefix to control results. The server returns an HTTP 404 (No data to download.) message when the page request exceeds the last page of results. Example: page=3 Required: No #### prefix Type: String Valid values: Date/time prefix matching the feed's filename format Description: Filters results by date using the file prefix. Use with page and limit to control results. Filename prefixes vary by feed. For example, files for this feed begin with the date in YYYY-MM-DD format. Example: prefix=2025-06-24 Required: No ### Download API response structure The API returns a JSON response containing an array of downloadable files. Each file entry includes: download_name (string): The feed identifier (domainrisk) files (array): List of downloadable file entries Each file object contains: | Field | Type | Description | |-------|------|-------------| | name | string | Path and filename of the downloadable file | | last_modified | string | Timestamp of last modification in ISO 8601 UTC format | | etag | string | ETag (hash) used to verify file identity and versioning | | size | integer | File size in bytes | | url | string | Temporary signed URL to download the file from AWS | File naming convention: - Data file: domainrisk/{YYYY-MM-DD}/domainrisk-{YYYYMMDD}.{HH00}-{HH00}.json.gz - Checksum file: domainrisk/{YYYY-MM-DD}/domainrisk-{YYYYMMDD}.{HH00}-{HH00}.json.gz.sha256 Example response: ```json { "response": { "download_name": "domainrisk", "files": [ { "name": "domainrisk/2024-11-19/domainrisk-20241119.1900-2000.json.gz.sha256", "last_modified": "2024-11-19T20:00:11+00:00", "etag": "\"67a6d9b0973b2d31ffb779dc8f7f8cfa\"", "size": 64, "url": "https://download.example.com/domainrisk/2024-11-19/domainrisk-20241119.1900-2000.json.gz.sha256?Expires=..." }, { "name": "domainrisk/2024-11-19/domainrisk-20241119.1900-2000.json.gz", "last_modified": "2024-11-19T20:00:11+00:00", "etag": "\"67a6d9b0973b2d31ffb779dc8f7f8cfa\"", "size": 1850000, "url": "https://download.example.com/domainrisk/2024-11-19/domainrisk-20241119.1900-2000.json.gz?Expires=..." } ] } } ``` ### Download API response codes | Code | Status | Description | |------|--------|-------------| | 200 | OK | The request was successful | | 400 | Bad request | The request is malformed | | 401 | Unauthorized | Missing or invalid API credentials | | 403 | Forbidden | Missing or invalid API credentials | | 404 | Not found | No data to download | | 422 | Unprocessable entity | The request is syntactically valid but violates semantic or domain-specific rules (for example, invalid query parameter values) | ### Download API file contents The *.json.gz.sha256 file is a checksum containing a SHA-256 hash value used to verify the integrity of the downloaded file. The *.json.gz file, when uncompressed, contains JSON data in the same format as the Feed API response (NDJSON with timestamp, domain, and risk score fields). ### Download API examples List available files: ```sh # Get the most recent files curl -H "X-Api-Key: $DOMAINTOOLS_API_KEY" \ 'https://api.domaintools.com/v1/download/domainrisk/?limit=10' ``` Download and verify a file: ```sh # Get the file list curl -H "X-Api-Key: $DOMAINTOOLS_API_KEY" \ 'https://api.domaintools.com/v1/download/domainrisk/?limit=2' > files.json # Extract the URL and download the data file curl -o domainrisk-data.json.gz "$(jq -r '.response.files[1].url' files.json)" # Download the checksum file curl -o domainrisk-data.json.gz.sha256 "$(jq -r '.response.files[0].url' files.json)" # Verify the integrity sha256sum -c domainrisk-data.json.gz.sha256 ``` Batch processing: ```sh # Download multiple files in a loop for url in $(curl -H "X-Api-Key: $DOMAINTOOLS_API_KEY" \ 'https://api.domaintools.com/v1/download/domainrisk/?limit=24' | \ jq -r '.response.files[].url' | grep '\.json\.gz$'); do curl -O "$url" done ``` ## Daily Download API The Daily Download API provides daily batch summaries as an alternative to hourly real-time data. Use this when you need daily aggregated data rather than real-time updates. The Daily Domain Risk feed is significantly larger than the real-time feed, containing approximately 30 million domains. ### Overview Daily feed of high-risk domains, regardless of observed traffic. Inclusion threshold: Combined Risk score of 70+ Format: Tab-separated text file (gzipped); one domain per line with component risk scores Size: ~30 million domains, ~400MB compressed ### Base URL ```text https://api.domaintools.com/v1/download/daily_domain_risk/ ``` ### Daily Download parameters The Daily Download API supports standard download parameters: #### api_username Type: string (required for HMAC and open key auth) Your DomainTools API username #### api_key Type: string (required for open key auth) Your DomainTools API key #### signature Type: string (required for HMAC auth) HMAC signature of your request #### timestamp Type: string (required for HMAC auth) Current timestamp for HMAC authentication in ISO 8601 format #### limit Type: integer (optional) Limit the list of signed files. Ordering of files is always descending, so the latest files are first. #### page Type: integer (optional) Select which page of results are returned. Pages begin at 0 with latest results. #### prefix Type: string (optional) Filter results by date using the file prefix. ### Daily Download response structure The API returns a JSON response with signed URLs for downloadable files: download_name (string): The feed identifier (daily_domain_risk) files (array): List of downloadable file entries Each file object contains: | Field | Type | Description | |-------|------|-------------| | name | string | File path (e.g., domain_risk_feed/threat_profile_proximity.gz) | | last_modified | string | Last modified date in ISO 8601 format | | etag | string | Entity tag (hash of the file) | | size | integer | Size in bytes | | url | string | Signed AWS download URL (valid for 12 hours) | ### Daily Download response codes | Code | Status | Description | |------|--------|-------------| | 200 | OK | The request was successful | | 400 | Bad request | Invalid request parameters | | 401 | Unauthorized | Missing or invalid authentication | | 403 | Forbidden | Insufficient permissions | | 404 | No data to download | No files available | ### Daily Download file naming Daily files follow this naming pattern: ```text domain_risk_feed/threat_profile_proximity.gz ``` ### File contents The tab-separated file contains one domain per line with the following fields: - Domain Name - Phishing (risk score) - Malware (risk score) - Spam (risk score) - Proximity (risk score) - Overall (combined risk score - equals highest of the component scores) ### Daily Download examples List available files: ```sh curl -H "X-Api-Key: $DOMAINTOOLS_API_KEY" \ 'https://api.domaintools.com/v1/download/daily_domain_risk/' ``` Download a specific file: ```sh # Get the file list curl -H "X-Api-Key: $DOMAINTOOLS_API_KEY" \ 'https://api.domaintools.com/v1/download/daily_domain_risk/?limit=1' > files.json # Download the file curl -o daily-domain-risk.gz "$(jq -r '.response.files[0].url' files.json)" # Decompress and view gunzip daily-domain-risk.gz head daily-domain-risk ``` ## Related resources - Domain Hotlist feed - Newly Active Domains feed - Domain Risk Score user guide The IP Hotlist feed identifies high-risk IP addresses that host hostile domains actively communicating within a 24-hour time window. This focused feed provides risk scores and enrichment data for IP addresses where more than 50% of hosted domains are high-risk and actively communicating. ## Overview This feed captures IP addresses that meet strict criteria for both risk level and recent activity. The feed provides the same enrichment data as the IP Risk feed, but filters it to show high-risk and currently active infrastructure. Use this feed when you need to: - Prioritize investigation of high-risk, active hostile infrastructure - Identify recently active hostile infrastructure - Enhance security operations center (SOC) and threat intel workflows with IP-based enrichment - Triage IP-based alerts - Monitor threat actor hosting infrastructure - Investigate infrastructure associated with active C2 servers Inclusion criteria: More than 50% of domains on the IP address have a proximity score of 70+ OR Threat Profile score of 90+; pDNS activity on malicious domains within 24 hours. Daily download format: Gzip-compressed tab-separated (TSV) text file Size: 40-50,000 IP addresses; compressed size varies. See Download size. ## Quick Start Get started with the IP Hotlist feed in under 60 seconds using the Real-time Feed API: ```sh # Start polling for high-risk, actively communicating IPs curl -H "X-Api-Key: $DOMAINTOOLS_API_KEY" \ 'https://api.domaintools.com/v1/feed/iphotlist/?sessionID=mySession' ``` This returns the last hour of data. Call again with the same sessionID to get only new data since your last request. See Real-time Feed API for complete details and Authentication for auth options. ## Requirements You need the following to access Threat Feeds: - An Enterprise Account with DomainTools, accessible at https://account.domaintools.com/my-account/ - Authentication credentials (API key for header authentication, or API username and key for HMAC or open key authentication) - A way to interact with a REST API delivered through AWS Obtain your API credentials from your group's API administrator. API administrators can manage their API keys at https://research.domaintools.com, selecting the drop-down account menu and choosing API admin. For assistance, contact enterprisesupport@domaintools.com. ## Authentication You can authenticate to the IP Hotlist API using three different methods. Choose the method that best fits your security requirements and technical environment. ### API key (header) authentication Authenticate your requests by including the API key in the header of each HTTP request. The API key serves as a unique identifier and authenticates your requests. Required header: X-Api-Key: $DOMAINTOOLS_API_KEY Examples: ```sh # Feed API request curl -H "X-Api-Key: $DOMAINTOOLS_API_KEY" \ 'https://api.domaintools.com/v1/feed/iphotlist/?sessionID=mySession' ``` ```sh # Download API request curl -H "X-Api-Key: $DOMAINTOOLS_API_KEY" \ 'https://api.domaintools.com/v1/download/iphotlist/' ``` ### HMAC authentication HMAC authentication is a secure alternative to API key-based methods. It requires signing each request with an HMAC digest derived from your API key, providing integrity and authenticity without exposing credentials directly in the request. This method is recommended for systems where authentication credentials shouldn't be stored in plain text or included directly in request URLs. DomainTools supports MD5, SHA1, and SHA256 for the hashing algorithm. Use SHA256 — it's the recommended choice and is more resistant to collision attacks than MD5 or SHA1. Required query parameters: - api_username: Your DomainTools API username - signature: HMAC-SHA256 signature of api_username + timestamp + uri_path - timestamp: Current UTC timestamp in ISO 8601 format (for example, 2025-06-01T15:30:00Z) Constructing the HMAC signature: ```sh signature = HMAC-SHA256(api_key, api_username + timestamp + uri_path) ``` Caution: URI path must include API version The uri_path parameter must include the API version prefix. For example, use /v1/feed/nod/ not /feed/nod/. Example Python signing function: ```python import hmac import hashlib def sign(api_username, api_key, timestamp, uri): params = f"{api_username}{timestamp}{uri}" return hmac.new(api_key.encode("utf-8"), params.encode("utf-8"), hashlib.sha256).hexdigest() ``` Note: HMAC timestamp requirements The timestamp parameter in HMAC authentication must be current (within a few minutes of the server time). The timestamps shown in these examples are static for demonstration purposes. In production, generate a fresh timestamp for each request using your system's current time in ISO 8601 UTC format (e.g., 2025-01-06T15:30:00Z). Examples: ```sh # Feed API request with HMAC curl 'https://api.domaintools.com/v1/feed/iphotlist/?api_username=YOUR_USERNAME&signature=HMAC_SIGNATURE×tamp=2025-01-06T15:30:00Z&sessionID=mySession' ``` ```sh # Download API request with HMAC curl 'https://api.domaintools.com/v1/download/iphotlist/?api_username=YOUR_USERNAME&signature=HMAC_SIGNATURE×tamp=2025-01-06T15:30:00Z' ``` ### Open key authentication This is the easiest authentication scheme to implement, but also the least secure. Each request contains the full API key and API username as query parameters. We recommend using API key header authentication or HMAC authentication instead. If you're unsure about your authentication options, contact enterprisesupport@domaintools.com. Required query parameters: - api_username: Your API username - api_key: Your API key Examples: ```sh # Feed API request curl 'https://api.domaintools.com/v1/feed/iphotlist/?api_username=YOUR_USERNAME&api_key=YOUR_API_KEY&sessionID=mySession' ``` ```sh # Download API request curl 'https://api.domaintools.com/v1/download/iphotlist/?api_username=YOUR_USERNAME&api_key=YOUR_API_KEY' ``` ## Real-time Feed API The Real-time Feed API provides streaming access to IP Hotlist data as risk assessments are updated on a rolling 24-hour basis. This enables real-time monitoring of high-risk, actively communicating hosting infrastructure. ### Base URL ```text https://api.domaintools.com/v1/feed/iphotlist/ ``` ### Feed API rate limits Real-time feeds have the following rate limits: - 2 queries per minute - 120 queries per hour If you exceed these limits, the API returns an error. ### Feed API response formats The API supports two response formats: NDJSON (Newline-Delimited JSON) - Default format when no Accept header is specified - Also known as JSON Lines (JSONL) - One JSON object per line - Efficient for streaming and processing large datasets - Set Accept: application/x-ndjson to explicitly request this format CSV (Comma-Separated Values) - Set Accept: text/csv to request CSV format - Add &headers=1 to the query parameters to include column headers as the first line - Not available for all feeds; check the specific feed documentation for CSV support ### Feed API session management Session management allows you to maintain your position in the feed data stream, ensuring you don't miss or duplicate events when polling the API. How sessions work: - Start a new session: Provide a unique sessionID parameter of your choosing. By default, the API returns the past hour of results. - Resume a session: Use the same sessionID in subsequent requests. The API returns all data since your last request. - Handle large result sets: If a single request exceeds 10M results, the API returns an HTTP 206 response code. Repeat the same request with the same sessionID to receive the next batch of data until you receive an HTTP 200 response code. - One request at a time: Do not send simultaneous requests with the same sessionID for the same feed. Wait for each request to complete before sending the next one. Concurrent requests with the same sessionID can produce errors or incomplete results. - Delete a session: Use an HTTP DELETE request with your sessionID to clear the saved offset and start fresh. Session ID requirements: - 1 to 64 characters in length - Alphanumeric characters and hyphens only ([a-zA-Z0-9-]+) - Case-sensitive ### Feed API quick start Start a new session: ```sh curl -H "X-Api-Key: $DOMAINTOOLS_API_KEY" \ 'https://api.domaintools.com/v1/feed/iphotlist/?sessionID=mySOC' ``` A new sessionID returns the last hour of data by default. Continue polling for new updates: ```sh # Call again with the same sessionID to get only new data since last call curl -H "X-Api-Key: $DOMAINTOOLS_API_KEY" \ 'https://api.domaintools.com/v1/feed/iphotlist/?sessionID=mySOC' ``` ### Feed API parameters #### Session management ##### sessionID Type: String Valid values: 1-64 alphanumeric characters and hyphens ([a-zA-Z0-9-]+) Description: A unique identifier for the session, used for resuming data retrieval from the last point. Use a new sessionID to begin a new session, fetching the most recent hour by default. Reuse the same sessionID to return all feed data since your last request. If omitted, time window parameters (such as after/before) are required. Example: sessionID=mySOC Required: Yes, to continue where you left off (or use after/before instead) ##### after Type: Integer or string Valid values: - Integer: -1 to -432,000 (relative seconds before current time) - String: ISO 8601 datetime in UTC format (YYYY-MM-DDTHH:MM:SSZ) Description: The start of the query window (inclusive). When using an integer, the value is in seconds relative to the current time. When using a string, provide an absolute timestamp. The query window covers the most recent 5 days. A value older than 5 days is capped to the start of that window, and the response begins 5 days back. Example: after=-60 or after=2024-10-16T10:20:00Z Required: Yes, if before or sessionID not provided ##### before Type: Integer or string Valid values: - Integer: -1 to -432,000 (relative seconds before current time) - String: ISO 8601 datetime in UTC format (YYYY-MM-DDTHH:MM:SSZ) Description: The end of the query window (inclusive). When using an integer, the value is in seconds relative to the current time. When using a string, provide an absolute timestamp. The query window covers the most recent 5 days. A value older than 5 days places the window entirely outside it, and the response contains no records. Example: before=-120 or before=2024-10-16T10:20:00Z Required: Yes, if after or sessionID not provided ##### fromBeginning Type: Boolean Valid values: true, false, 1, 0 Description: Requires a sessionID. Set fromBeginning=true on the first request with a new session ID to return the first hour of data in the time window rather than the last. false is the default. Using it with a session ID that already exists returns HTTP 406, so drop fromBeginning from subsequent requests. Using it without a sessionID, or passing a value that isn't a boolean, returns HTTP 422. Example: fromBeginning=true Required: No #### IP Hotlist filter parameters The following filter parameters are specific to the IP Risk and IP Hotlist feeds. Use these to narrow results based on threat metrics, domain activity, and infrastructure characteristics. ##### pdns_resolutions_min Type: Integer Valid values: Positive integer Description: Filter for IPs with at least this many domains seen in the last 24 hours. Example: pdns_resolutions_min=10 Required: No ##### bad_pdns_resolutions_min Type: Integer Valid values: Positive integer Description: Filter for IPs with at least this many confirmed bad domains seen in the last 24 hours. Example: bad_pdns_resolutions_min=5 Required: No ##### total_domains_max Type: Integer Valid values: Positive integer Description: Filter for IPs with no more than this many total domains (useful to exclude superhoster IPs). Example: total_domains_max=1000 Required: No ##### third_party_threats_min Type: Integer Valid values: Positive integer Description: Filter for IPs with at least this many domains confirmed with threats on third-party intel feeds. Example: third_party_threats_min=3 Required: No ##### all_threats_combined_percent_min Type: Integer Valid values: 0-100 Description: Filter for IPs where at least this percentage of total_domains are confirmed or predicted malicious. Example: all_threats_combined_percent_min=50 Required: No ##### combined_phishing_percent_min Type: Integer Valid values: 0-100 Description: Filter for IPs where at least this percentage of total_domains are confirmed or predicted as phishing. Example: combined_phishing_percent_min=25 Required: No ##### combined_malware_percent_min Type: Integer Valid values: 0-100 Description: Filter for IPs where at least this percentage of total_domains are confirmed or predicted as malware. Example: combined_malware_percent_min=25 Required: No ##### combined_spam_percent_min Type: Integer Valid values: 0-100 Description: Filter for IPs where at least this percentage of total_domains are confirmed or predicted as spam. Example: combined_spam_percent_min=25 Required: No ##### asn Type: Integer Valid values: Autonomous system number, digits only (no AS prefix, no wildcards) Description: Filter for IPs with a specific autonomous system number (routing provider). Example: asn=15169 Required: No ##### organization Type: String Valid values: Organization name Description: Filter for IPs associated with a specific organization. Matches the exact value only. Wildcards aren't supported. Example: organization=Example Hosting Inc Required: No ##### country_code Type: String Valid values: Two-letter country code Description: Filter for IPs geolocated to a specific country. Example: country_code=CN Required: No ##### percent_phishing_min Type: Integer Valid values: 0-100 Description: Filter for IPs where at least this percentage of total_domains are confirmed phishing. Example: percent_phishing_min=20 Required: No ##### percent_malware_min Type: Integer Valid values: 0-100 Description: Filter for IPs where at least this percentage of total_domains are confirmed malware. Example: percent_malware_min=20 Required: No ##### percent_spam_min Type: Integer Valid values: 0-100 Description: Filter for IPs where at least this percentage of total_domains are confirmed spam. Example: percent_spam_min=20 Required: No #### Result formatting ##### top Type: Integer Valid values: Positive integer, 1-1,000,000,000 Description: Limits the number of results in the response payload. Primarily intended for testing. Example: top=10 Required: No ##### headers Type: Boolean Valid values: true, false, 1, 0 Description: Adds a header row as the first line of the response when text/csv is requested. Set headers=1 to enable; false is the default. Enabling it on a request that doesn't ask for text/csv returns HTTP 422, as does a value that isn't a boolean. Example: headers=1 Required: No ### Feed API response structure The Feed API returns NDJSON (newline-delimited JSON) with one IP entry per line. Each entry includes a timestamp field indicating when the risk assessment was updated, plus all IP risk and enrichment fields. Response fields: timestamp (string): ISO 8601 UTC timestamp when the risk assessment was updated Note: For real-time feeds, the total_domains field reflects domains seen over the last 30 days (not 7 days as in the daily feed). Note: Percentage fields are a share of total_domains, truncated to an integer. A computed 37.5 percent is reported as 37. Example response: ```json {"timestamp":"2025-01-06T15:30:42Z","ip":"192.0.2.1","asn":12345,"organization":"Example Hosting LLC","city":"Amsterdam","country":"NL","latitude":52.3676,"longitude":4.9041,"pdns_resolutions":47,"bad_pdns_resolutions":42,"total_domains":183,"zerolist_domains":0,"zerolist_ip":false,"third_party_threats":38,"all_threats_combined_count":122,"all_threats_combined_percent":66,"all_threats_percent":66,"combined_phishing_percent":21,"combined_malware_percent":26,"combined_spam_percent":18,"malicious_phishing":28,"malicious_malware":33,"malicious_spam":22,"percent_phishing":21,"percent_malware":26,"percent_spam":18,"compromised_phishing":6,"compromised_malware":8,"compromised_spam":4,"predicted_phishing":6,"predicted_malware":7,"predicted_spam":8} {"timestamp":"2025-01-06T15:30:45Z","ip":"192.0.2.2","asn":67890,"organization":"Bulletproof Networks Inc","city":"Moscow","country":"RU","latitude":55.7558,"longitude":37.6173,"pdns_resolutions":31,"bad_pdns_resolutions":29,"total_domains":94,"zerolist_domains":0,"zerolist_ip":false,"third_party_threats":25,"all_threats_combined_count":87,"all_threats_combined_percent":92,"all_threats_percent":92,"combined_phishing_percent":30,"combined_malware_percent":38,"combined_spam_percent":23,"malicious_phishing":19,"malicious_malware":24,"malicious_spam":15,"percent_phishing":30,"percent_malware":38,"percent_spam":23,"compromised_phishing":4,"compromised_malware":5,"compromised_spam":3,"predicted_phishing":6,"predicted_malware":7,"predicted_spam":4} ``` #### IP and infrastructure fields | Field | Description | |-------|-------------| | ip | IP address that has www/apex domains pointing to it | | asn | The IP's ASN (autonomous system number, routing provider) | | organization | Organization associated with IP range based on geo data | | city | City based on IP geo data | | country | Country based on IP geo data | | latitude | Geographic coordinates | | longitude | Geographic coordinates | #### Domain activity metrics | Field | Description | |-------|-------------| | pdns_resolutions | Number of domains seen on the IP in the last 24 hours | | bad_pdns_resolutions | Number of confirmed bad domains seen on the IP in the last 24 hours | | total_domains | Total number of domains seen on this IP in the last 7 days | | zerolist_domains | Number of zero-listed domains seen on this IP | | zerolist_ip | Indicates if this IP is zero-listed (e.g., CDN) | #### Threat intelligence metrics | Field | Description | |-------|-------------| | third_party_threats | Number of domains on IP confirmed with any threat on a third-party intel feed | | all_threats_combined_count | Number of confirmed or predicted domains on third-party intel feed or threat profile | | all_threats_combined_percent | Percentage of total_domains that are confirmed or predicted malicious | | all_threats_percent | Percentage of total_domains including all threat types | #### Combined threat predictions | Field | Description | |-------|-------------| | combined_phishing_percent | Percentage of total_domains confirmed or predicted as phishing | | combined_malware_percent | Percentage of total_domains confirmed or predicted as malware | | combined_spam_percent | Percentage of total_domains confirmed or predicted as spam | #### Confirmed malicious threats | Field | Description | |-------|-------------| | malicious_phishing | Number of malicious phishing domains on third-party intel feeds | | malicious_malware | Number of malicious malware domains on third-party intel feeds | | malicious_spam | Number of malicious spam domains on third-party intel feeds | | percent_phishing | Percentage of total_domains that are confirmed phishing | | percent_malware | Percentage of total_domains that are confirmed malware | | percent_spam | Percentage of total_domains that are confirmed spam | #### Compromised threats | Field | Description | |-------|-------------| | compromised_phishing | Number of compromised phishing domains on third-party intel feeds | | compromised_malware | Number of compromised malware domains on third-party intel feeds | | compromised_spam | Number of compromised spam domains on third-party intel feeds | #### Predicted threats | Field | Description | |-------|-------------| | predicted_phishing | Number of domains (with no confirmed threat) predicted as phishing | | predicted_malware | Number of domains (with no confirmed threat) predicted as malware | | predicted_spam | Number of domains (with no confirmed threat) predicted as spam | ### Feed API response codes | Code | Status | Description | |------|--------|-------------| | 200 | OK | The request was successful and all data has been delivered | | 206 | Partial content | The request was successful, but only a portion of the data was returned. The request exceeded 10M results or the 1-hour evaluation window. Repeat the same request with the same sessionID to receive the next batch of data until you receive an HTTP 200 response | | 400 | Bad request | The request is malformed | | 403 | Forbidden | Missing or invalid API credentials | | 404 | Not found | The requested resource (such as a sessionID) doesn't exist | | 406 | Not acceptable | Either the specified Accept header value isn't supported (only application/x-ndjson and text/csv are accepted), or fromBeginning was used with a sessionID that already exists | | 422 | Unprocessable entity | The request is syntactically valid but violates semantic or domain-specific rules (for example, invalid query parameter values) | ### Feed API examples Basic session polling: ```sh # Start a new session curl -H "X-Api-Key: $DOMAINTOOLS_API_KEY" \ 'https://api.domaintools.com/v1/feed/iphotlist/?sessionID=mySOC' ``` ```sh # Resume the session (returns data since last request) curl -H "X-Api-Key: $DOMAINTOOLS_API_KEY" \ 'https://api.domaintools.com/v1/feed/iphotlist/?sessionID=mySOC' ``` Time window filtering: ```sh # Get data from a specific time range curl -H "X-Api-Key: $DOMAINTOOLS_API_KEY" \ 'https://api.domaintools.com/v1/feed/iphotlist/?after=2025-01-06T10:00:00Z&before=2025-01-06T11:00:00Z' ``` CSV format: ```sh # Request CSV format with headers curl -H 'Accept: text/csv' -H "X-Api-Key: $DOMAINTOOLS_API_KEY" \ 'https://api.domaintools.com/v1/feed/iphotlist/?headers=1&sessionID=mySOC' ``` ```sh # Request CSV format without headers curl -H 'Accept: text/csv' -H "X-Api-Key: $DOMAINTOOLS_API_KEY" \ 'https://api.domaintools.com/v1/feed/iphotlist/?sessionID=mySOC' ``` Limiting the response size: ```sh # Limit the response to 10 records curl -H "X-Api-Key: $DOMAINTOOLS_API_KEY" \ 'https://api.domaintools.com/v1/feed/iphotlist/?top=10&sessionID=mySOC' ``` Filtering by threat metrics: ```sh # IPs with at least 50% of domains confirmed or predicted malicious, excluding superhosters curl -H "X-Api-Key: $DOMAINTOOLS_API_KEY" \ 'https://api.domaintools.com/v1/feed/iphotlist/?all_threats_combined_percent_min=50&total_domains_max=1000&sessionID=mySOC' ``` Handling large result sets: ```sh # If you receive HTTP 206, repeat the request to get the next batch curl -H "X-Api-Key: $DOMAINTOOLS_API_KEY" \ 'https://api.domaintools.com/v1/feed/iphotlist/?sessionID=mySOC' # Repeat until you receive HTTP 200 ``` Delete a session: ```sh # Clear the saved offset and start fresh curl -X DELETE -H "X-Api-Key: $DOMAINTOOLS_API_KEY" \ 'https://api.domaintools.com/v1/feed/iphotlist/?sessionID=mySOC' ``` ## Real-time Download API The Real-time Download API provides access to historical IP Hotlist data through temporary Amazon Web Services (AWS) S3 file links. Files are organized by hour and available for 90 days. ### Base URL ```text https://api.domaintools.com/v1/download/iphotlist/ ``` ### Download API parameters #### limit Type: Integer Valid values: Positive integer Description: Limits the number of files returned in the response, starting from the most recent. Use to control payload size or test specific cases. Example: limit=10 Required: No #### page Type: Integer Valid values: Non-negative integer (0, 1, 2, ...) Description: Selects which page of results to return. Pages begin at 0 with the latest results. Use with limit and prefix to control results. The server returns an HTTP 404 (No data to download.) message when the page request exceeds the last page of results. Example: page=3 Required: No #### prefix Type: String Valid values: Date/time prefix matching the feed's filename format Description: Filters results by date using the file prefix. Use with page and limit to control results. Filename prefixes vary by feed. For example, files for this feed begin with the date in YYYY-MM-DD format. Example: prefix=2025-06-24 Required: No ### Download API response structure The API returns a JSON response containing an array of downloadable files. Each file entry includes: download_name (string): The feed identifier files (array): List of downloadable file entries Each file object contains: - name (string): Path and filename of the downloadable file - last_modified (string): Timestamp of last modification in ISO 8601 UTC format - etag (string): ETag (hash) used to verify file identity and versioning - size (integer): File size in bytes - url (string): Temporary signed URL to download the file from AWS ### Download API response codes | Code | Status | Description | |------|--------|-------------| | 200 | OK | The request was successful | | 400 | Bad request | The request is malformed | | 401 | Unauthorized | Missing or invalid API credentials | | 403 | Forbidden | Missing or invalid API credentials | | 404 | Not found | No data to download | | 422 | Unprocessable entity | The request is syntactically valid but violates semantic or domain-specific rules (for example, invalid query parameter values) | ### Download API file naming Files follow this naming pattern: ```text iphotlist/YYYY-MM-DD/iphotlist-YYYYMMDD.HH00-HH00.json.gz iphotlist/YYYY-MM-DD/iphotlist-YYYYMMDD.HH00-HH00.json.gz.sha256 ``` The system produces two files each hour: - A gzipped JSON data file - A SHA-256 checksum file for verification ### Download API file contents When uncompressed, the *.json.gz file contains JSON data in the same format as the Feed API response (NDJSON with timestamp and all IP risk fields). ### Download API examples List available files: ```sh curl -H "X-Api-Key: $DOMAINTOOLS_API_KEY" \ 'https://api.domaintools.com/v1/download/iphotlist/?limit=10' ``` Download and verify a file: ```sh # Get file list curl -H "X-Api-Key: $DOMAINTOOLS_API_KEY" \ 'https://api.domaintools.com/v1/download/iphotlist/?limit=2' > files.json # Extract URLs (select by file extension to avoid index fragility) DATA_URL=$(jq -r '.response.files[] | select(.name | endswith(".json.gz")) | .url' files.json) CHECKSUM_URL=$(jq -r '.response.files[] | select(.name | endswith(".sha256")) | .url' files.json) # Download files curl -o iphotlist.json.gz "$DATA_URL" curl -o iphotlist.json.gz.sha256 "$CHECKSUM_URL" # Verify checksum sha256sum -c iphotlist.json.gz.sha256 # Decompress and view gunzip iphotlist.json.gz head iphotlist.json ``` Batch download multiple files: ```sh # Download all files from the last 24 hours for url in $(curl -H "X-Api-Key: $DOMAINTOOLS_API_KEY" \ 'https://api.domaintools.com/v1/download/iphotlist/?limit=24' | \ jq -r '.response.files[].url' | grep '\.json\.gz$'); do curl -O "$url" done ``` ## RPZ access ### Overview Response Policy Zone (RPZ) provides DNS-level blocking by integrating Threat Feeds directly into your DNS resolver. This allows you to automatically block or redirect DNS queries for domains in the feed, providing real-time protection before connections are established. How RPZ works: When a user attempts to access a domain in the RPZ feed, your DNS resolver responds with an NXDOMAIN ("no such domain") status code, effectively making the domain unavailable. This blocks malicious domains at the DNS layer, preventing endpoint communication before any connection is established. Benefits: - Real-time protection: Blocks threats at the DNS resolver level - Automatic updates: Receives updates via DNS zone transfers (AXFR/IXFR) - No client configuration: Works transparently for all clients using your DNS resolver - Efficient: Minimal performance impact on DNS resolution - Standard protocol: Uses DNS Response Policy Zones specification Zone naming format: RPZ zones are named using the pattern: [interval].[feed].rpz.domaintools.com Available time intervals: 5m, 10m, 30m, 1h, 3h (and 12h/24h for some feeds — availability varies by feed) Larger time intervals are supersets that include smaller intervals. Smaller intervals have smaller zone sizes and may be available faster. ### Available zones IP Hotlist provides multiple RPZ zones with different time windows, allowing you to choose the appropriate balance between coverage and freshness for your security requirements. - 5m.iphotlist.rpz.domaintools.com - IPs active in last 5 minutes - 10m.iphotlist.rpz.domaintools.com - IPs active in last 10 minutes - 30m.iphotlist.rpz.domaintools.com - IPs active in last 30 minutes - 1h.iphotlist.rpz.domaintools.com - IPs active in last 1 hour - 3h.iphotlist.rpz.domaintools.com - IPs active in last 3 hours Each zone uses .rpz-ip trigger entries to block connections to the listed IP addresses. ### Configuration Configuration requirements: To access RPZ feeds, you need to: 1. Provide IP addresses: Contact enterprisesupport@domaintools.com with: - IP address(es) from which you connect to the RPZ provider DNS server - IP address(es) to receive DNS NOTIFY messages (typically the same) 2. Configure firewall: Add rules to allow DomainTools hosts to send UDP packets to port 53: - IPv4: 104.244.13.88 Port: 53 - IPv4: 104.244.14.88 Port: 53 3. Set up TSIG authentication: DomainTools uses TSIG (Secret Key Transaction Authentication) for authorization: - TSIG key algorithm: hmac-sha512 - TSIG key and key name: Provided by DomainTools Enterprise Support Delivery method: RPZ feeds are delivered via: - Incremental Zone Transfers (IXFR) - Full zone transfers (AXFR) - DNS NOTIFY messages to trigger zone updates For detailed configuration instructions, including DNS resolver setup, advanced features (allowlists, walled gardens, logging), and troubleshooting, see the Response Policy Zone documentation. ### Testing Testing your RPZ configuration: When your DNS resolver blocks a domain using RPZ, the response includes an SOA (Start of Authority) record that identifies which RPZ feed was used. Test domain: Each RPZ feed includes a test domain entry: test.rpz.domaintools.test Use this to verify the RPZ feed is loaded and working. A successful test returns: - NXDOMAIN status code - SOA record in the ADDITIONAL section showing the specific feed name Example SOA record: ```text ;; ADDITIONAL SECTION: 3h.iphotlist.rpz.domaintools.com. 86400 IN SOA rpz-ns1.domaintools.com. noc.domaintools.com. 946684799 600 300 86400 86400 ``` The SOA SERIAL number (Unix epoch timestamp) indicates when the feed was last regenerated. Troubleshooting: If the SOA record appears in the AUTHORITY section instead of ADDITIONAL, or doesn't show the specific feed name, the response didn't come from RPZ. Check your DNS resolver's RPZ-related logs for additional debugging information. ### RPZ examples Configure BIND to use IP Hotlist 1-hour zone: ```text response-policy { zone "1h.iphotlist.rpz.domaintools.com"; }; ``` Transfer the full zone: ```sh dig AXFR 1h.iphotlist.rpz.domaintools.com ``` Check for zone updates (without transferring the full zone): ```sh dig SOA 1h.iphotlist.rpz.domaintools.com ``` The SOA SERIAL number is a Unix epoch timestamp indicating when the zone was last updated. Compare it to the previous serial to determine if new data is available. Check if a specific IP is in the zone: ```sh dig @localhost 32.1.0.192.rpz-ip.1h.iphotlist.rpz.domaintools.com ``` The IP address is written in reverse order (192.0.1.32 becomes 32.1.0.192) and prefixed with 32 to indicate a /32 single-host netmask. This is the standard RPZ IP trigger format defined in the RPZ specification. An NXDOMAIN response indicates the IP is in the zone and would be blocked by your resolver. ## Daily Download API The Daily Download API provides access to IP Hotlist data through temporary AWS S3 file links. The feed is updated daily with high-risk, actively communicating IPs. ### Base URL ```text https://api.domaintools.com/v1/download/daily_ip_hotlist/ ``` ### Daily Download parameters The Daily Download API supports standard download parameters. Authentication parameters (api_username, api_key, signature, timestamp) are covered in Authentication. #### limit Type: Integer Valid values: Positive integer Description: Limits the number of files returned in the response, starting from the most recent. Use to control payload size or test specific cases. Example: limit=10 Required: No #### page Type: Integer Valid values: Non-negative integer (0, 1, 2, ...) Description: Selects which page of results to return. Pages begin at 0 with the latest results. Use with limit and prefix to control results. The server returns an HTTP 404 (No data to download.) message when the page request exceeds the last page of results. Example: page=3 Required: No #### prefix Type: String Valid values: Date/time prefix matching the feed's filename format Description: Filters results by date using the file prefix. Use with page and limit to control results. Filename prefixes vary by feed. For example, files for this feed begin with the date in YYYY-MM-DD format. Example: prefix=2025-06-24 Required: No ### Daily Download response structure The API returns a JSON response with signed URLs for downloadable files: download_name (string): The feed identifier (daily_ip_hotlist) files (array): List of downloadable file entries Each file object contains: - name (string): path - last_modified (string): Last modified date in ISO 8601 format - etag (string): Entity tag (hash of the file) - size (integer): Size in bytes - url (string): Signed AWS download URL (valid for 12 hours) ### Daily Download response codes 200: OK - The request was successful 400: Bad request 401: Unauthorized 403: Forbidden 404: No data to download ### Daily Download file naming The feed provides a single file. The name field returned by the API is: ```text daily_ip_hotlist/ip_hotlist.gz ``` This file contains high-risk IP addresses with recent malicious activity, updated daily. ### Download size The size value in each Download API file entry gives the compressed file size in bytes. Example compressed file size: approximately 6.38 MB for ip_hotlist.gz. This example uses decimal MB. Actual sizes vary. Check the Download API's size values for current file sizes. ### File contents The TSV file contains the following fields (tab-separated, one IP per line): #### IP and infrastructure fields | Field | Description | |-------|-------------| | ip | IP address that has www/apex domains pointing to it | | asn | The IP's ASN (autonomous system number, routing provider) | | organization | Organization associated with IP range based on geo data | | city | City based on IP geo data | | country | Country based on IP geo data | | latitude | Geographic coordinates | | longitude | Geographic coordinates | #### Domain activity metrics | Field | Description | |-------|-------------| | pdns_resolutions | Number of domains seen on the IP in the last 24 hours | | bad_pdns_resolutions | Number of confirmed bad domains seen on the IP in the last 24 hours | | total_domains | Total number of domains seen on this IP in the last 7 days | | zerolist_domains | Number of zero-listed domains seen on this IP | | zerolist_ip | Indicates if this IP is zero-listed (e.g., CDN) | #### Threat intelligence metrics | Field | Description | |-------|-------------| | third_party_threats | Number of domains on IP confirmed with any threat on a third-party intel feed | | all_threats_combined_count | Number of confirmed or predicted domains on third-party intel feed or threat profile | | all_threats_combined_percent | Percentage of total_domains that are confirmed or predicted malicious | | all_threats_percent | Percentage of total_domains including all threat types | #### Combined threat predictions | Field | Description | |-------|-------------| | combined_phishing_percent | Percentage of total_domains confirmed or predicted as phishing | | combined_malware_percent | Percentage of total_domains confirmed or predicted as malware | | combined_spam_percent | Percentage of total_domains confirmed or predicted as spam | #### Confirmed malicious threats | Field | Description | |-------|-------------| | malicious_phishing | Number of malicious phishing domains on third-party intel feeds | | malicious_malware | Number of malicious malware domains on third-party intel feeds | | malicious_spam | Number of malicious spam domains on third-party intel feeds | | percent_phishing | Percentage of total_domains that are confirmed phishing | | percent_malware | Percentage of total_domains that are confirmed malware | | percent_spam | Percentage of total_domains that are confirmed spam | #### Compromised threats | Field | Description | |-------|-------------| | compromised_phishing | Number of compromised phishing domains on third-party intel feeds | | compromised_malware | Number of compromised malware domains on third-party intel feeds | | compromised_spam | Number of compromised spam domains on third-party intel feeds | #### Predicted threats | Field | Description | |-------|-------------| | predicted_phishing | Number of domains (with no confirmed threat) predicted as phishing | | predicted_malware | Number of domains (with no confirmed threat) predicted as malware | | predicted_spam | Number of domains (with no confirmed threat) predicted as spam | ### Daily Download examples List available files: ```sh curl -H "X-Api-Key: $DOMAINTOOLS_API_KEY" \ 'https://api.domaintools.com/v1/download/daily_ip_hotlist/' ``` Download the file: ```sh # Get the file list curl -H "X-Api-Key: $DOMAINTOOLS_API_KEY" \ 'https://api.domaintools.com/v1/download/daily_ip_hotlist/' > files.json # Download the file curl -o ip_hotlist.gz "$(jq -r '.response.files[0].url' files.json)" # Decompress and view gunzip ip_hotlist.gz head ip_hotlist ``` Parse TSV data: ```sh # View first 10 IPs: ip, latitude, longitude, pdns_resolutions, bad_pdns_resolutions (cols 1,6,7,8,9) gunzip -c ip_hotlist.gz | head -10 | cut -f1,6,7,8,9 ``` Filter for specific threat types: ```sh # Find IPs with high longitude value (field 7 = longitude); adjust field number per schema above gunzip -c ip_hotlist.gz | awk -F'\t' '$7 > 50 {print $1, $7}' | head -20 ``` ## Related resources - IP Risk feed - Domain Hotlist feed - Domain Risk feed The IP Risk feed provides risk intelligence for all IP addresses that host domains, regardless of risk level. This feed includes enrichment data: threat scores, geographic information, ASN details, and domain hosting metrics. ## Overview This feed captures all IP addresses that actively host one or more domains, providing risk assessment and enrichment data for each IP address. The feed includes both confirmed threats from third-party intelligence feeds and predictive risk scores based on DomainTools machine learning models. Use this feed when you need to: - Monitor IP addresses hosting domains for threat intelligence - Analyze hosting infrastructure risk patterns - Correlate IP-based threats with domain activity - Build IP reputation databases - Detect suspicious hosting patterns - Enrich security alerts with IP risk context - Track threat actor infrastructure Inclusion criteria: IP address actively hosts one or more domains (regardless of risk level). Daily download format: Gzip-compressed tab-separated (TSV) text file Size: 15-20 million IP addresses, ~200MB compressed ## Quick Start Get started with the IP Risk feed in under 60 seconds using the Real-time Feed API: ```sh # Start polling for IP risk data curl -H "X-Api-Key: $DOMAINTOOLS_API_KEY" \ 'https://api.domaintools.com/v1/feed/iprisk/?sessionID=mySession' ``` This returns the last hour of data. Call again with the same sessionID to get only new data since your last request. See Real-time Feed API for complete details and Authentication for auth options. ## Requirements You need the following to access Threat Feeds: - An Enterprise Account with DomainTools, accessible at https://account.domaintools.com/my-account/ - Authentication credentials (API key for header authentication, or API username and key for HMAC or open key authentication) - A way to interact with a REST API delivered through AWS Obtain your API credentials from your group's API administrator. API administrators can manage their API keys at https://research.domaintools.com, selecting the drop-down account menu and choosing API admin. For assistance, contact enterprisesupport@domaintools.com. ## Authentication You can authenticate to the IP Risk API using three different methods. Choose the method that best fits your security requirements and technical environment. ### API key (header) authentication Authenticate your requests by including the API key in the header of each HTTP request. The API key serves as a unique identifier and authenticates your requests. Required header: X-Api-Key: $DOMAINTOOLS_API_KEY Examples: ```sh # Feed API request curl -H "X-Api-Key: $DOMAINTOOLS_API_KEY" \ 'https://api.domaintools.com/v1/feed/iprisk/?sessionID=mySession' ``` ```sh # Download API request curl -H "X-Api-Key: $DOMAINTOOLS_API_KEY" \ 'https://api.domaintools.com/v1/download/iprisk/' ``` ### HMAC authentication HMAC authentication is a secure alternative to API key-based methods. It requires signing each request with an HMAC digest derived from your API key, providing integrity and authenticity without exposing credentials directly in the request. This method is recommended for systems where authentication credentials shouldn't be stored in plain text or included directly in request URLs. DomainTools supports MD5, SHA1, and SHA256 for the hashing algorithm. Use SHA256 — it's the recommended choice and is more resistant to collision attacks than MD5 or SHA1. Required query parameters: - api_username: Your DomainTools API username - signature: HMAC-SHA256 signature of api_username + timestamp + uri_path - timestamp: Current UTC timestamp in ISO 8601 format (for example, 2025-06-01T15:30:00Z) Constructing the HMAC signature: ```sh signature = HMAC-SHA256(api_key, api_username + timestamp + uri_path) ``` Caution: URI path must include API version The uri_path parameter must include the API version prefix. For example, use /v1/feed/nod/ not /feed/nod/. Example Python signing function: ```python import hmac import hashlib def sign(api_username, api_key, timestamp, uri): params = f"{api_username}{timestamp}{uri}" return hmac.new(api_key.encode("utf-8"), params.encode("utf-8"), hashlib.sha256).hexdigest() ``` Note: HMAC timestamp requirements The timestamp parameter in HMAC authentication must be current (within a few minutes of the server time). The timestamps shown in these examples are static for demonstration purposes. In production, generate a fresh timestamp for each request using your system's current time in ISO 8601 UTC format (e.g., 2025-01-06T15:30:00Z). Examples: ```sh # Feed API request with HMAC curl 'https://api.domaintools.com/v1/feed/iprisk/?api_username=YOUR_USERNAME&signature=HMAC_SIGNATURE×tamp=2025-01-06T15:30:00Z&sessionID=mySession' ``` ```sh # Download API request with HMAC curl 'https://api.domaintools.com/v1/download/iprisk/?api_username=YOUR_USERNAME&signature=HMAC_SIGNATURE×tamp=2025-01-06T15:30:00Z' ``` ### Open key authentication This is the easiest authentication scheme to implement, but also the least secure. Each request contains the full API key and API username as query parameters. We recommend using API key header authentication or HMAC authentication instead. If you're unsure about your authentication options, contact enterprisesupport@domaintools.com. Required query parameters: - api_username: Your API username - api_key: Your API key Examples: ```sh # Feed API request curl 'https://api.domaintools.com/v1/feed/iprisk/?api_username=YOUR_USERNAME&api_key=YOUR_API_KEY&sessionID=mySession' ``` ```sh # Download API request curl 'https://api.domaintools.com/v1/download/iprisk/?api_username=YOUR_USERNAME&api_key=YOUR_API_KEY' ``` ## Real-time Feed API The Real-time Feed API provides streaming access to IP Risk data as risk assessments are updated. This enables real-time monitoring of hosting infrastructure threats and immediate detection of changes in IP risk profiles. ### Base URL ```text https://api.domaintools.com/v1/feed/iprisk/ ``` ### Feed API rate limits Real-time feeds have the following rate limits: - 2 queries per minute - 120 queries per hour If you exceed these limits, the API returns an error. ### Feed API response formats The API supports two response formats: NDJSON (Newline-Delimited JSON) - Default format when no Accept header is specified - Also known as JSON Lines (JSONL) - One JSON object per line - Efficient for streaming and processing large datasets - Set Accept: application/x-ndjson to explicitly request this format CSV (Comma-Separated Values) - Set Accept: text/csv to request CSV format - Add &headers=1 to the query parameters to include column headers as the first line - Not available for all feeds; check the specific feed documentation for CSV support ### Feed API session management Session management allows you to maintain your position in the feed data stream, ensuring you don't miss or duplicate events when polling the API. How sessions work: - Start a new session: Provide a unique sessionID parameter of your choosing. By default, the API returns the past hour of results. - Resume a session: Use the same sessionID in subsequent requests. The API returns all data since your last request. - Handle large result sets: If a single request exceeds 10M results, the API returns an HTTP 206 response code. Repeat the same request with the same sessionID to receive the next batch of data until you receive an HTTP 200 response code. - One request at a time: Do not send simultaneous requests with the same sessionID for the same feed. Wait for each request to complete before sending the next one. Concurrent requests with the same sessionID can produce errors or incomplete results. - Delete a session: Use an HTTP DELETE request with your sessionID to clear the saved offset and start fresh. Session ID requirements: - 1 to 64 characters in length - Alphanumeric characters and hyphens only ([a-zA-Z0-9-]+) - Case-sensitive ### Feed API quick start Start a new session: ```sh curl -H "X-Api-Key: $DOMAINTOOLS_API_KEY" \ 'https://api.domaintools.com/v1/feed/iprisk/?sessionID=mySOC' ``` A new sessionID returns the last hour of data by default. Continue polling for new updates: ```sh # Call again with the same sessionID to get only new data since last call curl -H "X-Api-Key: $DOMAINTOOLS_API_KEY" \ 'https://api.domaintools.com/v1/feed/iprisk/?sessionID=mySOC' ``` ### Feed API parameters #### Session management ##### sessionID Type: String Valid values: 1-64 alphanumeric characters and hyphens ([a-zA-Z0-9-]+) Description: A unique identifier for the session, used for resuming data retrieval from the last point. Use a new sessionID to begin a new session, fetching the most recent hour by default. Reuse the same sessionID to return all feed data since your last request. If omitted, time window parameters (such as after/before) are required. Example: sessionID=mySOC Required: Yes, to continue where you left off (or use after/before instead) ##### after Type: Integer or string Valid values: - Integer: -1 to -432,000 (relative seconds before current time) - String: ISO 8601 datetime in UTC format (YYYY-MM-DDTHH:MM:SSZ) Description: The start of the query window (inclusive). When using an integer, the value is in seconds relative to the current time. When using a string, provide an absolute timestamp. The query window covers the most recent 5 days. A value older than 5 days is capped to the start of that window, and the response begins 5 days back. Example: after=-60 or after=2024-10-16T10:20:00Z Required: Yes, if before or sessionID not provided ##### before Type: Integer or string Valid values: - Integer: -1 to -432,000 (relative seconds before current time) - String: ISO 8601 datetime in UTC format (YYYY-MM-DDTHH:MM:SSZ) Description: The end of the query window (inclusive). When using an integer, the value is in seconds relative to the current time. When using a string, provide an absolute timestamp. The query window covers the most recent 5 days. A value older than 5 days places the window entirely outside it, and the response contains no records. Example: before=-120 or before=2024-10-16T10:20:00Z Required: Yes, if after or sessionID not provided ##### fromBeginning Type: Boolean Valid values: true, false, 1, 0 Description: Requires a sessionID. Set fromBeginning=true on the first request with a new session ID to return the first hour of data in the time window rather than the last. false is the default. Using it with a session ID that already exists returns HTTP 406, so drop fromBeginning from subsequent requests. Using it without a sessionID, or passing a value that isn't a boolean, returns HTTP 422. Example: fromBeginning=true Required: No #### IP Risk filter parameters The following filter parameters are specific to the IP Risk and IP Hotlist feeds. Use these to narrow results based on threat metrics, domain activity, and infrastructure characteristics. ##### pdns_resolutions_min Type: Integer Valid values: Positive integer Description: Filter for IPs with at least this many domains seen in the last 24 hours. Example: pdns_resolutions_min=10 Required: No ##### bad_pdns_resolutions_min Type: Integer Valid values: Positive integer Description: Filter for IPs with at least this many confirmed bad domains seen in the last 24 hours. Example: bad_pdns_resolutions_min=5 Required: No ##### total_domains_max Type: Integer Valid values: Positive integer Description: Filter for IPs with no more than this many total domains (useful to exclude superhoster IPs). Example: total_domains_max=1000 Required: No ##### third_party_threats_min Type: Integer Valid values: Positive integer Description: Filter for IPs with at least this many domains confirmed with threats on third-party intel feeds. Example: third_party_threats_min=3 Required: No ##### all_threats_combined_percent_min Type: Integer Valid values: 0-100 Description: Filter for IPs where at least this percentage of total_domains are confirmed or predicted malicious. Example: all_threats_combined_percent_min=50 Required: No ##### combined_phishing_percent_min Type: Integer Valid values: 0-100 Description: Filter for IPs where at least this percentage of total_domains are confirmed or predicted as phishing. Example: combined_phishing_percent_min=25 Required: No ##### combined_malware_percent_min Type: Integer Valid values: 0-100 Description: Filter for IPs where at least this percentage of total_domains are confirmed or predicted as malware. Example: combined_malware_percent_min=25 Required: No ##### combined_spam_percent_min Type: Integer Valid values: 0-100 Description: Filter for IPs where at least this percentage of total_domains are confirmed or predicted as spam. Example: combined_spam_percent_min=25 Required: No ##### asn Type: Integer Valid values: Autonomous system number, digits only (no AS prefix, no wildcards) Description: Filter for IPs with a specific autonomous system number (routing provider). Example: asn=15169 Required: No ##### organization Type: String Valid values: Organization name Description: Filter for IPs associated with a specific organization. Matches the exact value only. Wildcards aren't supported. Example: organization=Example Hosting Inc Required: No ##### country_code Type: String Valid values: Two-letter country code Description: Filter for IPs geolocated to a specific country. Example: country_code=CN Required: No ##### all_threats_percent_min Type: Integer Valid values: 0-100 Description: Filter for IPs where at least this percentage of total_domains include all threat types. Example: all_threats_percent_min=40 Required: No ##### percent_phishing_min Type: Integer Valid values: 0-100 Description: Filter for IPs where at least this percentage of total_domains are confirmed phishing. Example: percent_phishing_min=20 Required: No ##### percent_malware_min Type: Integer Valid values: 0-100 Description: Filter for IPs where at least this percentage of total_domains are confirmed malware. Example: percent_malware_min=20 Required: No ##### percent_spam_min Type: Integer Valid values: 0-100 Description: Filter for IPs where at least this percentage of total_domains are confirmed spam. Example: percent_spam_min=20 Required: No #### Result formatting ##### top Type: Integer Valid values: Positive integer, 1-1,000,000,000 Description: Limits the number of results in the response payload. Primarily intended for testing. Example: top=10 Required: No ##### headers Type: Boolean Valid values: true, false, 1, 0 Description: Adds a header row as the first line of the response when text/csv is requested. Set headers=1 to enable; false is the default. Enabling it on a request that doesn't ask for text/csv returns HTTP 422, as does a value that isn't a boolean. Example: headers=1 Required: No ### Feed API response structure The Feed API returns NDJSON (newline-delimited JSON) with one IP entry per line. Each entry includes a timestamp field indicating when the risk assessment was updated, plus all IP risk and enrichment fields. Response fields: timestamp (string): ISO 8601 UTC timestamp when the risk assessment was updated Note: For real-time feeds, the total_domains field reflects domains seen over the last 30 days (not 7 days as in the daily feed). Note: Percentage fields are a share of total_domains, truncated to an integer. A computed 37.5 percent is reported as 37. Example response: ```json {"timestamp":"2025-01-06T15:30:42Z","ip":"192.0.2.10","asn":12345,"organization":"Example Hosting LLC","city":"Amsterdam","country":"NL","latitude":52.3676,"longitude":4.9041,"pdns_resolutions":12,"bad_pdns_resolutions":3,"total_domains":47,"zerolist_domains":2,"zerolist_ip":false,"third_party_threats":2,"all_threats_combined_count":9,"all_threats_combined_percent":19,"all_threats_percent":19,"combined_phishing_percent":4,"combined_malware_percent":10,"combined_spam_percent":4,"malicious_phishing":1,"malicious_malware":2,"malicious_spam":1,"percent_phishing":4,"percent_malware":10,"percent_spam":4,"compromised_phishing":0,"compromised_malware":1,"compromised_spam":0,"predicted_phishing":1,"predicted_malware":2,"predicted_spam":1} {"timestamp":"2025-01-06T15:30:45Z","ip":"192.0.2.11","asn":67890,"organization":"Cloud Provider Corp","city":"Frankfurt","country":"DE","latitude":50.1109,"longitude":8.6821,"pdns_resolutions":5,"bad_pdns_resolutions":0,"total_domains":18,"zerolist_domains":0,"zerolist_ip":false,"third_party_threats":0,"all_threats_combined_count":1,"all_threats_combined_percent":5,"all_threats_percent":5,"combined_phishing_percent":0,"combined_malware_percent":5,"combined_spam_percent":0,"malicious_phishing":0,"malicious_malware":0,"malicious_spam":0,"percent_phishing":0,"percent_malware":5,"percent_spam":0,"compromised_phishing":0,"compromised_malware":0,"compromised_spam":0,"predicted_phishing":0,"predicted_malware":1,"predicted_spam":0} ``` #### IP and infrastructure fields | Field | Description | |-------|-------------| | ip | IP address that has www/apex domains pointing to it | | asn | The IP's ASN (autonomous system number, routing provider) | | organization | Organization associated with IP range based on geo data | | city | City based on IP geo data | | country | Country based on IP geo data | | latitude | Geographic coordinates | | longitude | Geographic coordinates | #### Domain activity metrics | Field | Description | |-------|-------------| | pdns_resolutions | Number of domains seen on the IP in the last 24 hours | | bad_pdns_resolutions | Number of confirmed bad domains seen on the IP in the last 24 hours | | total_domains | Total number of domains seen on this IP in the last 7 days | | zerolist_domains | Number of zero-listed domains seen on this IP | | zerolist_ip | Indicates if this IP is zero-listed (e.g., CDN) | #### Threat intelligence metrics | Field | Description | |-------|-------------| | third_party_threats | Number of domains on IP confirmed with any threat on a third-party intel feed | | all_threats_combined_count | Number of confirmed or predicted domains on third-party intel feed or threat profile | | all_threats_combined_percent | Percentage of total_domains that are confirmed or predicted malicious | | all_threats_percent | Percentage of total_domains including all threat types | #### Combined threat predictions | Field | Description | |-------|-------------| | combined_phishing_percent | Percentage of total_domains confirmed or predicted as phishing | | combined_malware_percent | Percentage of total_domains confirmed or predicted as malware | | combined_spam_percent | Percentage of total_domains confirmed or predicted as spam | #### Confirmed malicious threats | Field | Description | |-------|-------------| | malicious_phishing | Number of malicious phishing domains on third-party intel feeds | | malicious_malware | Number of malicious malware domains on third-party intel feeds | | malicious_spam | Number of malicious spam domains on third-party intel feeds | | percent_phishing | Percentage of total_domains that are confirmed phishing | | percent_malware | Percentage of total_domains that are confirmed malware | | percent_spam | Percentage of total_domains that are confirmed spam | #### Compromised threats | Field | Description | |-------|-------------| | compromised_phishing | Number of compromised phishing domains on third-party intel feeds | | compromised_malware | Number of compromised malware domains on third-party intel feeds | | compromised_spam | Number of compromised spam domains on third-party intel feeds | #### Predicted threats | Field | Description | |-------|-------------| | predicted_phishing | Number of domains (with no confirmed threat) predicted as phishing | | predicted_malware | Number of domains (with no confirmed threat) predicted as malware | | predicted_spam | Number of domains (with no confirmed threat) predicted as spam | ### Feed API response codes | Code | Status | Description | |------|--------|-------------| | 200 | OK | The request was successful and all data has been delivered | | 206 | Partial content | The request was successful, but only a portion of the data was returned. The request exceeded 10M results or the 1-hour evaluation window. Repeat the same request with the same sessionID to receive the next batch of data until you receive an HTTP 200 response | | 400 | Bad request | The request is malformed | | 403 | Forbidden | Missing or invalid API credentials | | 404 | Not found | The requested resource (such as a sessionID) doesn't exist | | 406 | Not acceptable | Either the specified Accept header value isn't supported (only application/x-ndjson and text/csv are accepted), or fromBeginning was used with a sessionID that already exists | | 422 | Unprocessable entity | The request is syntactically valid but violates semantic or domain-specific rules (for example, invalid query parameter values) | ### Feed API examples Basic session polling: ```sh # Start a new session curl -H "X-Api-Key: $DOMAINTOOLS_API_KEY" \ 'https://api.domaintools.com/v1/feed/iprisk/?sessionID=mySOC' ``` ```sh # Resume the session (returns data since last request) curl -H "X-Api-Key: $DOMAINTOOLS_API_KEY" \ 'https://api.domaintools.com/v1/feed/iprisk/?sessionID=mySOC' ``` Time window filtering: ```sh # Get data from a specific time range curl -H "X-Api-Key: $DOMAINTOOLS_API_KEY" \ 'https://api.domaintools.com/v1/feed/iprisk/?after=2025-01-06T10:00:00Z&before=2025-01-06T11:00:00Z' ``` CSV format: ```sh # Request CSV format with headers curl -H 'Accept: text/csv' -H "X-Api-Key: $DOMAINTOOLS_API_KEY" \ 'https://api.domaintools.com/v1/feed/iprisk/?headers=1&sessionID=mySOC' ``` ```sh # Request CSV format without headers curl -H 'Accept: text/csv' -H "X-Api-Key: $DOMAINTOOLS_API_KEY" \ 'https://api.domaintools.com/v1/feed/iprisk/?sessionID=mySOC' ``` Limiting the response size: ```sh # Limit the response to 10 records curl -H "X-Api-Key: $DOMAINTOOLS_API_KEY" \ 'https://api.domaintools.com/v1/feed/iprisk/?top=10&sessionID=mySOC' ``` Filtering by threat metrics: ```sh # IPs with at least 50% of domains confirmed or predicted malicious, excluding superhosters curl -H "X-Api-Key: $DOMAINTOOLS_API_KEY" \ 'https://api.domaintools.com/v1/feed/iprisk/?all_threats_combined_percent_min=50&total_domains_max=1000&sessionID=mySOC' ``` Handling large result sets: ```sh # If you receive HTTP 206, repeat the request to get the next batch curl -H "X-Api-Key: $DOMAINTOOLS_API_KEY" \ 'https://api.domaintools.com/v1/feed/iprisk/?sessionID=mySOC' # Repeat until you receive HTTP 200 ``` Delete a session: ```sh # Clear the saved offset and start fresh curl -X DELETE -H "X-Api-Key: $DOMAINTOOLS_API_KEY" \ 'https://api.domaintools.com/v1/feed/iprisk/?sessionID=mySOC' ``` ## Real-time Download API The Real-time Download API provides access to historical IP Risk data through temporary Amazon Web Services (AWS) S3 file links. Files are organized by hour and available for 90 days. ### Base URL ```text https://api.domaintools.com/v1/download/iprisk/ ``` ### Download API parameters #### limit Type: Integer Valid values: Positive integer Description: Limits the number of files returned in the response, starting from the most recent. Use to control payload size or test specific cases. Example: limit=10 Required: No #### page Type: Integer Valid values: Non-negative integer (0, 1, 2, ...) Description: Selects which page of results to return. Pages begin at 0 with the latest results. Use with limit and prefix to control results. The server returns an HTTP 404 (No data to download.) message when the page request exceeds the last page of results. Example: page=3 Required: No #### prefix Type: String Valid values: Date/time prefix matching the feed's filename format Description: Filters results by date using the file prefix. Use with page and limit to control results. Filename prefixes vary by feed. For example, files for this feed begin with the date in YYYY-MM-DD format. Example: prefix=2025-06-24 Required: No ### Download API response structure The API returns a JSON response containing an array of downloadable files. Each file entry includes: download_name (string): The feed identifier files (array): List of downloadable file entries Each file object contains: - name (string): Path and filename of the downloadable file - last_modified (string): Timestamp of last modification in ISO 8601 UTC format - etag (string): ETag (hash) used to verify file identity and versioning - size (integer): File size in bytes - url (string): Temporary signed URL to download the file from AWS ### Download API response codes | Code | Status | Description | |------|--------|-------------| | 200 | OK | The request was successful | | 400 | Bad request | The request is malformed | | 401 | Unauthorized | Missing or invalid API credentials | | 403 | Forbidden | Missing or invalid API credentials | | 404 | Not found | No data to download | | 422 | Unprocessable entity | The request is syntactically valid but violates semantic or domain-specific rules (for example, invalid query parameter values) | ### Download API file naming Files follow this naming pattern: ```text iprisk/YYYY-MM-DD/iprisk-YYYYMMDD.HH00-HH00.json.gz iprisk/YYYY-MM-DD/iprisk-YYYYMMDD.HH00-HH00.json.gz.sha256 ``` The system produces two files each hour: - A gzipped JSON data file - A SHA-256 checksum file for verification ### Download API file contents When uncompressed, the *.json.gz file contains JSON data in the same format as the Feed API response (NDJSON with timestamp and all IP risk fields). ### Download API examples List available files: ```sh curl -H "X-Api-Key: $DOMAINTOOLS_API_KEY" \ 'https://api.domaintools.com/v1/download/iprisk/?limit=10' ``` Download and verify a file: ```sh # Get file list curl -H "X-Api-Key: $DOMAINTOOLS_API_KEY" \ 'https://api.domaintools.com/v1/download/iprisk/?limit=2' > files.json # Extract URLs (select by file extension to avoid index fragility) DATA_URL=$(jq -r '.response.files[] | select(.name | endswith(".json.gz")) | .url' files.json) CHECKSUM_URL=$(jq -r '.response.files[] | select(.name | endswith(".sha256")) | .url' files.json) # Download files curl -o iprisk.json.gz "$DATA_URL" curl -o iprisk.json.gz.sha256 "$CHECKSUM_URL" # Verify checksum sha256sum -c iprisk.json.gz.sha256 # Decompress and view gunzip iprisk.json.gz head iprisk.json ``` Batch download multiple files: ```sh # Download all files from the last 24 hours for url in $(curl -H "X-Api-Key: $DOMAINTOOLS_API_KEY" \ 'https://api.domaintools.com/v1/download/iprisk/?limit=24' | \ jq -r '.response.files[].url' | grep '\.json\.gz$'); do curl -O "$url" done ``` ## Daily Download API The Daily Download API provides access to IP Risk data through temporary AWS S3 file links. The feed is updated daily with risk intelligence for all IPs hosting domains. ### Base URL ```text https://api.domaintools.com/v1/download/daily_ip_risk/ ``` ### Daily Download parameters The Daily Download API supports standard download parameters. Authentication parameters (api_username, api_key, signature, timestamp) are covered in Authentication. #### limit Type: Integer Valid values: Positive integer Description: Limits the number of files returned in the response, starting from the most recent. Use to control payload size or test specific cases. Example: limit=10 Required: No #### page Type: Integer Valid values: Non-negative integer (0, 1, 2, ...) Description: Selects which page of results to return. Pages begin at 0 with the latest results. Use with limit and prefix to control results. The server returns an HTTP 404 (No data to download.) message when the page request exceeds the last page of results. Example: page=3 Required: No #### prefix Type: String Valid values: Date/time prefix matching the feed's filename format Description: Filters results by date using the file prefix. Use with page and limit to control results. Filename prefixes vary by feed. For example, files for this feed begin with the date in YYYY-MM-DD format. Example: prefix=2025-06-24 Required: No ### Daily Download response structure The API returns a JSON response with signed URLs for downloadable files: download_name (string): The feed identifier (daily_ip_risk) files (array): List of downloadable file entries Each file object contains: - name (string): path - last_modified (string): Last modified date in ISO 8601 format - etag (string): Entity tag (hash of the file) - size (integer): Size in bytes - url (string): Signed AWS download URL (valid for 12 hours) ### Daily Download response codes 200: OK - The request was successful 400: Bad request 401: Unauthorized 403: Forbidden 404: No data to download ### Daily Download file naming The feed provides a single file. The name field returned by the API is: ```text daily_ip_risk/ip_fulllist.gz ``` This file contains all IP addresses actively hosting domains, updated daily. ### File contents The TSV file contains the following fields (tab-separated, one IP per line): #### IP and infrastructure fields | Field | Description | |-------|-------------| | ip | IP address that has www/apex domains pointing to it | | asn | The IP's ASN (autonomous system number, routing provider) | | organization | Organization associated with IP range based on geo data | | city | City based on IP geo data | | country | Country based on IP geo data | | latitude | Geographic coordinates | | longitude | Geographic coordinates | #### Domain activity metrics | Field | Description | |-------|-------------| | pdns_resolutions | Number of domains seen on the IP in the last 24 hours | | bad_pdns_resolutions | Number of confirmed bad domains seen on the IP in the last 24 hours | | total_domains | Total number of domains seen on this IP in the last 7 days | | zerolist_domains | Number of zero-listed domains seen on this IP | | zerolist_ip | Indicates if this IP is zero-listed (e.g., CDN) | #### Threat intelligence metrics | Field | Description | |-------|-------------| | third_party_threats | Number of domains on IP confirmed with any threat on a third-party intel feed | | all_threats_combined_count | Number of confirmed or predicted domains on third-party intel feed or threat profile | | all_threats_combined_percent | Percentage of total_domains that are confirmed or predicted malicious | | all_threats_percent | Percentage of total_domains including all threat types | #### Combined threat predictions | Field | Description | |-------|-------------| | combined_phishing_percent | Percentage of total_domains confirmed or predicted as phishing | | combined_malware_percent | Percentage of total_domains confirmed or predicted as malware | | combined_spam_percent | Percentage of total_domains confirmed or predicted as spam | #### Confirmed malicious threats | Field | Description | |-------|-------------| | malicious_phishing | Number of malicious phishing domains on third-party intel feeds | | malicious_malware | Number of malicious malware domains on third-party intel feeds | | malicious_spam | Number of malicious spam domains on third-party intel feeds | | percent_phishing | Percentage of total_domains that are confirmed phishing | | percent_malware | Percentage of total_domains that are confirmed malware | | percent_spam | Percentage of total_domains that are confirmed spam | #### Compromised threats | Field | Description | |-------|-------------| | compromised_phishing | Number of compromised phishing domains on third-party intel feeds | | compromised_malware | Number of compromised malware domains on third-party intel feeds | | compromised_spam | Number of compromised spam domains on third-party intel feeds | #### Predicted threats | Field | Description | |-------|-------------| | predicted_phishing | Number of domains (with no confirmed threat) predicted as phishing | | predicted_malware | Number of domains (with no confirmed threat) predicted as malware | | predicted_spam | Number of domains (with no confirmed threat) predicted as spam | ### Daily Download examples List available files: ```sh curl -H "X-Api-Key: $DOMAINTOOLS_API_KEY" \ 'https://api.domaintools.com/v1/download/daily_ip_risk/' ``` Download the file: ```sh # Get the file list curl -H "X-Api-Key: $DOMAINTOOLS_API_KEY" \ 'https://api.domaintools.com/v1/download/daily_ip_risk/' > files.json # Download the file curl -o ip_fulllist.gz "$(jq -r '.response.files[0].url' files.json)" # Decompress and view gunzip ip_fulllist.gz head ip_fulllist ``` Parse TSV data: ```sh # View first 10 IPs: ip, latitude, longitude, pdns_resolutions, bad_pdns_resolutions (cols 1,6,7,8,9) gunzip -c ip_fulllist.gz | head -10 | cut -f1,6,7,8,9 ``` ## Related resources - IP Hotlist feed - Domain Risk feed - Domain Hotlist feed Newly Observed Domains (NOD), Newly Active Domains (NAD), Newly Observed Hostnames (NOH), and Domain Discovery are the discovery Threat Feeds. They report new domain and hostname activity, but each feed has different inclusion criteria. Use this page to choose the feed that matches your workflow. For API reference, authentication, and response formats, see each feed's page. ## Choose a feed Start with the result you need, then choose based on the event you want to detect. NOH returns hostname and subdomain observations. The other discovery feeds return apex domains. { .img-full } If your workflow needs more than one of these events, subscribe to more than one feed. For example, Domain Discovery can provide broad coverage of newly registered and newly observed domains, while NOH can identify newly observed hostnames. ## Compare discovery feeds | Feed | Returns | Included when | Choose it when you need | |------|---------|---------------|-------------------------| | NOD | Apex domains, such as example.com | An apex domain is observed by our Domain Name System (DNS) sensor network for the first time | First observations of apex domains | | NAD | Apex domains | An apex domain is newly active for the first time or after at least 10 days without observation by our DNS sensor network | First observations and domain reactivations | | NOH | Fully qualified domain name (FQDN), such as clickme.example.com | An FQDN is observed by our DNS sensor network for the first time | Hostname- and subdomain-level detection | | Domain Discovery | Apex domains | A domain is newly registered or observed by our DNS sensor network | Newly registered domains before they resolve in DNS, plus newly observed domains | ## Feed relationships - NOD is included in NAD. An apex domain first observed by our DNS sensor network meets NAD's first-time newly active criterion. Choose NAD if you also need domains that become active after a period of inactivity. - NOH uses a different level of detail. NOH returns full hostnames, while NOD, NAD, and Domain Discovery return apex domains. Use NOH when a subdomain such as clickme.example.com matters to your workflow. - Domain Discovery has different inclusion criteria. It includes newly registered and newly observed apex domains. Use it when you need broad coverage of new domain registrations and DNS sensor network observations. ## Choose more than one feed Use NOD and NAD together only when you need separate handling for first observations and reactivations. NAD already includes domains that are newly active for the first time. You can combine Domain Discovery with a feed that uses DNS sensor network observations when you need both registration coverage and observations. Combine NOH with an apex-domain feed when you also need hostname-level detail. ## Related resources - Newly Observed Domains (NOD) - Newly Active Domains (NAD) - Newly Observed Hostnames (NOH) - Domain Discovery - Threat Feeds overview The NAD feed lists domains that have become active in our global passive DNS sensor network, either for the first time or after a period of inactivity (at least 10 days). This helps identify when a previously dormant domain is being repurposed, a common tactic for attackers. ## Overview Domains are apex-level (for example, example.com but not www.example.com). Each value is delivered as a single fully qualified domain name (FQDN), validated against the bailiwick and observed in an authoritative DNS response. FQDNs can contain characters outside conventional hostname, URL, or application-specific syntax. To compare NAD with the other discovery feeds, see Choosing a Discovery Feed. Use this feed when you need to: - Detect the reactivation of previously dormant domains - Identify potentially suspicious infrastructure - Monitor domains that might be used for malicious activities - Integrate as a blocklist into DNS resolvers via RPZ Inclusion criteria: Domains observed in passive DNS to be newly active in the latest lifecycle of the domain, either for the first time or after an inactive period of at least 10 days. ## Requirements You need the following to access Threat Feeds: - An Enterprise Account with DomainTools, accessible at https://account.domaintools.com/my-account/ - Authentication credentials (API key for header authentication, or API username and key for HMAC or open key authentication) - A way to interact with a REST API delivered through AWS Obtain your API credentials from your group's API administrator. API administrators can manage their API keys at https://research.domaintools.com, selecting the drop-down account menu and choosing API admin. For assistance, contact enterprisesupport@domaintools.com. ## Authentication You can authenticate to the NAD APIs using three different methods. Choose the method that best fits your security requirements and technical environment. ### API key (header) authentication Authenticate your requests by including the API key in the header of each HTTP request. The API key serves as a unique identifier and authenticates your requests. Required header: X-Api-Key: $DOMAINTOOLS_API_KEY Examples: ```sh # Feed API request curl -H "X-Api-Key: $DOMAINTOOLS_API_KEY" \ 'https://api.domaintools.com/v1/feed/nad/?sessionID=mySOC' ``` ```sh # Download API request curl -H "X-Api-Key: $DOMAINTOOLS_API_KEY" \ 'https://api.domaintools.com/v1/download/nad/' ``` ### HMAC authentication HMAC authentication is a secure alternative to API key-based methods. It requires signing each request with an HMAC digest derived from your API key, providing integrity and authenticity without exposing credentials directly in the request. This method is recommended for systems where authentication credentials shouldn't be stored in plain text or included directly in request URLs. DomainTools supports MD5, SHA1, and SHA256 for the hashing algorithm. Use SHA256 — it's the recommended choice and is more resistant to collision attacks than MD5 or SHA1. Required query parameters: - api_username: Your DomainTools API username - signature: HMAC-SHA256 signature of api_username + timestamp + uri_path - timestamp: Current UTC timestamp in ISO 8601 format (for example, 2025-06-01T15:30:00Z) Constructing the HMAC signature: ```sh signature = HMAC-SHA256(api_key, api_username + timestamp + uri_path) ``` Caution: URI path must include API version The uri_path parameter must include the API version prefix. For example, use /v1/feed/nod/ not /feed/nod/. Example Python signing function: ```python import hmac import hashlib def sign(api_username, api_key, timestamp, uri): params = f"{api_username}{timestamp}{uri}" return hmac.new(api_key.encode("utf-8"), params.encode("utf-8"), hashlib.sha256).hexdigest() ``` Note: HMAC timestamp requirements The timestamp parameter in HMAC authentication must be current (within a few minutes of the server time). The timestamps shown in these examples are static for demonstration purposes. In production, generate a fresh timestamp for each request using your system's current time in ISO 8601 UTC format (e.g., 2025-01-06T15:30:00Z). Examples: ```sh # Feed API request with HMAC curl 'https://api.domaintools.com/v1/feed/nad/?api_username=YOUR_USERNAME&signature=HMAC_SIGNATURE×tamp=2025-01-06T15:30:00Z&sessionID=mySOC' ``` ```sh # Download API request with HMAC curl 'https://api.domaintools.com/v1/download/nad/?api_username=YOUR_USERNAME&signature=HMAC_SIGNATURE×tamp=2025-01-06T15:30:00Z' ``` ### Open key authentication This is the easiest authentication scheme to implement, but also the least secure. Each request contains the full API key and API username as query parameters. We recommend using API key header authentication or HMAC authentication instead. If you're unsure about your authentication options, contact enterprisesupport@domaintools.com. Required query parameters: - api_username: Your API username - api_key: Your API key Examples: ```sh # Feed API request curl 'https://api.domaintools.com/v1/feed/nad/?api_username=YOUR_USERNAME&api_key=YOUR_API_KEY&sessionID=mySOC' ``` ```sh # Download API request curl 'https://api.domaintools.com/v1/download/nad/?api_username=YOUR_USERNAME&api_key=YOUR_API_KEY' ``` ## Real-time Feed API The Feed API provides real-time access to current NAD data. Use this API to poll for the latest feed updates at regular intervals, maintain a session to track your position in the feed, and filter results based on your specific needs. ### Base URL ```text https://api.domaintools.com/v1/feed/nad/ ``` ### Rate limits Real-time feeds have the following rate limits: - 2 queries per minute - 120 queries per hour If you exceed these limits, the API returns an error. ### Response formats The API supports two response formats: NDJSON (Newline-Delimited JSON) - Default format when no Accept header is specified - Also known as JSON Lines (JSONL) - One JSON object per line - Efficient for streaming and processing large datasets - Set Accept: application/x-ndjson to explicitly request this format CSV (Comma-Separated Values) - Set Accept: text/csv to request CSV format - Add &headers=1 to the query parameters to include column headers as the first line - Not available for all feeds; check the specific feed documentation for CSV support ### Session management Session management allows you to maintain your position in the feed data stream, ensuring you don't miss or duplicate events when polling the API. How sessions work: - Start a new session: Provide a unique sessionID parameter of your choosing. By default, the API returns the past hour of results. - Resume a session: Use the same sessionID in subsequent requests. The API returns all data since your last request. - Handle large result sets: If a single request exceeds 10M results, the API returns an HTTP 206 response code. Repeat the same request with the same sessionID to receive the next batch of data until you receive an HTTP 200 response code. - One request at a time: Do not send simultaneous requests with the same sessionID for the same feed. Wait for each request to complete before sending the next one. Concurrent requests with the same sessionID can produce errors or incomplete results. - Delete a session: Use an HTTP DELETE request with your sessionID to clear the saved offset and start fresh. Session ID requirements: - 1 to 64 characters in length - Alphanumeric characters and hyphens only ([a-zA-Z0-9-]+) - Case-sensitive ### Quick start The standard access pattern is to periodically request the most recent feed data, as often as every 60 seconds. ```sh curl -H "X-Api-Key: $DOMAINTOOLS_API_KEY" \ 'https://api.domaintools.com/v1/feed/nad/?sessionID=mySOC' ``` This starts a new session and returns the last hour of data. Subsequent calls with the same sessionID return data since the last request. ### Feed API parameters #### sessionID Type: String Valid values: 1-64 alphanumeric characters and hyphens ([a-zA-Z0-9-]+) Description: A unique identifier for the session, used for resuming data retrieval from the last point. Use a new sessionID to begin a new session, fetching the most recent hour by default. Reuse the same sessionID to return all feed data since your last request. If omitted, time window parameters (such as after/before) are required. Example: sessionID=mySOC Required: Yes, to continue where you left off (or use after/before instead) #### after Type: Integer or string Valid values: - Integer: -1 to -432,000 (relative seconds before current time) - String: ISO 8601 datetime in UTC format (YYYY-MM-DDTHH:MM:SSZ) Description: The start of the query window (inclusive). When using an integer, the value is in seconds relative to the current time. When using a string, provide an absolute timestamp. The query window covers the most recent 5 days. A value older than 5 days is capped to the start of that window, and the response begins 5 days back. Example: after=-60 or after=2024-10-16T10:20:00Z Required: Yes, if before or sessionID not provided #### before Type: Integer or string Valid values: - Integer: -1 to -432,000 (relative seconds before current time) - String: ISO 8601 datetime in UTC format (YYYY-MM-DDTHH:MM:SSZ) Description: The end of the query window (inclusive). When using an integer, the value is in seconds relative to the current time. When using a string, provide an absolute timestamp. The query window covers the most recent 5 days. A value older than 5 days places the window entirely outside it, and the response contains no records. Example: before=-120 or before=2024-10-16T10:20:00Z Required: Yes, if after or sessionID not provided #### domain Type: String Valid values: Domain character set restricted by the DNS specification (letters, digits, hyphens). International characters should be specified in punycode. A trailing dot is acceptable. Description: Filter for an exact domain or a domain substring by prefixing or suffixing your string with *. Multiple parameters are supported (for example, ?domain=*apple*&domain=*microsoft*). The URL-encoded version of * (%2A) may be required in some clients. Example: domain=*bank* or domain=example.com Required: No #### fromBeginning Type: Boolean Valid values: true, false, 1, 0 Description: Requires a sessionID. Set fromBeginning=true on the first request with a new session ID to return the first hour of data in the time window rather than the last. false is the default. Using it with a session ID that already exists returns HTTP 406, so drop fromBeginning from subsequent requests. Using it without a sessionID, or passing a value that isn't a boolean, returns HTTP 422. Example: fromBeginning=true Required: No #### top Type: Integer Valid values: Positive integer, 1-1,000,000,000 Description: Limits the number of results in the response payload. Primarily intended for testing. Example: top=10 Required: No #### headers Type: Boolean Valid values: true, false, 1, 0 Description: Adds a header row as the first line of the response when text/csv is requested. Set headers=1 to enable; false is the default. Enabling it on a request that doesn't ask for text/csv returns HTTP 422, as does a value that isn't a boolean. Example: headers=1 Required: No ### Feed API response structure The API returns responses in NDJSON (Newline-Delimited JSON), with each response containing one domain entry per line. Each entry contains a timestamp in ISO 8601 UTC format, and the domain. Response fields: timestamp (string): The observation timestamp in ISO 8601 UTC format. - Example: "timestamp":"2024-11-15T16:14:39Z" domain (string): The domain name without the trailing dot. Domain character set restricted by the DNS specification (letters, digits, hyphens). - Example: "domain":"example.com" Example NDJSON response: ```json {"timestamp":"2024-11-15T16:14:39Z","domain":"domiantools.com"} {"timestamp":"2024-11-15T16:14:38Z","domain":"domsintools.com"} {"timestamp":"2024-11-15T16:14:36Z","domain":"edomaintools.com"} {"timestamp":"2024-11-15T16:14:35Z","domain":"omaintools.com"} {"timestamp":"2024-11-15T16:14:35Z","domain":"v-domaintools.com"} ``` Example CSV response: ```csv timestamp,domain 2024-11-15T16:14:39Z,domiantools.com 2024-11-15T16:14:38Z,domsintools.com 2024-11-15T16:14:36Z,edomaintools.com ``` ### Feed API response codes | Code | Status | Description | |------|--------|-------------| | 200 | OK | The request was successful and all data has been delivered | | 206 | Partial content | The request was successful, but only a portion of the data was returned. The request exceeded 10M results or the 1-hour evaluation window. Repeat the same request with the same sessionID to receive the next batch of data until you receive an HTTP 200 response | | 400 | Bad request | The request is malformed | | 403 | Forbidden | Missing or invalid API credentials | | 404 | Not found | The requested resource (such as a sessionID) doesn't exist | | 406 | Not acceptable | Either the specified Accept header value isn't supported (only application/x-ndjson and text/csv are accepted), or fromBeginning was used with a sessionID that already exists | | 422 | Unprocessable entity | The request is syntactically valid but violates semantic or domain-specific rules (for example, invalid query parameter values) | ### Feed API examples Basic session polling: ```sh # Start a new session curl -H "X-Api-Key: $DOMAINTOOLS_API_KEY" \ 'https://api.domaintools.com/v1/feed/nad/?sessionID=mySOC' ``` ```sh # Resume the session (returns data since last request) curl -H "X-Api-Key: $DOMAINTOOLS_API_KEY" \ 'https://api.domaintools.com/v1/feed/nad/?sessionID=mySOC' ``` Time window filtering: ```sh # Get data from a specific time range curl -H "X-Api-Key: $DOMAINTOOLS_API_KEY" \ 'https://api.domaintools.com/v1/feed/nad/?after=2025-01-06T10:00:00Z&before=2025-01-06T11:00:00Z' ``` Domain filtering: ```sh # Filter for specific domain patterns curl -H "X-Api-Key: $DOMAINTOOLS_API_KEY" \ 'https://api.domaintools.com/v1/feed/nad/?domain=*.example.com&sessionID=mySOC' ``` CSV format: ```sh # Request CSV format with headers curl -H 'Accept: text/csv' -H "X-Api-Key: $DOMAINTOOLS_API_KEY" \ 'https://api.domaintools.com/v1/feed/nad/?headers=1&sessionID=mySOC' ``` ```sh # Request CSV format without headers curl -H 'Accept: text/csv' -H "X-Api-Key: $DOMAINTOOLS_API_KEY" \ 'https://api.domaintools.com/v1/feed/nad/?sessionID=mySOC' ``` Handling large result sets: ```sh # If you receive HTTP 206, repeat the request to get the next batch curl -H "X-Api-Key: $DOMAINTOOLS_API_KEY" \ 'https://api.domaintools.com/v1/feed/nad/?sessionID=mySOC' ``` ```sh # Repeat until you receive HTTP 200 curl -H "X-Api-Key: $DOMAINTOOLS_API_KEY" \ 'https://api.domaintools.com/v1/feed/nad/?sessionID=mySOC' ``` Delete a session: ```sh # Clear the saved offset and start fresh curl -X DELETE -H "X-Api-Key: $DOMAINTOOLS_API_KEY" \ 'https://api.domaintools.com/v1/feed/nad/?sessionID=mySOC' ``` ## Download API The Download API provides access to historical NAD data through temporary AWS S3 file links. Use this API to retrieve archived data you may have missed or to backfill your systems with historical information. Files are organized by hour and available for 90 days. ### Base URL ```text https://api.domaintools.com/v1/download/nad/ ``` ### Download API parameters #### limit Type: Integer Valid values: Positive integer Description: Limits the number of files returned in the response, starting from the most recent. Use to control payload size or test specific cases. Example: limit=10 Required: No ### Download API response structure The API returns a JSON response containing an array of downloadable files. Each file entry includes: download_name (string): The feed identifier (nad) files (array): List of downloadable file entries Each file object contains: - name (string): Path and filename of the downloadable file - last_modified (string): Timestamp of last modification in ISO 8601 UTC format - etag (string): ETag (hash) used to verify file identity and versioning - size (integer): File size in bytes - url (string): Temporary signed URL to download the file from AWS File naming convention: - Data file: nad/{YYYY-MM-DD}/nad-{YYYYMMDD}.{HH00}-{HH00}.json.gz - Checksum file: nad/{YYYY-MM-DD}/nad-{YYYYMMDD}.{HH00}-{HH00}.json.gz.sha256 Example response: ```json { "response": { "download_name": "nad", "files": [ { "name": "nad/2024-11-19/nad-20241119.1900-2000.json.gz.sha256", "last_modified": "2024-11-19T20:00:11+00:00", "etag": "\"67a6d9b0973b2d31ffb779dc8f7f8cfa\"", "size": 64, "url": "https://download.example.com/nad/2024-11-19/nad-20241119.1900-2000.json.gz.sha256?Expires=..." }, { "name": "nad/2024-11-19/nad-20241119.1900-2000.json.gz", "last_modified": "2024-11-19T20:00:11+00:00", "etag": "\"67a6d9b0973b2d31ffb779dc8f7f8cfa\"", "size": 140725, "url": "https://download.example.com/nad/2024-11-19/nad-20241119.1900-2000.json.gz?Expires=..." } ] } } ``` ### Download API response codes | Code | Status | Description | |------|--------|-------------| | 200 | OK | The request was successful | | 400 | Bad request | The request is malformed | | 401 | Unauthorized | Missing or invalid API credentials | | 403 | Forbidden | Missing or invalid API credentials | | 404 | Not found | No data to download | | 422 | Unprocessable entity | The request is syntactically valid but violates semantic or domain-specific rules (for example, invalid query parameter values) | ### Download API file contents The *.json.gz.sha256 file is a checksum containing a SHA-256 hash value used to verify the integrity of the downloaded file. The *.json.gz file, when uncompressed, contains JSON data in the same format as the Feed API response (NDJSON with timestamp and domain fields). ### Download API examples List available files: ```sh # Get the most recent files curl -H "X-Api-Key: $DOMAINTOOLS_API_KEY" \ 'https://api.domaintools.com/v1/download/nad/?limit=10' ``` Download and verify a file: ```sh # Get the file list curl -H "X-Api-Key: $DOMAINTOOLS_API_KEY" \ 'https://api.domaintools.com/v1/download/nad/?limit=2' > files.json # Extract the URL and download the data file curl -o nad-data.json.gz "$(jq -r '.response.files[1].url' files.json)" # Download the checksum file curl -o nad-data.json.gz.sha256 "$(jq -r '.response.files[0].url' files.json)" # Verify the integrity sha256sum -c nad-data.json.gz.sha256 ``` Batch processing: ```sh # Download multiple files in a loop for url in $(curl -H "X-Api-Key: $DOMAINTOOLS_API_KEY" \ 'https://api.domaintools.com/v1/download/nad/?limit=24' | \ jq -r '.response.files[].url' | grep '\.json\.gz$'); do curl -O "$url" done ``` ## RPZ Access The NAD feed is available via Response Policy Zone (RPZ) for direct integration with DNS firewalls. ### Overview Response Policy Zone (RPZ) provides DNS-level blocking by integrating Threat Feeds directly into your DNS resolver. This allows you to automatically block or redirect DNS queries for domains in the feed, providing real-time protection before connections are established. How RPZ works: When a user attempts to access a domain in the RPZ feed, your DNS resolver responds with an NXDOMAIN ("no such domain") status code, effectively making the domain unavailable. This blocks malicious domains at the DNS layer, preventing endpoint communication before any connection is established. Benefits: - Real-time protection: Blocks threats at the DNS resolver level - Automatic updates: Receives updates via DNS zone transfers (AXFR/IXFR) - No client configuration: Works transparently for all clients using your DNS resolver - Efficient: Minimal performance impact on DNS resolution - Standard protocol: Uses DNS Response Policy Zones specification Zone naming format: RPZ zones are named using the pattern: [interval].[feed].rpz.domaintools.com Available time intervals: 5m, 10m, 30m, 1h, 3h (and 12h/24h for some feeds — availability varies by feed) Larger time intervals are supersets that include smaller intervals. Smaller intervals have smaller zone sizes and may be available faster. ### Available zones The NAD feed is available in the following RPZ zones: - 5m.nad.rpz.domaintools.com - Last 5 minutes - 10m.nad.rpz.domaintools.com - Last 10 minutes - 30m.nad.rpz.domaintools.com - Last 30 minutes - 1h.nad.rpz.domaintools.com - Last 1 hour - 3h.nad.rpz.domaintools.com - Last 3 hours - 12h.nad.rpz.domaintools.com - Last 12 hours ### Configuration Configuration requirements: To access RPZ feeds, you need to: 1. Provide IP addresses: Contact enterprisesupport@domaintools.com with: - IP address(es) from which you connect to the RPZ provider DNS server - IP address(es) to receive DNS NOTIFY messages (typically the same) 2. Configure firewall: Add rules to allow DomainTools hosts to send UDP packets to port 53: - IPv4: 104.244.13.88 Port: 53 - IPv4: 104.244.14.88 Port: 53 3. Set up TSIG authentication: DomainTools uses TSIG (Secret Key Transaction Authentication) for authorization: - TSIG key algorithm: hmac-sha512 - TSIG key and key name: Provided by DomainTools Enterprise Support Delivery method: RPZ feeds are delivered via: - Incremental Zone Transfers (IXFR) - Full zone transfers (AXFR) - DNS NOTIFY messages to trigger zone updates For detailed configuration instructions, including DNS resolver setup, advanced features (allowlists, walled gardens, logging), and troubleshooting, see the Response Policy Zone documentation. ### Testing Testing your RPZ configuration: When your DNS resolver blocks a domain using RPZ, the response includes an SOA (Start of Authority) record that identifies which RPZ feed was used. Test domain: Each RPZ feed includes a test domain entry: test.rpz.domaintools.test Use this to verify the RPZ feed is loaded and working. A successful test returns: - NXDOMAIN status code - SOA record in the ADDITIONAL section showing the specific feed name Example SOA record: ```text ;; ADDITIONAL SECTION: 3h.iphotlist.rpz.domaintools.com. 86400 IN SOA rpz-ns1.domaintools.com. noc.domaintools.com. 946684799 600 300 86400 86400 ``` The SOA SERIAL number (Unix epoch timestamp) indicates when the feed was last regenerated. Troubleshooting: If the SOA record appears in the AUTHORITY section instead of ADDITIONAL, or doesn't show the specific feed name, the response didn't come from RPZ. Check your DNS resolver's RPZ-related logs for additional debugging information. ### RPZ examples Test the RPZ feed: ```text # Query the test domain dig test.rpz.domaintools.test # Expected response includes NXDOMAIN and SOA record showing the feed name # Example SOA in ADDITIONAL section: # 3h.nad.rpz.domaintools.com. 86400 IN SOA rpz-ns1.domaintools.com. ... ``` Verify a specific zone is loaded: ```text # Test with the 1-hour NAD zone dig @your-dns-server test.rpz.domaintools.test # Check the SOA record shows: 1h.nad.rpz.domaintools.com ``` ## Related resources - Domain Risk Score user guide - Newly Observed Domains feed - Domain Hotlist feed - Response Policy Zone documentation The NOD feed provides a real-time list of domains that have been observed for the first time in our global passive DNS sensor network. This feed is ideal for brand protection, corporate intelligence, and temporarily blocking outbound connections to brand-new domains until their reputation can be assessed. Six 60-second Threat Feed API snapshots collected on August 28, 2026 averaged 2.41 records per second (highest full-minute sample: 4.53 per second), or 0.00129 Mbps (0.00236 Mbps). These observed values vary with traffic and are not a service guarantee. ## Overview Domains are apex-level (for example, example.com but not www.example.com). Each value is delivered as a single fully qualified domain name (FQDN), validated against the bailiwick and observed in an authoritative DNS response. FQDNs can contain characters outside conventional hostname, URL, or application-specific syntax. To compare NOD with the other discovery feeds, see Choosing a Discovery Feed. Use this feed when you need to: - Identify newly registered domains that might be used for typosquatting or other brand abuse - Monitor the emergence of new domains relevant to your organization - Temporarily block access to newly observed domains to mitigate risks until their legitimacy is verified - Integrate as a blocklist into DNS resolvers via RPZ Inclusion criteria: Domains observed in passive DNS for the first time. ## Requirements You need the following to access Threat Feeds: - An Enterprise Account with DomainTools, accessible at https://account.domaintools.com/my-account/ - Authentication credentials (API key for header authentication, or API username and key for HMAC or open key authentication) - A way to interact with a REST API delivered through AWS Obtain your API credentials from your group's API administrator. API administrators can manage their API keys at https://research.domaintools.com, selecting the drop-down account menu and choosing API admin. For assistance, contact enterprisesupport@domaintools.com. ## Authentication You can authenticate to the NOD APIs using three different methods. Choose the method that best fits your security requirements and technical environment. ### API key (header) authentication Authenticate your requests by including the API key in the header of each HTTP request. The API key serves as a unique identifier and authenticates your requests. Required header: X-Api-Key: $DOMAINTOOLS_API_KEY Examples: ```sh # Feed API request curl -H "X-Api-Key: $DOMAINTOOLS_API_KEY" \ 'https://api.domaintools.com/v1/feed/nod/?sessionID=myThreatIntel' ``` ```sh # Download API request curl -H "X-Api-Key: $DOMAINTOOLS_API_KEY" \ 'https://api.domaintools.com/v1/download/nod/' ``` ### HMAC authentication HMAC authentication is a secure alternative to API key-based methods. It requires signing each request with an HMAC digest derived from your API key, providing integrity and authenticity without exposing credentials directly in the request. This method is recommended for systems where authentication credentials shouldn't be stored in plain text or included directly in request URLs. DomainTools supports MD5, SHA1, and SHA256 for the hashing algorithm. Use SHA256 — it's the recommended choice and is more resistant to collision attacks than MD5 or SHA1. Required query parameters: - api_username: Your DomainTools API username - signature: HMAC-SHA256 signature of api_username + timestamp + uri_path - timestamp: Current UTC timestamp in ISO 8601 format (for example, 2025-06-01T15:30:00Z) Constructing the HMAC signature: ```sh signature = HMAC-SHA256(api_key, api_username + timestamp + uri_path) ``` Caution: URI path must include API version The uri_path parameter must include the API version prefix. For example, use /v1/feed/nod/ not /feed/nod/. Example Python signing function: ```python import hmac import hashlib def sign(api_username, api_key, timestamp, uri): params = f"{api_username}{timestamp}{uri}" return hmac.new(api_key.encode("utf-8"), params.encode("utf-8"), hashlib.sha256).hexdigest() ``` Note: HMAC timestamp requirements The timestamp parameter in HMAC authentication must be current (within a few minutes of the server time). The timestamps shown in these examples are static for demonstration purposes. In production, generate a fresh timestamp for each request using your system's current time in ISO 8601 UTC format (e.g., 2025-01-06T15:30:00Z). Examples: ```sh # Feed API request with HMAC curl 'https://api.domaintools.com/v1/feed/nod/?api_username=YOUR_USERNAME&signature=HMAC_SIGNATURE×tamp=2025-01-06T15:30:00Z&sessionID=myThreatIntel' ``` ```sh # Download API request with HMAC curl 'https://api.domaintools.com/v1/download/nod/?api_username=YOUR_USERNAME&signature=HMAC_SIGNATURE×tamp=2025-01-06T15:30:00Z' ``` ### Open key authentication This is the easiest authentication scheme to implement, but also the least secure. Each request contains the full API key and API username as query parameters. We recommend using API key header authentication or HMAC authentication instead. If you're unsure about your authentication options, contact enterprisesupport@domaintools.com. Required query parameters: - api_username: Your API username - api_key: Your API key Examples: ```sh # Feed API request curl 'https://api.domaintools.com/v1/feed/nod/?api_username=YOUR_USERNAME&api_key=YOUR_API_KEY&sessionID=myThreatIntel' ``` ```sh # Download API request curl 'https://api.domaintools.com/v1/download/nod/?api_username=YOUR_USERNAME&api_key=YOUR_API_KEY' ``` ## Real-time Feed API The Feed API provides real-time access to current NOD data. Use this API to poll for the latest feed updates at regular intervals, maintain a session to track your position in the feed, and filter results based on your specific needs. ### Base URL ```text https://api.domaintools.com/v1/feed/nod/ ``` ### Rate limits Real-time feeds have the following rate limits: - 2 queries per minute - 120 queries per hour If you exceed these limits, the API returns an error. ### Response formats The API supports two response formats: NDJSON (Newline-Delimited JSON) - Default format when no Accept header is specified - Also known as JSON Lines (JSONL) - One JSON object per line - Efficient for streaming and processing large datasets - Set Accept: application/x-ndjson to explicitly request this format CSV (Comma-Separated Values) - Set Accept: text/csv to request CSV format - Add &headers=1 to the query parameters to include column headers as the first line - Not available for all feeds; check the specific feed documentation for CSV support ### Session management Session management allows you to maintain your position in the feed data stream, ensuring you don't miss or duplicate events when polling the API. How sessions work: - Start a new session: Provide a unique sessionID parameter of your choosing. By default, the API returns the past hour of results. - Resume a session: Use the same sessionID in subsequent requests. The API returns all data since your last request. - Handle large result sets: If a single request exceeds 10M results, the API returns an HTTP 206 response code. Repeat the same request with the same sessionID to receive the next batch of data until you receive an HTTP 200 response code. - One request at a time: Do not send simultaneous requests with the same sessionID for the same feed. Wait for each request to complete before sending the next one. Concurrent requests with the same sessionID can produce errors or incomplete results. - Delete a session: Use an HTTP DELETE request with your sessionID to clear the saved offset and start fresh. Session ID requirements: - 1 to 64 characters in length - Alphanumeric characters and hyphens only ([a-zA-Z0-9-]+) - Case-sensitive ### Quick start The standard access pattern is to periodically request the most recent feed data, as often as every 60 seconds. ```sh curl -H "X-Api-Key: $DOMAINTOOLS_API_KEY" \ 'https://api.domaintools.com/v1/feed/nod/?sessionID=myThreatIntel' ``` This starts a new session and returns the last hour of data. Subsequent calls with the same sessionID return data since the last request. ### Feed API parameters #### sessionID Type: String Valid values: 1-64 alphanumeric characters and hyphens ([a-zA-Z0-9-]+) Description: A unique identifier for the session, used for resuming data retrieval from the last point. Use a new sessionID to begin a new session, fetching the most recent hour by default. Reuse the same sessionID to return all feed data since your last request. If omitted, time window parameters (such as after/before) are required. Example: sessionID=mySOC Required: Yes, to continue where you left off (or use after/before instead) #### after Type: Integer or string Valid values: - Integer: -1 to -432,000 (relative seconds before current time) - String: ISO 8601 datetime in UTC format (YYYY-MM-DDTHH:MM:SSZ) Description: The start of the query window (inclusive). When using an integer, the value is in seconds relative to the current time. When using a string, provide an absolute timestamp. The query window covers the most recent 5 days. A value older than 5 days is capped to the start of that window, and the response begins 5 days back. Example: after=-60 or after=2024-10-16T10:20:00Z Required: Yes, if before or sessionID not provided #### before Type: Integer or string Valid values: - Integer: -1 to -432,000 (relative seconds before current time) - String: ISO 8601 datetime in UTC format (YYYY-MM-DDTHH:MM:SSZ) Description: The end of the query window (inclusive). When using an integer, the value is in seconds relative to the current time. When using a string, provide an absolute timestamp. The query window covers the most recent 5 days. A value older than 5 days places the window entirely outside it, and the response contains no records. Example: before=-120 or before=2024-10-16T10:20:00Z Required: Yes, if after or sessionID not provided #### domain Type: String Valid values: Domain character set restricted by the DNS specification (letters, digits, hyphens). International characters should be specified in punycode. A trailing dot is acceptable. Description: Filter for an exact domain or a domain substring by prefixing or suffixing your string with *. Multiple parameters are supported (for example, ?domain=*apple*&domain=*microsoft*). The URL-encoded version of * (%2A) may be required in some clients. Example: domain=*bank* or domain=example.com Required: No #### fromBeginning Type: Boolean Valid values: true, false, 1, 0 Description: Requires a sessionID. Set fromBeginning=true on the first request with a new session ID to return the first hour of data in the time window rather than the last. false is the default. Using it with a session ID that already exists returns HTTP 406, so drop fromBeginning from subsequent requests. Using it without a sessionID, or passing a value that isn't a boolean, returns HTTP 422. Example: fromBeginning=true Required: No #### top Type: Integer Valid values: Positive integer, 1-1,000,000,000 Description: Limits the number of results in the response payload. Primarily intended for testing. Example: top=10 Required: No #### headers Type: Boolean Valid values: true, false, 1, 0 Description: Adds a header row as the first line of the response when text/csv is requested. Set headers=1 to enable; false is the default. Enabling it on a request that doesn't ask for text/csv returns HTTP 422, as does a value that isn't a boolean. Example: headers=1 Required: No ### Feed API response structure The API returns responses in NDJSON (Newline-Delimited JSON), with each response containing one domain entry per line. Each entry contains a timestamp in ISO 8601 UTC format, and the domain. Response fields: timestamp (string): The observation timestamp in ISO 8601 UTC format. - Example: "timestamp":"2024-11-15T16:14:39Z" domain (string): The domain name without the trailing dot. Domain character set restricted by the DNS specification (letters, digits, hyphens). - Example: "domain":"example.com" Example NDJSON response: ```json {"timestamp":"2024-11-15T16:14:39Z","domain":"domiantools.com"} {"timestamp":"2024-11-15T16:14:38Z","domain":"domsintools.com"} {"timestamp":"2024-11-15T16:14:36Z","domain":"edomaintools.com"} {"timestamp":"2024-11-15T16:14:35Z","domain":"omaintools.com"} {"timestamp":"2024-11-15T16:14:35Z","domain":"v-domaintools.com"} ``` Example CSV response: ```csv timestamp,domain 2024-11-15T16:14:39Z,domiantools.com 2024-11-15T16:14:38Z,domsintools.com 2024-11-15T16:14:36Z,edomaintools.com ``` ### Feed API response codes | Code | Status | Description | |------|--------|-------------| | 200 | OK | The request was successful and all data has been delivered | | 206 | Partial content | The request was successful, but only a portion of the data was returned. The request exceeded 10M results or the 1-hour evaluation window. Repeat the same request with the same sessionID to receive the next batch of data until you receive an HTTP 200 response | | 400 | Bad request | The request is malformed | | 403 | Forbidden | Missing or invalid API credentials | | 404 | Not found | The requested resource (such as a sessionID) doesn't exist | | 406 | Not acceptable | Either the specified Accept header value isn't supported (only application/x-ndjson and text/csv are accepted), or fromBeginning was used with a sessionID that already exists | | 422 | Unprocessable entity | The request is syntactically valid but violates semantic or domain-specific rules (for example, invalid query parameter values) | ### Feed API examples Basic session polling: ```sh # Start a new session curl -H "X-Api-Key: $DOMAINTOOLS_API_KEY" \ 'https://api.domaintools.com/v1/feed/nod/?sessionID=myThreatIntel' ``` ```sh # Resume the session (returns data since last request) curl -H "X-Api-Key: $DOMAINTOOLS_API_KEY" \ 'https://api.domaintools.com/v1/feed/nod/?sessionID=myThreatIntel' ``` Time window filtering: ```sh # Get data from a specific time range curl -H "X-Api-Key: $DOMAINTOOLS_API_KEY" \ 'https://api.domaintools.com/v1/feed/nod/?after=2025-01-06T10:00:00Z&before=2025-01-06T11:00:00Z' ``` Domain filtering: ```sh # Filter for specific domain patterns curl -H "X-Api-Key: $DOMAINTOOLS_API_KEY" \ 'https://api.domaintools.com/v1/feed/nod/?domain=*.example.com&sessionID=myThreatIntel' ``` CSV format: ```sh # Request CSV format with headers curl -H 'Accept: text/csv' -H "X-Api-Key: $DOMAINTOOLS_API_KEY" \ 'https://api.domaintools.com/v1/feed/nod/?headers=1&sessionID=myThreatIntel' ``` ```sh # Request CSV format without headers curl -H 'Accept: text/csv' -H "X-Api-Key: $DOMAINTOOLS_API_KEY" \ 'https://api.domaintools.com/v1/feed/nod/?sessionID=myThreatIntel' ``` Handling large result sets: ```sh # If you receive HTTP 206, repeat the request to get the next batch curl -H "X-Api-Key: $DOMAINTOOLS_API_KEY" \ 'https://api.domaintools.com/v1/feed/nod/?sessionID=myThreatIntel' ``` ```sh # Repeat until you receive HTTP 200 curl -H "X-Api-Key: $DOMAINTOOLS_API_KEY" \ 'https://api.domaintools.com/v1/feed/nod/?sessionID=myThreatIntel' ``` Delete a session: ```sh # Clear the saved offset and start fresh curl -X DELETE -H "X-Api-Key: $DOMAINTOOLS_API_KEY" \ 'https://api.domaintools.com/v1/feed/nod/?sessionID=myThreatIntel' ``` ## Download API The Download API provides access to historical NOD data through temporary AWS S3 file links. Use this API to retrieve archived data you may have missed or to backfill your systems with historical information. Files are organized by hour and available for 90 days. ### Base URL ```text https://api.domaintools.com/v1/download/nod/ ``` ### Download API parameters #### limit Type: Integer Valid values: Positive integer Description: Limits the number of files returned in the response, starting from the most recent. Use to control payload size or test specific cases. Example: limit=10 Required: No ### Download API response structure The API returns a JSON response containing an array of downloadable files. Each file entry includes: download_name (string): The feed identifier (nod) files (array): List of downloadable file entries Each file object contains: - name (string): Path and filename of the downloadable file - last_modified (string): Timestamp of last modification in ISO 8601 UTC format - etag (string): ETag (hash) used to verify file identity and versioning - size (integer): File size in bytes - url (string): Temporary signed URL to download the file from AWS File naming convention: - Data file: nod/{YYYY-MM-DD}/nod-{YYYYMMDD}.{HH00}-{HH00}.json.gz - Checksum file: nod/{YYYY-MM-DD}/nod-{YYYYMMDD}.{HH00}-{HH00}.json.gz.sha256 Example response: ```json { "response": { "download_name": "nod", "files": [ { "name": "nod/2024-11-19/nod-20241119.1900-2000.json.gz.sha256", "last_modified": "2024-11-19T20:00:11+00:00", "etag": "\"67a6d9b0973b2d31ffb779dc8f7f8cfa\"", "size": 64, "url": "https://download.example.com/nod/2024-11-19/nod-20241119.1900-2000.json.gz.sha256?Expires=..." }, { "name": "nod/2024-11-19/nod-20241119.1900-2000.json.gz", "last_modified": "2024-11-19T20:00:11+00:00", "etag": "\"67a6d9b0973b2d31ffb779dc8f7f8cfa\"", "size": 140725, "url": "https://download.example.com/nod/2024-11-19/nod-20241119.1900-2000.json.gz?Expires=..." } ] } } ``` ### Download API response codes | Code | Status | Description | |------|--------|-------------| | 200 | OK | The request was successful | | 400 | Bad request | The request is malformed | | 401 | Unauthorized | Missing or invalid API credentials | | 403 | Forbidden | Missing or invalid API credentials | | 404 | Not found | No data to download | | 422 | Unprocessable entity | The request is syntactically valid but violates semantic or domain-specific rules (for example, invalid query parameter values) | ### Download API file contents The *.json.gz.sha256 file is a checksum containing a SHA-256 hash value used to verify the integrity of the downloaded file. The *.json.gz file, when uncompressed, contains JSON data in the same format as the Feed API response (NDJSON with timestamp and domain fields). ### Download API examples List available files: ```sh # Get the most recent files curl -H "X-Api-Key: $DOMAINTOOLS_API_KEY" \ 'https://api.domaintools.com/v1/download/nod/?limit=10' ``` Download and verify a file: ```sh # Get the file list curl -H "X-Api-Key: $DOMAINTOOLS_API_KEY" \ 'https://api.domaintools.com/v1/download/nod/?limit=2' > files.json # Extract the URL and download the data file curl -o nod-data.json.gz "$(jq -r '.response.files[1].url' files.json)" # Download the checksum file curl -o nod-data.json.gz.sha256 "$(jq -r '.response.files[0].url' files.json)" # Verify the integrity sha256sum -c nod-data.json.gz.sha256 ``` Batch processing: ```sh # Download multiple files in a loop for url in $(curl -H "X-Api-Key: $DOMAINTOOLS_API_KEY" \ 'https://api.domaintools.com/v1/download/nod/?limit=24' | \ jq -r '.response.files[].url' | grep '\.json\.gz$'); do curl -O "$url" done ``` ## RPZ Access The NOD feed is available via Response Policy Zone (RPZ) for direct integration with DNS firewalls. ### Overview Response Policy Zone (RPZ) provides DNS-level blocking by integrating Threat Feeds directly into your DNS resolver. This allows you to automatically block or redirect DNS queries for domains in the feed, providing real-time protection before connections are established. How RPZ works: When a user attempts to access a domain in the RPZ feed, your DNS resolver responds with an NXDOMAIN ("no such domain") status code, effectively making the domain unavailable. This blocks malicious domains at the DNS layer, preventing endpoint communication before any connection is established. Benefits: - Real-time protection: Blocks threats at the DNS resolver level - Automatic updates: Receives updates via DNS zone transfers (AXFR/IXFR) - No client configuration: Works transparently for all clients using your DNS resolver - Efficient: Minimal performance impact on DNS resolution - Standard protocol: Uses DNS Response Policy Zones specification Zone naming format: RPZ zones are named using the pattern: [interval].[feed].rpz.domaintools.com Available time intervals: 5m, 10m, 30m, 1h, 3h (and 12h/24h for some feeds — availability varies by feed) Larger time intervals are supersets that include smaller intervals. Smaller intervals have smaller zone sizes and may be available faster. ### Available zones The NOD feed is available in the following RPZ zones: - 5m.nod.rpz.domaintools.com - Last 5 minutes - 10m.nod.rpz.domaintools.com - Last 10 minutes - 30m.nod.rpz.domaintools.com - Last 30 minutes - 1h.nod.rpz.domaintools.com - Last 1 hour - 3h.nod.rpz.domaintools.com - Last 3 hours - 12h.nod.rpz.domaintools.com - Last 12 hours - 24h.nod.rpz.domaintools.com - Last 24 hours ### Configuration Configuration requirements: To access RPZ feeds, you need to: 1. Provide IP addresses: Contact enterprisesupport@domaintools.com with: - IP address(es) from which you connect to the RPZ provider DNS server - IP address(es) to receive DNS NOTIFY messages (typically the same) 2. Configure firewall: Add rules to allow DomainTools hosts to send UDP packets to port 53: - IPv4: 104.244.13.88 Port: 53 - IPv4: 104.244.14.88 Port: 53 3. Set up TSIG authentication: DomainTools uses TSIG (Secret Key Transaction Authentication) for authorization: - TSIG key algorithm: hmac-sha512 - TSIG key and key name: Provided by DomainTools Enterprise Support Delivery method: RPZ feeds are delivered via: - Incremental Zone Transfers (IXFR) - Full zone transfers (AXFR) - DNS NOTIFY messages to trigger zone updates For detailed configuration instructions, including DNS resolver setup, advanced features (allowlists, walled gardens, logging), and troubleshooting, see the Response Policy Zone documentation. ### Testing Testing your RPZ configuration: When your DNS resolver blocks a domain using RPZ, the response includes an SOA (Start of Authority) record that identifies which RPZ feed was used. Test domain: Each RPZ feed includes a test domain entry: test.rpz.domaintools.test Use this to verify the RPZ feed is loaded and working. A successful test returns: - NXDOMAIN status code - SOA record in the ADDITIONAL section showing the specific feed name Example SOA record: ```text ;; ADDITIONAL SECTION: 3h.iphotlist.rpz.domaintools.com. 86400 IN SOA rpz-ns1.domaintools.com. noc.domaintools.com. 946684799 600 300 86400 86400 ``` The SOA SERIAL number (Unix epoch timestamp) indicates when the feed was last regenerated. Troubleshooting: If the SOA record appears in the AUTHORITY section instead of ADDITIONAL, or doesn't show the specific feed name, the response didn't come from RPZ. Check your DNS resolver's RPZ-related logs for additional debugging information. ### RPZ examples Test the RPZ feed: ```text # Query the test domain dig test.rpz.domaintools.test # Expected response includes NXDOMAIN and SOA record showing the feed name # Example SOA in ADDITIONAL section: # 3h.nod.rpz.domaintools.com. 86400 IN SOA rpz-ns1.domaintools.com. ... ``` Verify a specific zone is loaded: ```text # Test with the 24-hour NOD zone dig @your-dns-server test.rpz.domaintools.test # Check the SOA record shows: 24h.nod.rpz.domaintools.com ``` ## Related resources - Domain Risk Score user guide - Newly Observed Hostnames feed - Newly Active Domains feed - Response Policy Zone documentation The NOH feed offers a more granular, hostname-level view by listing fully qualified domain names (FQDNs) the first time they are observed on our global passive DNS sensor network. This is crucial for detecting threats like phishing and domain shadowing that often use unique subdomains on legitimate-looking domains to evade detection. This is a high-volume feed: six 60-second Threat Feed API snapshots collected on August 28, 2026 averaged 833 records per second (highest full-minute sample: 894 per second), or 0.638 Mbps (0.682 Mbps). These observed values vary with traffic and are not a service guarantee. ## Overview This feed tracks hostname-level fully qualified domain names (FQDNs) (for example, www.example.com or mail.subdomain.example.com) as they're observed. Each value is validated against the bailiwick and observed in an authoritative DNS response. FQDNs can contain characters outside conventional hostname, URL, or application-specific syntax. To compare NOH with the other discovery feeds, see Choosing a Discovery Feed. Use this feed when you need to: - Detect phishing attempts that utilize unique subdomains on legitimate-looking domains - Identify domain shadowing tactics where attackers create malicious subdomains on compromised legitimate domains - Enhance real-time threat detection with high-volume hostname data - Monitor subdomain creation patterns for security analysis Inclusion criteria: Fully qualified domain names (FQDNs) observed in passive DNS for the first time. ## Requirements You need the following to access Threat Feeds: - An Enterprise Account with DomainTools, accessible at https://account.domaintools.com/my-account/ - Authentication credentials (API key for header authentication, or API username and key for HMAC or open key authentication) - A way to interact with a REST API delivered through AWS Obtain your API credentials from your group's API administrator. API administrators can manage their API keys at https://research.domaintools.com, selecting the drop-down account menu and choosing API admin. For assistance, contact enterprisesupport@domaintools.com. ## Authentication You can authenticate to the NOH APIs using three different methods. Choose the method that best fits your security requirements and technical environment. ### API key (header) authentication Authenticate your requests by including the API key in the header of each HTTP request. The API key serves as a unique identifier and authenticates your requests. Required header: X-Api-Key: $DOMAINTOOLS_API_KEY Examples: ```sh # Feed API request curl -H "X-Api-Key: $DOMAINTOOLS_API_KEY" \ 'https://api.domaintools.com/v1/feed/noh/?sessionID=myPhishDetector' ``` ```sh # Download API request curl -H "X-Api-Key: $DOMAINTOOLS_API_KEY" \ 'https://api.domaintools.com/v1/download/noh/' ``` ### HMAC authentication HMAC authentication is a secure alternative to API key-based methods. It requires signing each request with an HMAC digest derived from your API key, providing integrity and authenticity without exposing credentials directly in the request. This method is recommended for systems where authentication credentials shouldn't be stored in plain text or included directly in request URLs. DomainTools supports MD5, SHA1, and SHA256 for the hashing algorithm. Use SHA256 — it's the recommended choice and is more resistant to collision attacks than MD5 or SHA1. Required query parameters: - api_username: Your DomainTools API username - signature: HMAC-SHA256 signature of api_username + timestamp + uri_path - timestamp: Current UTC timestamp in ISO 8601 format (for example, 2025-06-01T15:30:00Z) Constructing the HMAC signature: ```sh signature = HMAC-SHA256(api_key, api_username + timestamp + uri_path) ``` Caution: URI path must include API version The uri_path parameter must include the API version prefix. For example, use /v1/feed/nod/ not /feed/nod/. Example Python signing function: ```python import hmac import hashlib def sign(api_username, api_key, timestamp, uri): params = f"{api_username}{timestamp}{uri}" return hmac.new(api_key.encode("utf-8"), params.encode("utf-8"), hashlib.sha256).hexdigest() ``` Note: HMAC timestamp requirements The timestamp parameter in HMAC authentication must be current (within a few minutes of the server time). The timestamps shown in these examples are static for demonstration purposes. In production, generate a fresh timestamp for each request using your system's current time in ISO 8601 UTC format (e.g., 2025-01-06T15:30:00Z). Examples: ```sh # Feed API request with HMAC curl 'https://api.domaintools.com/v1/feed/noh/?api_username=YOUR_USERNAME&signature=HMAC_SIGNATURE×tamp=2025-01-06T15:30:00Z&sessionID=myPhishDetector' ``` ```sh # Download API request with HMAC curl 'https://api.domaintools.com/v1/download/noh/?api_username=YOUR_USERNAME&signature=HMAC_SIGNATURE×tamp=2025-01-06T15:30:00Z' ``` ### Open key authentication This is the easiest authentication scheme to implement, but also the least secure. Each request contains the full API key and API username as query parameters. We recommend using API key header authentication or HMAC authentication instead. If you're unsure about your authentication options, contact enterprisesupport@domaintools.com. Required query parameters: - api_username: Your API username - api_key: Your API key Examples: ```sh # Feed API request curl 'https://api.domaintools.com/v1/feed/noh/?api_username=YOUR_USERNAME&api_key=YOUR_API_KEY&sessionID=myPhishDetector' ``` ```sh # Download API request curl 'https://api.domaintools.com/v1/download/noh/?api_username=YOUR_USERNAME&api_key=YOUR_API_KEY' ``` ## Real-time Feed API The Feed API provides real-time access to current NOH data. Use this API to poll for the latest feed updates at regular intervals, maintain a session to track your position in the feed, and filter results based on your specific needs. Plan for high-volume ingestion, and measure representative time windows before setting consumer capacity, filtering, and polling strategies. ### Base URL ```text https://api.domaintools.com/v1/feed/noh/ ``` ### Rate limits Real-time feeds have the following rate limits: - 2 queries per minute - 120 queries per hour If you exceed these limits, the API returns an error. ### Response formats The API supports two response formats: NDJSON (Newline-Delimited JSON) - Default format when no Accept header is specified - Also known as JSON Lines (JSONL) - One JSON object per line - Efficient for streaming and processing large datasets - Set Accept: application/x-ndjson to explicitly request this format CSV (Comma-Separated Values) - Set Accept: text/csv to request CSV format - Add &headers=1 to the query parameters to include column headers as the first line - Not available for all feeds; check the specific feed documentation for CSV support ### Session management Session management allows you to maintain your position in the feed data stream, ensuring you don't miss or duplicate events when polling the API. How sessions work: - Start a new session: Provide a unique sessionID parameter of your choosing. By default, the API returns the past hour of results. - Resume a session: Use the same sessionID in subsequent requests. The API returns all data since your last request. - Handle large result sets: If a single request exceeds 10M results, the API returns an HTTP 206 response code. Repeat the same request with the same sessionID to receive the next batch of data until you receive an HTTP 200 response code. - One request at a time: Do not send simultaneous requests with the same sessionID for the same feed. Wait for each request to complete before sending the next one. Concurrent requests with the same sessionID can produce errors or incomplete results. - Delete a session: Use an HTTP DELETE request with your sessionID to clear the saved offset and start fresh. Session ID requirements: - 1 to 64 characters in length - Alphanumeric characters and hyphens only ([a-zA-Z0-9-]+) - Case-sensitive ### Quick start The standard access pattern is to periodically request the most recent feed data, as often as every 60 seconds. ```sh curl -H "X-Api-Key: $DOMAINTOOLS_API_KEY" \ 'https://api.domaintools.com/v1/feed/noh/?sessionID=myPhishDetector' ``` This starts a new session and returns the last hour of data. Subsequent calls with the same sessionID return data since the last request. ### Feed API parameters #### sessionID Type: String Valid values: 1-64 alphanumeric characters and hyphens ([a-zA-Z0-9-]+) Description: A unique identifier for the session, used for resuming data retrieval from the last point. Use a new sessionID to begin a new session, fetching the most recent hour by default. Reuse the same sessionID to return all feed data since your last request. If omitted, time window parameters (such as after/before) are required. Example: sessionID=mySOC Required: Yes, to continue where you left off (or use after/before instead) #### after Type: Integer or string Valid values: - Integer: -1 to -432,000 (relative seconds before current time) - String: ISO 8601 datetime in UTC format (YYYY-MM-DDTHH:MM:SSZ) Description: The start of the query window (inclusive). When using an integer, the value is in seconds relative to the current time. When using a string, provide an absolute timestamp. The query window covers the most recent 5 days. A value older than 5 days is capped to the start of that window, and the response begins 5 days back. Example: after=-60 or after=2024-10-16T10:20:00Z Required: Yes, if before or sessionID not provided #### before Type: Integer or string Valid values: - Integer: -1 to -432,000 (relative seconds before current time) - String: ISO 8601 datetime in UTC format (YYYY-MM-DDTHH:MM:SSZ) Description: The end of the query window (inclusive). When using an integer, the value is in seconds relative to the current time. When using a string, provide an absolute timestamp. The query window covers the most recent 5 days. A value older than 5 days places the window entirely outside it, and the response contains no records. Example: before=-120 or before=2024-10-16T10:20:00Z Required: Yes, if after or sessionID not provided #### domain Type: String Valid values: Domain character set restricted by the DNS specification (letters, digits, hyphens). International characters should be specified in punycode. A trailing dot is acceptable. Description: Filter for an exact domain or a domain substring by prefixing or suffixing your string with *. Multiple parameters are supported (for example, ?domain=*apple*&domain=*microsoft*). The URL-encoded version of * (%2A) may be required in some clients. Example: domain=*bank* or domain=example.com Required: No #### fromBeginning Type: Boolean Valid values: true, false, 1, 0 Description: Requires a sessionID. Set fromBeginning=true on the first request with a new session ID to return the first hour of data in the time window rather than the last. false is the default. Using it with a session ID that already exists returns HTTP 406, so drop fromBeginning from subsequent requests. Using it without a sessionID, or passing a value that isn't a boolean, returns HTTP 422. Example: fromBeginning=true Required: No #### top Type: Integer Valid values: Positive integer, 1-1,000,000,000 Description: Limits the number of results in the response payload. Primarily intended for testing. Example: top=10 Required: No #### headers Type: Boolean Valid values: true, false, 1, 0 Description: Adds a header row as the first line of the response when text/csv is requested. Set headers=1 to enable; false is the default. Enabling it on a request that doesn't ask for text/csv returns HTTP 422, as does a value that isn't a boolean. Example: headers=1 Required: No ### Feed API response structure The API returns responses in NDJSON (Newline-Delimited JSON), with each response containing one domain entry per line. Each entry contains a timestamp in ISO 8601 UTC format, and the domain. Response fields: timestamp (string): The observation timestamp in ISO 8601 UTC format. - Example: "timestamp":"2024-11-15T16:14:39Z" domain (string): The domain name without the trailing dot. Domain character set restricted by the DNS specification (letters, digits, hyphens). - Example: "domain":"example.com" Example NDJSON response: ```json {"timestamp":"2024-11-15T16:14:39Z","domain":"domiantools.com"} {"timestamp":"2024-11-15T16:14:38Z","domain":"domsintools.com"} {"timestamp":"2024-11-15T16:14:36Z","domain":"edomaintools.com"} {"timestamp":"2024-11-15T16:14:35Z","domain":"omaintools.com"} {"timestamp":"2024-11-15T16:14:35Z","domain":"v-domaintools.com"} ``` Example CSV response: ```csv timestamp,domain 2024-11-15T16:14:39Z,domiantools.com 2024-11-15T16:14:38Z,domsintools.com 2024-11-15T16:14:36Z,edomaintools.com ``` ### Feed API response codes | Code | Status | Description | |------|--------|-------------| | 200 | OK | The request was successful and all data has been delivered | | 206 | Partial content | The request was successful, but only a portion of the data was returned. The request exceeded 10M results or the 1-hour evaluation window. Repeat the same request with the same sessionID to receive the next batch of data until you receive an HTTP 200 response | | 400 | Bad request | The request is malformed | | 403 | Forbidden | Missing or invalid API credentials | | 404 | Not found | The requested resource (such as a sessionID) doesn't exist | | 406 | Not acceptable | Either the specified Accept header value isn't supported (only application/x-ndjson and text/csv are accepted), or fromBeginning was used with a sessionID that already exists | | 422 | Unprocessable entity | The request is syntactically valid but violates semantic or domain-specific rules (for example, invalid query parameter values) | ### Feed API examples Basic session polling: ```sh # Start a new session curl -H "X-Api-Key: $DOMAINTOOLS_API_KEY" \ 'https://api.domaintools.com/v1/feed/noh/?sessionID=myPhishDetector' ``` ```sh # Resume the session (returns data since last request) curl -H "X-Api-Key: $DOMAINTOOLS_API_KEY" \ 'https://api.domaintools.com/v1/feed/noh/?sessionID=myPhishDetector' ``` Time window filtering: ```sh # Get data from a specific time range curl -H "X-Api-Key: $DOMAINTOOLS_API_KEY" \ 'https://api.domaintools.com/v1/feed/noh/?after=2025-01-06T10:00:00Z&before=2025-01-06T11:00:00Z' ``` Domain filtering: ```sh # Filter for specific hostname patterns (useful for monitoring specific domains) curl -H "X-Api-Key: $DOMAINTOOLS_API_KEY" \ 'https://api.domaintools.com/v1/feed/noh/?domain=*.example.com&sessionID=myPhishDetector' ``` CSV format: ```sh # Request CSV format with headers curl -H 'Accept: text/csv' -H "X-Api-Key: $DOMAINTOOLS_API_KEY" \ 'https://api.domaintools.com/v1/feed/noh/?headers=1&sessionID=myPhishDetector' ``` ```sh # Request CSV format without headers curl -H 'Accept: text/csv' -H "X-Api-Key: $DOMAINTOOLS_API_KEY" \ 'https://api.domaintools.com/v1/feed/noh/?sessionID=myPhishDetector' ``` Handling large result sets: ```sh # If you receive HTTP 206, repeat the request to get the next batch curl -H "X-Api-Key: $DOMAINTOOLS_API_KEY" \ 'https://api.domaintools.com/v1/feed/noh/?sessionID=myPhishDetector' ``` ```sh # Repeat until you receive HTTP 200 curl -H "X-Api-Key: $DOMAINTOOLS_API_KEY" \ 'https://api.domaintools.com/v1/feed/noh/?sessionID=myPhishDetector' ``` Delete a session: ```sh # Clear the saved offset and start fresh curl -X DELETE -H "X-Api-Key: $DOMAINTOOLS_API_KEY" \ 'https://api.domaintools.com/v1/feed/noh/?sessionID=myPhishDetector' ``` ## Download API The Download API provides access to historical NOH data through temporary AWS S3 file links. Use this API to retrieve archived data you may have missed or to backfill your systems with historical information. Files are organized by hour and available for 90 days. ### Base URL ```text https://api.domaintools.com/v1/download/noh/ ``` ### Download API parameters #### limit Type: Integer Valid values: Positive integer Description: Limits the number of files returned in the response, starting from the most recent. Use to control payload size or test specific cases. Example: limit=10 Required: No ### Download API response structure The API returns a JSON response containing an array of downloadable files. Each file entry includes: download_name (string): The feed identifier (noh) files (array): List of downloadable file entries Each file object contains: - name (string): Path and filename of the downloadable file - last_modified (string): Timestamp of last modification in ISO 8601 UTC format - etag (string): ETag (hash) used to verify file identity and versioning - size (integer): File size in bytes - url (string): Temporary signed URL to download the file from AWS File naming convention: - Data file: noh/{YYYY-MM-DD}/noh-{YYYYMMDD}.{HH00}-{HH00}.json.gz - Checksum file: noh/{YYYY-MM-DD}/noh-{YYYYMMDD}.{HH00}-{HH00}.json.gz.sha256 Example response: ```json { "response": { "download_name": "noh", "files": [ { "name": "noh/2024-11-19/noh-20241119.1900-2000.json.gz.sha256", "last_modified": "2024-11-19T20:00:11+00:00", "etag": "\"67a6d9b0973b2d31ffb779dc8f7f8cfa\"", "size": 64, "url": "https://download.example.com/noh/2024-11-19/noh-20241119.1900-2000.json.gz.sha256?Expires=..." }, { "name": "noh/2024-11-19/noh-20241119.1900-2000.json.gz", "last_modified": "2024-11-19T20:00:11+00:00", "etag": "\"67a6d9b0973b2d31ffb779dc8f7f8cfa\"", "size": 324850, "url": "https://download.example.com/noh/2024-11-19/noh-20241119.1900-2000.json.gz?Expires=..." } ] } } ``` ### Download API response codes | Code | Status | Description | |------|--------|-------------| | 200 | OK | The request was successful | | 400 | Bad request | The request is malformed | | 401 | Unauthorized | Missing or invalid API credentials | | 403 | Forbidden | Missing or invalid API credentials | | 404 | Not found | No data to download | | 422 | Unprocessable entity | The request is syntactically valid but violates semantic or domain-specific rules (for example, invalid query parameter values) | ### Download API file contents The *.json.gz.sha256 file is a checksum containing a SHA-256 hash value used to verify the integrity of the downloaded file. The *.json.gz file, when uncompressed, contains JSON data in the same format as the Feed API response (NDJSON with timestamp and domain fields, where domain contains the full hostname). ### Download API examples List available files: ```sh # Get the most recent files curl -H "X-Api-Key: $DOMAINTOOLS_API_KEY" \ 'https://api.domaintools.com/v1/download/noh/?limit=10' ``` Download and verify a file: ```sh # Get the file list curl -H "X-Api-Key: $DOMAINTOOLS_API_KEY" \ 'https://api.domaintools.com/v1/download/noh/?limit=2' > files.json # Extract the URL and download the data file curl -o noh-data.json.gz "$(jq -r '.response.files[1].url' files.json)" # Download the checksum file curl -o noh-data.json.gz.sha256 "$(jq -r '.response.files[0].url' files.json)" # Verify the integrity sha256sum -c noh-data.json.gz.sha256 ``` Batch processing: ```sh # Download multiple files in a loop for url in $(curl -H "X-Api-Key: $DOMAINTOOLS_API_KEY" \ 'https://api.domaintools.com/v1/download/noh/?limit=24' | \ jq -r '.response.files[].url' | grep '\.json\.gz$'); do curl -O "$url" done ``` ## Related resources - Newly Observed Domains feed - Newly Active Domains feed - Domain Risk Score user guide - Response Policy Zone documentation The Domain Discovery feed is the largest feed of its kind, containing a daily list of all newly registered and newly observed domains from all TLDs, including those that do not publish zone files. On average, this feed contains nearly 350,000 new domains each day, making it a comprehensive source for any workflow that needs to track the creation of new domains. ## Overview Domains are apex-level (for example, example.com but not www.example.com), and the feed provides comprehensive coverage of the global domain landscape. To compare Domain Discovery with the other discovery feeds, see Choosing a Discovery Feed. Use this feed when you need to: - Comprehensive domain monitoring for a wide range of security and intelligence applications - Track the global landscape of new domain registrations and observations - Identify emerging threats and trends related to new domain creation - Build comprehensive domain databases for research and analysis Inclusion criteria: All newly registered and newly observed domains from all TLDs, including TLDs that do not publish zone files. ## Requirements You need the following to access Threat Feeds: - An Enterprise Account with DomainTools, accessible at https://account.domaintools.com/my-account/ - Authentication credentials (API key for header authentication, or API username and key for HMAC or open key authentication) - A way to interact with a REST API delivered through AWS Obtain your API credentials from your group's API administrator. API administrators can manage their API keys at https://research.domaintools.com, selecting the drop-down account menu and choosing API admin. For assistance, contact enterprisesupport@domaintools.com. ## Authentication You can authenticate to the Domain Discovery APIs using three different methods. Choose the method that best fits your security requirements and technical environment. ### API key (header) authentication Authenticate your requests by including the API key in the header of each HTTP request. The API key serves as a unique identifier and authenticates your requests. Required header: X-Api-Key: $DOMAINTOOLS_API_KEY Examples: ```sh # Feed API request curl -H "X-Api-Key: $DOMAINTOOLS_API_KEY" \ 'https://api.domaintools.com/v1/feed/domaindiscovery/?sessionID=myDomainMonitor' ``` ```sh # Download API request curl -H "X-Api-Key: $DOMAINTOOLS_API_KEY" \ 'https://api.domaintools.com/v1/download/domaindiscovery/' ``` ### HMAC authentication HMAC authentication is a secure alternative to API key-based methods. It requires signing each request with an HMAC digest derived from your API key, providing integrity and authenticity without exposing credentials directly in the request. This method is recommended for systems where authentication credentials shouldn't be stored in plain text or included directly in request URLs. DomainTools supports MD5, SHA1, and SHA256 for the hashing algorithm. Use SHA256 — it's the recommended choice and is more resistant to collision attacks than MD5 or SHA1. Required query parameters: - api_username: Your DomainTools API username - signature: HMAC-SHA256 signature of api_username + timestamp + uri_path - timestamp: Current UTC timestamp in ISO 8601 format (for example, 2025-06-01T15:30:00Z) Constructing the HMAC signature: ```sh signature = HMAC-SHA256(api_key, api_username + timestamp + uri_path) ``` Caution: URI path must include API version The uri_path parameter must include the API version prefix. For example, use /v1/feed/nod/ not /feed/nod/. Example Python signing function: ```python import hmac import hashlib def sign(api_username, api_key, timestamp, uri): params = f"{api_username}{timestamp}{uri}" return hmac.new(api_key.encode("utf-8"), params.encode("utf-8"), hashlib.sha256).hexdigest() ``` Note: HMAC timestamp requirements The timestamp parameter in HMAC authentication must be current (within a few minutes of the server time). The timestamps shown in these examples are static for demonstration purposes. In production, generate a fresh timestamp for each request using your system's current time in ISO 8601 UTC format (e.g., 2025-01-06T15:30:00Z). Examples: ```sh # Feed API request with HMAC curl 'https://api.domaintools.com/v1/feed/domaindiscovery/?api_username=YOUR_USERNAME&signature=HMAC_SIGNATURE×tamp=2025-01-06T15:30:00Z&sessionID=myDomainMonitor' ``` ```sh # Download API request with HMAC curl 'https://api.domaintools.com/v1/download/domaindiscovery/?api_username=YOUR_USERNAME&signature=HMAC_SIGNATURE×tamp=2025-01-06T15:30:00Z' ``` ### Open key authentication This is the easiest authentication scheme to implement, but also the least secure. Each request contains the full API key and API username as query parameters. We recommend using API key header authentication or HMAC authentication instead. If you're unsure about your authentication options, contact enterprisesupport@domaintools.com. Required query parameters: - api_username: Your API username - api_key: Your API key Examples: ```sh # Feed API request curl 'https://api.domaintools.com/v1/feed/domaindiscovery/?api_username=YOUR_USERNAME&api_key=YOUR_API_KEY&sessionID=myDomainMonitor' ``` ```sh # Download API request curl 'https://api.domaintools.com/v1/download/domaindiscovery/?api_username=YOUR_USERNAME&api_key=YOUR_API_KEY' ``` ## Real-time Feed API The Feed API provides real-time access to current Domain Discovery data. Use this API to poll for the latest feed updates at regular intervals, maintain a session to track your position in the feed, and filter results based on your specific needs. Due to the high volume of this feed (~350,000 domains per day), consider using appropriate filtering and polling strategies. ### Base URL ```text https://api.domaintools.com/v1/feed/domaindiscovery/ ``` ### Rate limits Real-time feeds have the following rate limits: - 2 queries per minute - 120 queries per hour If you exceed these limits, the API returns an error. ### Response formats The API supports two response formats: NDJSON (Newline-Delimited JSON) - Default format when no Accept header is specified - Also known as JSON Lines (JSONL) - One JSON object per line - Efficient for streaming and processing large datasets - Set Accept: application/x-ndjson to explicitly request this format CSV (Comma-Separated Values) - Set Accept: text/csv to request CSV format - Add &headers=1 to the query parameters to include column headers as the first line - Not available for all feeds; check the specific feed documentation for CSV support ### Session management Session management allows you to maintain your position in the feed data stream, ensuring you don't miss or duplicate events when polling the API. How sessions work: - Start a new session: Provide a unique sessionID parameter of your choosing. By default, the API returns the past hour of results. - Resume a session: Use the same sessionID in subsequent requests. The API returns all data since your last request. - Handle large result sets: If a single request exceeds 10M results, the API returns an HTTP 206 response code. Repeat the same request with the same sessionID to receive the next batch of data until you receive an HTTP 200 response code. - One request at a time: Do not send simultaneous requests with the same sessionID for the same feed. Wait for each request to complete before sending the next one. Concurrent requests with the same sessionID can produce errors or incomplete results. - Delete a session: Use an HTTP DELETE request with your sessionID to clear the saved offset and start fresh. Session ID requirements: - 1 to 64 characters in length - Alphanumeric characters and hyphens only ([a-zA-Z0-9-]+) - Case-sensitive ### Quick start The standard access pattern is to periodically request the most recent feed data, as often as every 60 seconds. ```sh curl -H "X-Api-Key: $DOMAINTOOLS_API_KEY" \ 'https://api.domaintools.com/v1/feed/domaindiscovery/?sessionID=myDomainMonitor' ``` This starts a new session and returns the last hour of data. Subsequent calls with the same sessionID return data since the last request. ### Feed API parameters #### sessionID Type: String Valid values: 1-64 alphanumeric characters and hyphens ([a-zA-Z0-9-]+) Description: A unique identifier for the session, used for resuming data retrieval from the last point. Use a new sessionID to begin a new session, fetching the most recent hour by default. Reuse the same sessionID to return all feed data since your last request. If omitted, time window parameters (such as after/before) are required. Example: sessionID=mySOC Required: Yes, to continue where you left off (or use after/before instead) #### after Type: Integer or string Valid values: - Integer: -1 to -432,000 (relative seconds before current time) - String: ISO 8601 datetime in UTC format (YYYY-MM-DDTHH:MM:SSZ) Description: The start of the query window (inclusive). When using an integer, the value is in seconds relative to the current time. When using a string, provide an absolute timestamp. The query window covers the most recent 5 days. A value older than 5 days is capped to the start of that window, and the response begins 5 days back. Example: after=-60 or after=2024-10-16T10:20:00Z Required: Yes, if before or sessionID not provided #### before Type: Integer or string Valid values: - Integer: -1 to -432,000 (relative seconds before current time) - String: ISO 8601 datetime in UTC format (YYYY-MM-DDTHH:MM:SSZ) Description: The end of the query window (inclusive). When using an integer, the value is in seconds relative to the current time. When using a string, provide an absolute timestamp. The query window covers the most recent 5 days. A value older than 5 days places the window entirely outside it, and the response contains no records. Example: before=-120 or before=2024-10-16T10:20:00Z Required: Yes, if after or sessionID not provided #### domain Type: String Valid values: Domain character set restricted by the DNS specification (letters, digits, hyphens). International characters should be specified in punycode. A trailing dot is acceptable. Description: Filter for an exact domain or a domain substring by prefixing or suffixing your string with *. Multiple parameters are supported (for example, ?domain=*apple*&domain=*microsoft*). The URL-encoded version of * (%2A) may be required in some clients. Example: domain=*bank* or domain=example.com Required: No #### fromBeginning Type: Boolean Valid values: true, false, 1, 0 Description: Requires a sessionID. Set fromBeginning=true on the first request with a new session ID to return the first hour of data in the time window rather than the last. false is the default. Using it with a session ID that already exists returns HTTP 406, so drop fromBeginning from subsequent requests. Using it without a sessionID, or passing a value that isn't a boolean, returns HTTP 422. Example: fromBeginning=true Required: No #### top Type: Integer Valid values: Positive integer, 1-1,000,000,000 Description: Limits the number of results in the response payload. Primarily intended for testing. Example: top=10 Required: No #### headers Type: Boolean Valid values: true, false, 1, 0 Description: Adds a header row as the first line of the response when text/csv is requested. Set headers=1 to enable; false is the default. Enabling it on a request that doesn't ask for text/csv returns HTTP 422, as does a value that isn't a boolean. Example: headers=1 Required: No ### Feed API response structure The API returns responses in NDJSON (Newline-Delimited JSON), with each response containing one domain entry per line. Each entry contains a timestamp in ISO 8601 UTC format, and the domain. Response fields: timestamp (string): The observation timestamp in ISO 8601 UTC format. - Example: "timestamp":"2024-11-15T16:14:39Z" domain (string): The domain name without the trailing dot. Domain character set restricted by the DNS specification (letters, digits, hyphens). - Example: "domain":"example.com" Example NDJSON response: ```json {"timestamp":"2024-11-15T16:14:39Z","domain":"domiantools.com"} {"timestamp":"2024-11-15T16:14:38Z","domain":"domsintools.com"} {"timestamp":"2024-11-15T16:14:36Z","domain":"edomaintools.com"} {"timestamp":"2024-11-15T16:14:35Z","domain":"omaintools.com"} {"timestamp":"2024-11-15T16:14:35Z","domain":"v-domaintools.com"} ``` Example CSV response: ```csv timestamp,domain 2024-11-15T16:14:39Z,domiantools.com 2024-11-15T16:14:38Z,domsintools.com 2024-11-15T16:14:36Z,edomaintools.com ``` ### Feed API response codes | Code | Status | Description | |------|--------|-------------| | 200 | OK | The request was successful and all data has been delivered | | 206 | Partial content | The request was successful, but only a portion of the data was returned. The request exceeded 10M results or the 1-hour evaluation window. Repeat the same request with the same sessionID to receive the next batch of data until you receive an HTTP 200 response | | 400 | Bad request | The request is malformed | | 403 | Forbidden | Missing or invalid API credentials | | 404 | Not found | The requested resource (such as a sessionID) doesn't exist | | 406 | Not acceptable | Either the specified Accept header value isn't supported (only application/x-ndjson and text/csv are accepted), or fromBeginning was used with a sessionID that already exists | | 422 | Unprocessable entity | The request is syntactically valid but violates semantic or domain-specific rules (for example, invalid query parameter values) | ### Feed API examples Basic session polling: ```sh # Start a new session curl -H "X-Api-Key: $DOMAINTOOLS_API_KEY" \ 'https://api.domaintools.com/v1/feed/domaindiscovery/?sessionID=myDomainMonitor' ``` ```sh # Resume the session (returns data since last request) curl -H "X-Api-Key: $DOMAINTOOLS_API_KEY" \ 'https://api.domaintools.com/v1/feed/domaindiscovery/?sessionID=myDomainMonitor' ``` Time window filtering: ```sh # Get data from a specific time range curl -H "X-Api-Key: $DOMAINTOOLS_API_KEY" \ 'https://api.domaintools.com/v1/feed/domaindiscovery/?after=2025-01-06T10:00:00Z&before=2025-01-06T11:00:00Z' ``` Domain filtering: ```sh # Filter for specific domain patterns (useful for monitoring specific TLDs or patterns) curl -H "X-Api-Key: $DOMAINTOOLS_API_KEY" \ 'https://api.domaintools.com/v1/feed/domaindiscovery/?domain=*.io&sessionID=myDomainMonitor' ``` CSV format: ```sh # Request CSV format with headers curl -H 'Accept: text/csv' -H "X-Api-Key: $DOMAINTOOLS_API_KEY" \ 'https://api.domaintools.com/v1/feed/domaindiscovery/?headers=1&sessionID=myDomainMonitor' ``` ```sh # Request CSV format without headers curl -H 'Accept: text/csv' -H "X-Api-Key: $DOMAINTOOLS_API_KEY" \ 'https://api.domaintools.com/v1/feed/domaindiscovery/?sessionID=myDomainMonitor' ``` Handling large result sets: ```sh # If you receive HTTP 206, repeat the request to get the next batch curl -H "X-Api-Key: $DOMAINTOOLS_API_KEY" \ 'https://api.domaintools.com/v1/feed/domaindiscovery/?sessionID=myDomainMonitor' ``` ```sh # Repeat until you receive HTTP 200 curl -H "X-Api-Key: $DOMAINTOOLS_API_KEY" \ 'https://api.domaintools.com/v1/feed/domaindiscovery/?sessionID=myDomainMonitor' ``` Delete a session: ```sh # Clear the saved offset and start fresh curl -X DELETE -H "X-Api-Key: $DOMAINTOOLS_API_KEY" \ 'https://api.domaintools.com/v1/feed/domaindiscovery/?sessionID=myDomainMonitor' ``` ## Real-time Download API The Real-time Download API provides access to historical Domain Discovery data through temporary AWS S3 file links. Use this API to retrieve archived data you may have missed or to backfill your systems with historical information. Files are organized by hour and available for 90 days. ### Base URL ```text https://api.domaintools.com/v1/download/domaindiscovery/ ``` ### Download API parameters #### limit Type: Integer Valid values: Positive integer Description: Limits the number of files returned in the response, starting from the most recent. Use to control payload size or test specific cases. Example: limit=10 Required: No ### Download API response structure The API returns a JSON response containing an array of downloadable files. Each file entry includes: download_name (string): The feed identifier (domaindiscovery) files (array): List of downloadable file entries Each file object contains: - name (string): Path and filename of the downloadable file - last_modified (string): Timestamp of last modification in ISO 8601 UTC format - etag (string): ETag (hash) used to verify file identity and versioning - size (integer): File size in bytes - url (string): Temporary signed URL to download the file from AWS File naming convention: - Data file: domaindiscovery/{YYYY-MM-DD}/domaindiscovery-{YYYYMMDD}.{HH00}-{HH00}.json.gz - Checksum file: domaindiscovery/{YYYY-MM-DD}/domaindiscovery-{YYYYMMDD}.{HH00}-{HH00}.json.gz.sha256 Example response: ```json { "response": { "download_name": "domaindiscovery", "files": [ { "name": "domaindiscovery/2024-11-19/domaindiscovery-20241119.1900-2000.json.gz.sha256", "last_modified": "2024-11-19T20:00:11+00:00", "etag": "\"67a6d9b0973b2d31ffb779dc8f7f8cfa\"", "size": 64, "url": "https://download.example.com/domaindiscovery/2024-11-19/domaindiscovery-20241119.1900-2000.json.gz.sha256?Expires=..." }, { "name": "domaindiscovery/2024-11-19/domaindiscovery-20241119.1900-2000.json.gz", "last_modified": "2024-11-19T20:00:11+00:00", "etag": "\"67a6d9b0973b2d31ffb779dc8f7f8cfa\"", "size": 2450000, "url": "https://download.example.com/domaindiscovery/2024-11-19/domaindiscovery-20241119.1900-2000.json.gz?Expires=..." } ] } } ``` ### Download API response codes | Code | Status | Description | |------|--------|-------------| | 200 | OK | The request was successful | | 400 | Bad request | The request is malformed | | 401 | Unauthorized | Missing or invalid API credentials | | 403 | Forbidden | Missing or invalid API credentials | | 404 | Not found | No data to download | | 422 | Unprocessable entity | The request is syntactically valid but violates semantic or domain-specific rules (for example, invalid query parameter values) | ### Download API file contents The *.json.gz.sha256 file is a checksum containing a SHA-256 hash value used to verify the integrity of the downloaded file. The *.json.gz file, when uncompressed, contains JSON data in the same format as the Feed API response (NDJSON with timestamp and domain fields). ### Download API examples List available files: ```sh # Get the most recent files curl -H "X-Api-Key: $DOMAINTOOLS_API_KEY" \ 'https://api.domaintools.com/v1/download/domaindiscovery/?limit=10' ``` Download and verify a file: ```sh # Get the file list curl -H "X-Api-Key: $DOMAINTOOLS_API_KEY" \ 'https://api.domaintools.com/v1/download/domaindiscovery/?limit=2' > files.json # Extract the URL and download the data file curl -o domaindiscovery-data.json.gz "$(jq -r '.response.files[1].url' files.json)" # Download the checksum file curl -o domaindiscovery-data.json.gz.sha256 "$(jq -r '.response.files[0].url' files.json)" # Verify the integrity sha256sum -c domaindiscovery-data.json.gz.sha256 ``` Batch processing: ```sh # Download multiple files in a loop for url in $(curl -H "X-Api-Key: $DOMAINTOOLS_API_KEY" \ 'https://api.domaintools.com/v1/download/domaindiscovery/?limit=24' | \ jq -r '.response.files[].url' | grep '\.json\.gz$'); do curl -O "$url" done ``` ## Daily Download API The Daily Download API provides daily batch summaries as an alternative to hourly real-time data. Use this when you need daily aggregated data rather than real-time updates. ### Overview Daily feed of newly registered and newly observed domains. Inclusion threshold: Newly observed or registered Format: Gzip-compressed CSV file; one domain name per line Size: ~375,000 domains; compressed size varies by day. See Download size. ### Base URL ```text https://api.domaintools.com/v1/download/daily_domain_discovery/ ``` ### Daily Download parameters The Daily Download API supports standard download parameters: #### api_username Type: string (required for HMAC and open key auth) Your DomainTools API username #### api_key Type: string (required for open key auth) Your DomainTools API key #### signature Type: string (required for HMAC auth) HMAC signature of your request #### timestamp Type: string (required for HMAC auth) Current timestamp for HMAC authentication in ISO 8601 format #### limit Type: integer (optional) Limit the list of signed files. Ordering of files is always descending, so the latest files are first. #### page Type: integer (optional) Select which page of results are returned. Pages begin at 0 with latest results. #### prefix Type: string (optional) Filter results by date using the file prefix (format: NEW_DOMAINS_YYYYMMDD). ### Daily Download response structure The API returns a JSON response with signed URLs for downloadable files: download_name (string): The feed identifier (daily_domain_discovery) files (array): List of downloadable file entries Each file object contains: - name (string): File path (e.g., domain_discovery/NEW_DOMAINS_20240704.csv.gz) - last_modified (string): Last modified date in ISO 8601 format - etag (string): Entity tag (hash of the file) - size (integer): Size in bytes - url (string): Signed AWS download URL (valid for 12 hours) ### Daily Download response codes 200: OK - The request was successful 400: Bad request 401: Unauthorized 403: Forbidden 404: No data to download ### Daily Download file naming Daily files follow this naming pattern: ```text domain_discovery/NEW_DOMAINS_YYYYMMDD.csv.gz ``` Example: domain_discovery/NEW_DOMAINS_20240704.csv.gz ### Download size The size value in each Download API file entry gives the compressed file size in bytes. Example measurement: eight daily NEW_DOMAINS_YYYYMMDD.csv.gz files ranged from approximately 2.97 MB to 4.65 MB compressed. These examples use decimal MB. Actual sizes vary by day. Check the Download API's size values for current file sizes. ### File contents The CSV file contains one domain name per line (no header, no timestamp field): ```text example.com example.net example.org ``` ### Daily Download examples List available files: ```sh curl -H "X-Api-Key: $DOMAINTOOLS_API_KEY" \ 'https://api.domaintools.com/v1/download/daily_domain_discovery/' ``` Filter by date prefix: ```sh curl -H "X-Api-Key: $DOMAINTOOLS_API_KEY" \ 'https://api.domaintools.com/v1/download/daily_domain_discovery/?prefix=NEW_DOMAINS_20240704' ``` Download a specific file: ```sh # Get the file list curl -H "X-Api-Key: $DOMAINTOOLS_API_KEY" \ 'https://api.domaintools.com/v1/download/daily_domain_discovery/?limit=1' > files.json # Download the file curl -o daily-domains.csv.gz "$(jq -r '.response.files[0].url' files.json)" # Decompress and view gunzip daily-domains.csv.gz head daily-domains.csv ``` ## Related resources - Newly Observed Domains feed - Newly Active Domains feed - Domain Risk Score user guide This feed provides parsed and normalized domain information extracted from raw RDAP records, including contact information, registrar details, name servers, and important dates. It's designed for efficient data searching, indexing, and automated processing in security workflows. ## Overview Domains are apex-level (for example, example.com but not www.example.com), and the feed provides structured, machine-readable RDAP data from both domain registries and registrars. Use this feed when you need to: - Search for, index, or cross-reference data from RDAP records - Enable programmatic access to structured RDAP data - Analyze domain registration data to identify patterns - Track threat actors through registration information - Monitor changes in registration data for brand protection - Automate domain intelligence workflows Inclusion criteria: Changes to global domain registration information, populated by the Registration Data Access Protocol (RDAP). Note: This feed complements the 5-Minute WHOIS Feed as registries and registrars transition from WHOIS to RDAP. ## Requirements You need the following to access Threat Feeds: - An Enterprise Account with DomainTools, accessible at https://account.domaintools.com/my-account/ - Authentication credentials (API key for header authentication, or API username and key for HMAC or open key authentication) - A way to interact with a REST API delivered through AWS Obtain your API credentials from your group's API administrator. API administrators can manage their API keys at https://research.domaintools.com, selecting the drop-down account menu and choosing API admin. For assistance, contact enterprisesupport@domaintools.com. ## Authentication You can authenticate to the Parsed Domain RDAP APIs using three different methods. Choose the method that best fits your security requirements and technical environment. ### API key (header) authentication Authenticate your requests by including the API key in the header of each HTTP request. The API key serves as a unique identifier and authenticates your requests. Required header: X-Api-Key: $DOMAINTOOLS_API_KEY Examples: ```sh # Feed API request curl -H "X-Api-Key: $DOMAINTOOLS_API_KEY" \ 'https://api.domaintools.com/v1/feed/domainrdap/?sessionID=myRDAPMonitor' ``` ```sh # Download API request curl -H "X-Api-Key: $DOMAINTOOLS_API_KEY" \ 'https://api.domaintools.com/v1/download/domainrdap/' ``` ### HMAC authentication HMAC authentication is a secure alternative to API key-based methods. It requires signing each request with an HMAC digest derived from your API key, providing integrity and authenticity without exposing credentials directly in the request. This method is recommended for systems where authentication credentials shouldn't be stored in plain text or included directly in request URLs. DomainTools supports MD5, SHA1, and SHA256 for the hashing algorithm. Use SHA256 — it's the recommended choice and is more resistant to collision attacks than MD5 or SHA1. Required query parameters: - api_username: Your DomainTools API username - signature: HMAC-SHA256 signature of api_username + timestamp + uri_path - timestamp: Current UTC timestamp in ISO 8601 format (for example, 2025-06-01T15:30:00Z) Constructing the HMAC signature: ```sh signature = HMAC-SHA256(api_key, api_username + timestamp + uri_path) ``` Caution: URI path must include API version The uri_path parameter must include the API version prefix. For example, use /v1/feed/nod/ not /feed/nod/. Example Python signing function: ```python import hmac import hashlib def sign(api_username, api_key, timestamp, uri): params = f"{api_username}{timestamp}{uri}" return hmac.new(api_key.encode("utf-8"), params.encode("utf-8"), hashlib.sha256).hexdigest() ``` Note: HMAC timestamp requirements The timestamp parameter in HMAC authentication must be current (within a few minutes of the server time). The timestamps shown in these examples are static for demonstration purposes. In production, generate a fresh timestamp for each request using your system's current time in ISO 8601 UTC format (e.g., 2025-01-06T15:30:00Z). Examples: ```sh # Feed API request with HMAC curl 'https://api.domaintools.com/v1/feed/domainrdap/?api_username=YOUR_USERNAME&signature=HMAC_SIGNATURE×tamp=2025-01-06T15:30:00Z&sessionID=myRDAPMonitor' ``` ```sh # Download API request with HMAC curl 'https://api.domaintools.com/v1/download/domainrdap/?api_username=YOUR_USERNAME&signature=HMAC_SIGNATURE×tamp=2025-01-06T15:30:00Z' ``` ### Open key authentication This is the easiest authentication scheme to implement, but also the least secure. Each request contains the full API key and API username as query parameters. We recommend using API key header authentication or HMAC authentication instead. If you're unsure about your authentication options, contact enterprisesupport@domaintools.com. Required query parameters: - api_username: Your API username - api_key: Your API key Examples: ```sh # Feed API request curl 'https://api.domaintools.com/v1/feed/domainrdap/?api_username=YOUR_USERNAME&api_key=YOUR_API_KEY&sessionID=myRDAPMonitor' ``` ```sh # Download API request curl 'https://api.domaintools.com/v1/download/domainrdap/?api_username=YOUR_USERNAME&api_key=YOUR_API_KEY' ``` ## Real-time Feed API The Feed API provides real-time access to current Parsed Domain RDAP data. Use this API to poll for the latest feed updates at regular intervals, maintain a session to track your position in the feed, and filter results based on your specific needs. Important: The Parsed Domain RDAP feed returns JSON format only and does not support CSV format. ### Base URL ```text https://api.domaintools.com/v1/feed/domainrdap/ ``` ### Rate limits Real-time feeds have the following rate limits: - 2 queries per minute - 120 queries per hour If you exceed these limits, the API returns an error. ### Response formats The Parsed Domain RDAP feed returns responses in JSON format only. Accept: application/json (default): Returns JSON format. This is the only supported format for this feed. Note: Unlike other feeds, the Parsed Domain RDAP feed does not support CSV format (text/csv). ### Session management Session management allows you to maintain your position in the feed data stream, ensuring you don't miss or duplicate events when polling the API. How sessions work: - Start a new session: Provide a unique sessionID parameter of your choosing. By default, the API returns the past hour of results. - Resume a session: Use the same sessionID in subsequent requests. The API returns all data since your last request. - Handle large result sets: If a single request exceeds 10M results, the API returns an HTTP 206 response code. Repeat the same request with the same sessionID to receive the next batch of data until you receive an HTTP 200 response code. - One request at a time: Do not send simultaneous requests with the same sessionID for the same feed. Wait for each request to complete before sending the next one. Concurrent requests with the same sessionID can produce errors or incomplete results. - Delete a session: Use an HTTP DELETE request with your sessionID to clear the saved offset and start fresh. Session ID requirements: - 1 to 64 characters in length - Alphanumeric characters and hyphens only ([a-zA-Z0-9-]+) - Case-sensitive ### Quick start The standard access pattern is to periodically request the most recent feed data, as often as every 60 seconds. ```sh curl -H "X-Api-Key: $DOMAINTOOLS_API_KEY" \ 'https://api.domaintools.com/v1/feed/domainrdap/?sessionID=myRDAPMonitor' ``` This starts a new session and returns the last hour of data. Subsequent calls with the same sessionID return data since the last request. ### Feed API parameters #### sessionID Type: String Valid values: 1-64 alphanumeric characters and hyphens ([a-zA-Z0-9-]+) Description: A unique identifier for the session, used for resuming data retrieval from the last point. Use a new sessionID to begin a new session, fetching the most recent hour by default. Reuse the same sessionID to return all feed data since your last request. If omitted, time window parameters (such as after/before) are required. Example: sessionID=mySOC Required: Yes, to continue where you left off (or use after/before instead) #### after Type: Integer or string Valid values: - Integer: -1 to -432,000 (relative seconds before current time) - String: ISO 8601 datetime in UTC format (YYYY-MM-DDTHH:MM:SSZ) Description: The start of the query window (inclusive). When using an integer, the value is in seconds relative to the current time. When using a string, provide an absolute timestamp. The query window covers the most recent 5 days. A value older than 5 days is capped to the start of that window, and the response begins 5 days back. Example: after=-60 or after=2024-10-16T10:20:00Z Required: Yes, if before or sessionID not provided #### before Type: Integer or string Valid values: - Integer: -1 to -432,000 (relative seconds before current time) - String: ISO 8601 datetime in UTC format (YYYY-MM-DDTHH:MM:SSZ) Description: The end of the query window (inclusive). When using an integer, the value is in seconds relative to the current time. When using a string, provide an absolute timestamp. The query window covers the most recent 5 days. A value older than 5 days places the window entirely outside it, and the response contains no records. Example: before=-120 or before=2024-10-16T10:20:00Z Required: Yes, if after or sessionID not provided #### domain Type: String Valid values: Domain character set restricted by the DNS specification (letters, digits, hyphens). International characters should be specified in punycode. A trailing dot is acceptable. Description: Filter for an exact domain or a domain substring by prefixing or suffixing your string with *. Multiple parameters are supported (for example, ?domain=*apple*&domain=*microsoft*). The URL-encoded version of * (%2A) may be required in some clients. Example: domain=*bank* or domain=example.com Required: No #### fromBeginning Type: Boolean Valid values: true, false, 1, 0 Description: Requires a sessionID. Set fromBeginning=true on the first request with a new session ID to return the first hour of data in the time window rather than the last. false is the default. Using it with a session ID that already exists returns HTTP 406, so drop fromBeginning from subsequent requests. Using it without a sessionID, or passing a value that isn't a boolean, returns HTTP 422. Example: fromBeginning=true Required: No #### top Type: Integer Valid values: Positive integer, 1-1,000,000,000 Description: Limits the number of results in the response payload. Primarily intended for testing. Example: top=10 Required: No #### headers Type: Boolean Valid values: true, false, 1, 0 Description: Adds a header row as the first line of the response when text/csv is requested. Set headers=1 to enable; false is the default. Enabling it on a request that doesn't ask for text/csv returns HTTP 422, as does a value that isn't a boolean. Example: headers=1 Required: No Note: The Parsed Domain RDAP feed never supports text/csv (see below), so any value other than the false default returns HTTP 422. ### Feed API response structure The API returns JSON format (not NDJSON) with one record per response. Note: The Parsed Domain RDAP feed does not support CSV format. Only JSON responses are available. Response fields: timestamp (string): ISO 8601 UTC timestamp when the domain was observed domain (string): The apex-level domain name raw_record (object): Contains the original raw RDAP responses from both registry and registrar - first_request_timestamp (string): When the first RDAP request was made - requests (array): Array of RDAP request/response pairs - data (string): JSON-encoded string of the raw RDAP record - source_type (string): Either "registry" or "registrar" - timestamp (string): When this request was made - url (string): The RDAP endpoint URL queried parsed_record (object): Parsed and normalized domain information - parsed_fields (object): Structured data extracted from RDAP records, may include: - domain: Domain name - handle: Registry/registrar handle - creation_date: When the domain was created - expiration_date: When the domain expires - last_changed_date: Last modification date - dnssec: DNSSEC status - domain_statuses: Array of domain status codes - nameservers: Array of nameserver hostnames - contacts: Contact information (registrant, admin, tech) - registrar: Registrar information - links: Related RDAP links - conformance: RDAP conformance levels - email_domains: Extracted email domains - emails: Contact email addresses - And more, depending on the registry - registrar_request_url (string, nullable): URL of the registrar RDAP endpoint - registry_request_url (string, nullable): URL of the registry RDAP endpoint Example response: ```json { "timestamp": "2025-01-06T15:30:42Z", "domain": "example.com", "raw_record": { "first_request_timestamp": "2025-01-06T15:30:40Z", "requests": [ { "data": "{\"rdapConformance\":[\"rdap_level_0\"],...}", "source_type": "registry", "timestamp": "2025-01-06T15:30:40Z", "url": "https://rdap.verisign.com/com/v1/domain/example.com" } ] }, "parsed_record": { "parsed_fields": { "domain": "example.com", "creation_date": "1995-08-14T04:00:00Z", "expiration_date": "2026-08-13T04:00:00Z", "nameservers": ["a.iana-servers.net", "b.iana-servers.net"] }, "registry_request_url": "https://rdap.verisign.com/com/v1/domain/example.com", "registrar_request_url": null } } ``` ### Feed API response codes | Code | Status | Description | |------|--------|-------------| | 200 | OK | The request was successful and all data has been delivered | | 206 | Partial content | The request was successful, but only a portion of the data was returned. The request exceeded 10M results or the 1-hour evaluation window. Repeat the same request with the same sessionID to receive the next batch of data until you receive an HTTP 200 response | | 400 | Bad request | The request is malformed | | 403 | Forbidden | Missing or invalid API credentials | | 404 | Not found | The requested resource (such as a sessionID) doesn't exist | | 406 | Not acceptable | Either the specified Accept header value isn't supported (only application/x-ndjson and text/csv are accepted), or fromBeginning was used with a sessionID that already exists | | 422 | Unprocessable entity | The request is syntactically valid but violates semantic or domain-specific rules (for example, invalid query parameter values) | ### Feed API examples Basic session polling: ```sh # Start a new session curl -H "X-Api-Key: $DOMAINTOOLS_API_KEY" \ 'https://api.domaintools.com/v1/feed/domainrdap/?sessionID=myRDAPMonitor' ``` ```sh # Resume the session (returns data since last request) curl -H "X-Api-Key: $DOMAINTOOLS_API_KEY" \ 'https://api.domaintools.com/v1/feed/domainrdap/?sessionID=myRDAPMonitor' ``` Time window filtering: ```sh # Get data from a specific time range curl -H "X-Api-Key: $DOMAINTOOLS_API_KEY" \ 'https://api.domaintools.com/v1/feed/domainrdap/?after=2025-01-06T10:00:00Z&before=2025-01-06T11:00:00Z' ``` Domain filtering: ```sh # Filter for specific domain patterns curl -H "X-Api-Key: $DOMAINTOOLS_API_KEY" \ 'https://api.domaintools.com/v1/feed/domainrdap/?domain=*.example.com&sessionID=myRDAPMonitor' ``` Limit results for testing: ```sh # Get only the first result for testing curl -H "X-Api-Key: $DOMAINTOOLS_API_KEY" \ 'https://api.domaintools.com/v1/feed/domainrdap/?top=1&sessionID=myRDAPMonitor' ``` Handling large result sets: ```sh # If you receive HTTP 206, repeat the request to get the next batch curl -H "X-Api-Key: $DOMAINTOOLS_API_KEY" \ 'https://api.domaintools.com/v1/feed/domainrdap/?sessionID=myRDAPMonitor' ``` ```sh # Repeat until you receive HTTP 200 curl -H "X-Api-Key: $DOMAINTOOLS_API_KEY" \ 'https://api.domaintools.com/v1/feed/domainrdap/?sessionID=myRDAPMonitor' ``` Delete a session: ```sh # Clear the saved offset and start fresh curl -X DELETE -H "X-Api-Key: $DOMAINTOOLS_API_KEY" \ 'https://api.domaintools.com/v1/feed/domainrdap/?sessionID=myRDAPMonitor' ``` ## Real-time Download API The Real-time Download API provides access to historical Parsed Domain RDAP data through temporary AWS S3 file links. Use this API to retrieve archived data you may have missed or to backfill your systems with historical information. Files are organized by hour and available for 90 days. ### Base URL ```text https://api.domaintools.com/v1/download/domainrdap/ ``` ### Download API parameters #### limit Type: Integer Valid values: Positive integer Description: Limits the number of files returned in the response, starting from the most recent. Use to control payload size or test specific cases. Example: limit=10 Required: No ### Download API response structure The API returns a JSON response containing an array of downloadable files. Each file entry includes: download_name (string): The feed identifier (domainrdap) files (array): List of downloadable file entries Each file object contains: - name (string): Path and filename of the downloadable file - last_modified (string): Timestamp of last modification in ISO 8601 UTC format - etag (string): ETag (hash) used to verify file identity and versioning - size (integer): File size in bytes - url (string): Temporary signed URL to download the file from AWS File naming convention: - Data file: domainrdap/{YYYY-MM-DD}/domainrdap-{YYYYMMDD}.{HH00}-{HH00}.json.gz - Checksum file: domainrdap/{YYYY-MM-DD}/domainrdap-{YYYYMMDD}.{HH00}-{HH00}.json.gz.sha256 Example response: ```json { "response": { "download_name": "domainrdap", "files": [ { "name": "domainrdap/2024-11-19/domainrdap-20241119.1900-2000.json.gz.sha256", "last_modified": "2024-11-19T20:00:11+00:00", "etag": "\"67a6d9b0973b2d31ffb779dc8f7f8cfa\"", "size": 64, "url": "https://download.example.com/domainrdap/2024-11-19/domainrdap-20241119.1900-2000.json.gz.sha256?Expires=..." }, { "name": "domainrdap/2024-11-19/domainrdap-20241119.1900-2000.json.gz", "last_modified": "2024-11-19T20:00:11+00:00", "etag": "\"67a6d9b0973b2d31ffb779dc8f7f8cfa\"", "size": 1850000, "url": "https://download.example.com/domainrdap/2024-11-19/domainrdap-20241119.1900-2000.json.gz?Expires=..." } ] } } ``` ### Download API response codes | Code | Status | Description | |------|--------|-------------| | 200 | OK | The request was successful | | 400 | Bad request | The request is malformed | | 401 | Unauthorized | Missing or invalid API credentials | | 403 | Forbidden | Missing or invalid API credentials | | 404 | Not found | No data to download | | 422 | Unprocessable entity | The request is syntactically valid but violates semantic or domain-specific rules (for example, invalid query parameter values) | ### Download API file contents The *.json.gz.sha256 file is a checksum containing a SHA-256 hash value used to verify the integrity of the downloaded file. The *.json.gz file, when uncompressed, contains JSON data in the same format as the Feed API response (JSON with timestamp, domain, raw_record, and parsed_record fields). ### Download API examples List available files: ```sh # Get the most recent files curl -H "X-Api-Key: $DOMAINTOOLS_API_KEY" \ 'https://api.domaintools.com/v1/download/domainrdap/?limit=10' ``` Download and verify a file: ```sh # Get the file list curl -H "X-Api-Key: $DOMAINTOOLS_API_KEY" \ 'https://api.domaintools.com/v1/download/domainrdap/?limit=2' > files.json # Extract the URL and download the data file curl -o domainrdap-data.json.gz "$(jq -r '.response.files[1].url' files.json)" # Download the checksum file curl -o domainrdap-data.json.gz.sha256 "$(jq -r '.response.files[0].url' files.json)" # Verify the integrity sha256sum -c domainrdap-data.json.gz.sha256 ``` Batch processing: ```sh # Download multiple files in a loop for url in $(curl -H "X-Api-Key: $DOMAINTOOLS_API_KEY" \ 'https://api.domaintools.com/v1/download/domainrdap/?limit=24' | \ jq -r '.response.files[].url' | grep '\.json\.gz$'); do curl -O "$url" done ``` ## Related resources - Domain Discovery feed - Newly Observed Domains feed The 5-Minute Domain WHOIS feed provides the most recently updated domain WHOIS records, processed on a 5-minute basis. This feed is available in both raw (unparsed) and parsed formats, making it suitable for various integration and analysis workflows. ## Overview This feed captures all domain WHOIS records that have been updated since the previous 5-minute processing cycle. The feed is available in two versions: - Raw version (5_min_domain_whois): Unparsed WHOIS data as received from registries - Parsed version (5_min_domain_whois_parsed): Structured JSON format with normalized fields Use this feed when you need to: - Monitor domain registration changes in near real-time - Track WHOIS record updates for threat intelligence - Analyze domain ownership and contact information changes - Build domain registration databases - Detect suspicious registration patterns - Automate domain intelligence workflows Inclusion criteria: All domain names processed since the previous 5-minute update cycle. Format: Gzip-compressed tab-separated (TSV) or JSON text files Size: Varies by processing interval and format. See Download size. ## Requirements You need the following to access Threat Feeds: - An Enterprise Account with DomainTools, accessible at https://account.domaintools.com/my-account/ - Authentication credentials (API key for header authentication, or API username and key for HMAC or open key authentication) - A way to interact with a REST API delivered through AWS Obtain your API credentials from your group's API administrator. API administrators can manage their API keys at https://research.domaintools.com, selecting the drop-down account menu and choosing API admin. For assistance, contact enterprisesupport@domaintools.com. ## Authentication You can authenticate to the 5-Minute Domain WHOIS API using three different methods. Choose the method that best fits your security requirements and technical environment. ### API key (header) authentication Authenticate your requests by including the API key in the header of each HTTP request. The API key serves as a unique identifier and authenticates your requests. Required header: X-Api-Key: $DOMAINTOOLS_API_KEY Examples: ```sh # Raw WHOIS curl -H "X-Api-Key: $DOMAINTOOLS_API_KEY" \ 'https://api.domaintools.com/v1/download/5_min_domain_whois/' ``` ```sh # Parsed WHOIS curl -H "X-Api-Key: $DOMAINTOOLS_API_KEY" \ 'https://api.domaintools.com/v1/download/5_min_domain_whois_parsed/' ``` ### HMAC authentication HMAC authentication is a secure alternative to API key-based methods. It requires signing each request with an HMAC digest derived from your API key, providing integrity and authenticity without exposing credentials directly in the request. This method is recommended for systems where authentication credentials shouldn't be stored in plain text or included directly in request URLs. DomainTools supports MD5, SHA1, and SHA256 for the hashing algorithm. Use SHA256 — it's the recommended choice and is more resistant to collision attacks than MD5 or SHA1. Required query parameters: - api_username: Your DomainTools API username - signature: HMAC-SHA256 signature of api_username + timestamp + uri_path - timestamp: Current UTC timestamp in ISO 8601 format (for example, 2025-06-01T15:30:00Z) Constructing the HMAC signature: ```sh signature = HMAC-SHA256(api_key, api_username + timestamp + uri_path) ``` Caution: URI path must include API version The uri_path parameter must include the API version prefix. For example, use /v1/feed/nod/ not /feed/nod/. Example Python signing function: ```python import hmac import hashlib def sign(api_username, api_key, timestamp, uri): params = f"{api_username}{timestamp}{uri}" return hmac.new(api_key.encode("utf-8"), params.encode("utf-8"), hashlib.sha256).hexdigest() ``` Note: HMAC timestamp requirements The timestamp parameter in HMAC authentication must be current (within a few minutes of the server time). The timestamps shown in these examples are static for demonstration purposes. In production, generate a fresh timestamp for each request using your system's current time in ISO 8601 UTC format (e.g., 2025-01-06T15:30:00Z). Examples: ```sh # Raw WHOIS with HMAC curl 'https://api.domaintools.com/v1/download/5_min_domain_whois/?api_username=YOUR_USERNAME&signature=HMAC_SIGNATURE×tamp=2025-01-06T15:30:00Z' ``` ```sh # Parsed WHOIS with HMAC curl 'https://api.domaintools.com/v1/download/5_min_domain_whois_parsed/?api_username=YOUR_USERNAME&signature=HMAC_SIGNATURE×tamp=2025-01-06T15:30:00Z' ``` ### Open key authentication This is the easiest authentication scheme to implement, but also the least secure. Each request contains the full API key and API username as query parameters. We recommend using API key header authentication or HMAC authentication instead. If you're unsure about your authentication options, contact enterprisesupport@domaintools.com. Required query parameters: - api_username: Your API username - api_key: Your API key Examples: ```sh # Raw WHOIS curl 'https://api.domaintools.com/v1/download/5_min_domain_whois/?api_username=YOUR_USERNAME&api_key=YOUR_API_KEY' ``` ```sh # Parsed WHOIS curl 'https://api.domaintools.com/v1/download/5_min_domain_whois_parsed/?api_username=YOUR_USERNAME&api_key=YOUR_API_KEY' ``` ## Daily Download API The Daily Download API provides access to 5-minute WHOIS data through temporary AWS S3 file links. Files are organized by date and time, with new files generated every 5 minutes. ### Base URLs Raw WHOIS: ```text https://api.domaintools.com/v1/download/5_min_domain_whois/ ``` Parsed WHOIS: ```text https://api.domaintools.com/v1/download/5_min_domain_whois_parsed/ ``` ### Daily Download parameters The Daily Download API supports standard download parameters: #### api_username Type: string (required for HMAC and open key auth) Your DomainTools API username #### api_key Type: string (required for open key auth) Your DomainTools API key #### signature Type: string (required for HMAC auth) HMAC signature of your request #### timestamp Type: string (required for HMAC auth) Current timestamp for HMAC authentication in ISO 8601 format #### limit Type: integer (optional) Limit the list of signed files. Ordering of files is always descending, so the latest files are first. #### page Type: integer (optional) Select which page of results are returned. Pages begin at 0 with latest results. #### prefix Type: string (optional) Filter results by date and time using the file prefix (format: YYYYMMDDHHMM). Example: ?prefix=202506242000 filters for files from June 24, 2025 at 8:00 PM ### Daily Download response structure The API returns a JSON response with signed URLs for downloadable files: download_name (string): The feed identifier (5_min_domain_whois or 5_min_domain_whois_parsed) files (array): List of downloadable file entries Each file object contains: - name (string): File path - last_modified (string): Last modified date in ISO 8601 format - etag (string): Entity tag (hash of the file) - size (integer): Size in bytes - url (string): Signed AWS download URL (valid for 12 hours) ### Daily Download response codes 200: OK - The request was successful 400: Bad request 401: Unauthorized 403: Forbidden 404: No data to download ### Daily Download file naming Files follow this naming pattern: Parsed version: ```text YYYYMMDDTTTT.json.gz ``` Raw version: ```text YYYYMMDDTTTT.gz ``` Where: - YYYYMMDD = Date (e.g., 20250624) - TTTT = Time in 24-hour format (e.g., 2000 for 8:00 PM) Examples: - 202506242000.json.gz (parsed, June 24, 2025 at 8:00 PM) - 202506242000.gz (raw, June 24, 2025 at 8:00 PM) ### Download size The size value in each Download API file entry gives the compressed file size in bytes. Example compressed volume for one day: | Feed version and format | Approximate compressed daily total | | --- | --- | | Raw (.gz) | 2.24 GB | | Parsed JSON (.json.gz) | 3.17 GB | | Parsed TSV (.tsv.gz) | 2.50 GB | Each total covers 288 five-minute files and uses decimal GB. Actual sizes vary. Check the Download API's size values for current file sizes. To calculate a daily total, sum size for compressed data files from the selected date, feed version, and format. Include every results page and count each data file once. ### File contents #### Parsed version fields The parsed version contains JSON with the following fields: - Domain name - Parse success (y/n) - Server (WHOIS) - Lookup Date - Lookup Time - Create Date - Updated Date - Expires Date - Registrar Name - Registrar Abuse Contact: Phone - Registrar Abuse Contact: Email - Registrar IANA ID - Registrar URL - Registrar WHOIS Server - Admin Name - Admin Org - Admin Street - Admin City - Admin State/Province - Admin Postal Code - Admin Country - Admin Phone - Admin Fax - Admin Email - Billing Name - Billing Org - Billing Street - Billing City - Billing State/Province - Billing Postal Code - Billing Country - Billing Phone - Billing Fax - Billing Email - Registrant Name - Registrant Org - Registrant Street - Registrant City - Registrant State/Province - Registrant Postal Code - Registrant Country - Registrant Phone - Registrant Fax - Registrant Email - Technical Name - Technical Org - Technical Street - Technical City - Technical State/Province - Technical Postal Code - Technical Country - Technical Phone - Technical Fax - Technical Email - Name Server - Registrar Status - Raw WHOIS Data Blob #### Raw version format The raw version contains unparsed WHOIS data as tab-separated values, with the raw WHOIS text for each domain. ### Daily Download examples List available files (parsed version): ```sh curl -H "X-Api-Key: $DOMAINTOOLS_API_KEY" \ 'https://api.domaintools.com/v1/download/5_min_domain_whois_parsed/?limit=10' ``` Filter by date and hour: ```sh # Get files from June 24, 2025 at 8:00 PM curl -H "X-Api-Key: $DOMAINTOOLS_API_KEY" \ 'https://api.domaintools.com/v1/download/5_min_domain_whois_parsed/?prefix=202506242000' ``` Download a specific file: ```sh # Get the file list curl -H "X-Api-Key: $DOMAINTOOLS_API_KEY" \ 'https://api.domaintools.com/v1/download/5_min_domain_whois_parsed/?limit=1' > files.json # Download the file curl -o whois-data.json.gz "$(jq -r '.response.files[0].url' files.json)" # Decompress and view gunzip whois-data.json.gz head whois-data.json ``` Download raw version: ```sh curl -H "X-Api-Key: $DOMAINTOOLS_API_KEY" \ 'https://api.domaintools.com/v1/download/5_min_domain_whois/?limit=1' > files.json curl -o whois-raw.gz "$(jq -r '.response.files[0].url' files.json)" ``` ## Related resources - Parsed Domain RDAP feed - Domain Discovery feed The 5-Minute IP WHOIS feed provides the most recently updated IPv4 WHOIS records, processed on a 5-minute basis. This feed is available in both raw (unparsed) and parsed formats, making it suitable for various integration and analysis workflows. ## Overview This feed captures all IPv4 WHOIS records that have been updated since the previous 5-minute processing cycle. The feed is available in two versions: - Raw version (5_min_ip_whois): Unparsed WHOIS data as received from Regional Internet Registries (RIRs) - Parsed version (5_min_ip_whois_parsed): Structured JSON format with normalized fields Use this feed when you need to: - Monitor IP address allocation and ownership changes - Track IP WHOIS record updates for threat intelligence - Analyze network infrastructure changes - Build IP intelligence databases - Detect suspicious IP allocation patterns - Automate network intelligence workflows - Correlate IP ownership with threat activity Inclusion criteria: All IPv4 addresses processed since the previous 5-minute update cycle. Format: Gzip-compressed tab-separated (TSV) or JSON text files Size: Varies by processing interval and format. See Download size. ## Requirements You need the following to access Threat Feeds: - An Enterprise Account with DomainTools, accessible at https://account.domaintools.com/my-account/ - Authentication credentials (API key for header authentication, or API username and key for HMAC or open key authentication) - A way to interact with a REST API delivered through AWS Obtain your API credentials from your group's API administrator. API administrators can manage their API keys at https://research.domaintools.com, selecting the drop-down account menu and choosing API admin. For assistance, contact enterprisesupport@domaintools.com. ## Authentication You can authenticate to the 5-Minute IP WHOIS API using three different methods. Choose the method that best fits your security requirements and technical environment. ### API key (header) authentication Authenticate your requests by including the API key in the header of each HTTP request. The API key serves as a unique identifier and authenticates your requests. Required header: X-Api-Key: $DOMAINTOOLS_API_KEY Examples: ```sh # Raw WHOIS curl -H "X-Api-Key: $DOMAINTOOLS_API_KEY" \ 'https://api.domaintools.com/v1/download/5_min_ip_whois/' ``` ```sh # Parsed WHOIS curl -H "X-Api-Key: $DOMAINTOOLS_API_KEY" \ 'https://api.domaintools.com/v1/download/5_min_ip_whois_parsed/' ``` ### HMAC authentication HMAC authentication is a secure alternative to API key-based methods. It requires signing each request with an HMAC digest derived from your API key, providing integrity and authenticity without exposing credentials directly in the request. This method is recommended for systems where authentication credentials shouldn't be stored in plain text or included directly in request URLs. DomainTools supports MD5, SHA1, and SHA256 for the hashing algorithm. Use SHA256 — it's the recommended choice and is more resistant to collision attacks than MD5 or SHA1. Required query parameters: - api_username: Your DomainTools API username - signature: HMAC-SHA256 signature of api_username + timestamp + uri_path - timestamp: Current UTC timestamp in ISO 8601 format (for example, 2025-06-01T15:30:00Z) Constructing the HMAC signature: ```sh signature = HMAC-SHA256(api_key, api_username + timestamp + uri_path) ``` Caution: URI path must include API version The uri_path parameter must include the API version prefix. For example, use /v1/feed/nod/ not /feed/nod/. Example Python signing function: ```python import hmac import hashlib def sign(api_username, api_key, timestamp, uri): params = f"{api_username}{timestamp}{uri}" return hmac.new(api_key.encode("utf-8"), params.encode("utf-8"), hashlib.sha256).hexdigest() ``` Note: HMAC timestamp requirements The timestamp parameter in HMAC authentication must be current (within a few minutes of the server time). The timestamps shown in these examples are static for demonstration purposes. In production, generate a fresh timestamp for each request using your system's current time in ISO 8601 UTC format (e.g., 2025-01-06T15:30:00Z). Examples: ```sh # Raw WHOIS with HMAC curl 'https://api.domaintools.com/v1/download/5_min_ip_whois/?api_username=YOUR_USERNAME&signature=HMAC_SIGNATURE×tamp=2025-01-06T15:30:00Z' ``` ```sh # Parsed WHOIS with HMAC curl 'https://api.domaintools.com/v1/download/5_min_ip_whois_parsed/?api_username=YOUR_USERNAME&signature=HMAC_SIGNATURE×tamp=2025-01-06T15:30:00Z' ``` ### Open key authentication This is the easiest authentication scheme to implement, but also the least secure. Each request contains the full API key and API username as query parameters. We recommend using API key header authentication or HMAC authentication instead. If you're unsure about your authentication options, contact enterprisesupport@domaintools.com. Required query parameters: - api_username: Your API username - api_key: Your API key Examples: ```sh # Raw WHOIS curl 'https://api.domaintools.com/v1/download/5_min_ip_whois/?api_username=YOUR_USERNAME&api_key=YOUR_API_KEY' ``` ```sh # Parsed WHOIS curl 'https://api.domaintools.com/v1/download/5_min_ip_whois_parsed/?api_username=YOUR_USERNAME&api_key=YOUR_API_KEY' ``` ## Daily Download API The Daily Download API provides access to 5-minute IP WHOIS data through temporary AWS S3 file links. Files are organized by date and time, with new files generated every 5 minutes. ### Base URLs Raw WHOIS: ```text https://api.domaintools.com/v1/download/5_min_ip_whois/ ``` Parsed WHOIS: ```text https://api.domaintools.com/v1/download/5_min_ip_whois_parsed/ ``` ### Daily Download parameters The Daily Download API supports standard download parameters: #### api_username Type: string (required for HMAC and open key auth) Your DomainTools API username #### api_key Type: string (required for open key auth) Your DomainTools API key #### signature Type: string (required for HMAC auth) HMAC signature of your request #### timestamp Type: string (required for HMAC auth) Current timestamp for HMAC authentication in ISO 8601 format #### limit Type: integer (optional) Limit the list of signed files. Ordering of files is always descending, so the latest files are first. #### page Type: integer (optional) Select which page of results are returned. Pages begin at 0 with latest results. #### prefix Type: string (optional) Filter results by date and time using the file prefix (format: YYYYMMDDHHMM). Example: ?prefix=202506242000 filters for files from June 24, 2025 at 8:00 PM ### Daily Download response structure The API returns a JSON response with signed URLs for downloadable files: download_name (string): The feed identifier (5_min_ip_whois or 5_min_ip_whois_parsed) files (array): List of downloadable file entries Each file object contains: - name (string): File path - last_modified (string): Last modified date in ISO 8601 format - etag (string): Entity tag (hash of the file) - size (integer): Size in bytes - url (string): Signed AWS download URL (valid for 12 hours) ### Daily Download response codes 200: OK - The request was successful 400: Bad request 401: Unauthorized 403: Forbidden 404: No data to download ### Daily Download file naming Files follow this naming pattern: Parsed version: ```text YYYYMMDDTTTT.json.gz ``` Raw version: ```text YYYYMMDDTTTT.gz ``` Where: - YYYYMMDD = Date (e.g., 20250624) - TTTT = Time in 24-hour format (e.g., 2000 for 8:00 PM) Examples: - 202506242000.json.gz (parsed, June 24, 2025 at 8:00 PM) - 202506242000.gz (raw, June 24, 2025 at 8:00 PM) ### Download size The size value in each Download API file entry gives the compressed file size in bytes. Example compressed volume for one day: | Feed version and format | Approximate compressed daily total | | --- | --- | | Raw (.gz) | 273.65 MB | | Parsed JSON (.json.gz) | 505.16 MB | Each total covers 288 five-minute files and uses decimal MB. Actual sizes vary. Check the Download API's size values for current file sizes. To calculate a daily total, sum size for compressed data files from the selected date, feed version, and format. Include every results page and count each data file once. ### File contents #### Parsed version fields The parsed version contains JSON with the following fields: - RIR queried - Net Range - CIDR - Net Name - Net Handle - Parent - Net Type - Origin AS - Organization - RegDate - Updated - Org Name - Org ID - City - State - Postal Code - Country - RegDate - Updated - Ref - Referral Server - OrgAbuseHandle - OrgAbuseName - OrgAbusePhone - OrgAbuseEmail - OrgAbuseRef - OrgTechHandle - OrgTechName - OrgTechPhone - OrgTechEmail - OrgTechRef - OrgNOCHandle - OrgNOCName - OrgNOCPhone - OrgNOCEmail - OrgNOCRef - Comments - Raw IP WHOIS data blob #### Raw version format The raw version contains unparsed IP WHOIS data as tab-separated values, with the raw WHOIS text for each IP address. ### Daily Download examples List available files (parsed version): ```sh curl -H "X-Api-Key: $DOMAINTOOLS_API_KEY" \ 'https://api.domaintools.com/v1/download/5_min_ip_whois_parsed/?limit=10' ``` Filter by date and hour: ```sh # Get files from June 24, 2025 at 8:00 PM curl -H "X-Api-Key: $DOMAINTOOLS_API_KEY" \ 'https://api.domaintools.com/v1/download/5_min_ip_whois_parsed/?prefix=202506242000' ``` Download a specific file: ```sh # Get the file list curl -H "X-Api-Key: $DOMAINTOOLS_API_KEY" \ 'https://api.domaintools.com/v1/download/5_min_ip_whois_parsed/?limit=1' > files.json # Download the file curl -o ip-whois-data.json.gz "$(jq -r '.response.files[0].url' files.json)" # Decompress and view gunzip ip-whois-data.json.gz head ip-whois-data.json ``` Download raw version: ```sh curl -H "X-Api-Key: $DOMAINTOOLS_API_KEY" \ 'https://api.domaintools.com/v1/download/5_min_ip_whois/?limit=1' > files.json curl -o ip-whois-raw.gz "$(jq -r '.response.files[0].url' files.json)" ``` ## Related resources - 5-Minute Domain WHOIS feed - Domain Discovery feed ## Introduction DomainTools provides Threat Feeds as DNS Response Policy Zones (RPZ) via DNS zone transfers. RPZ is a standard method for DNS servers to block access to malicious domains. Your RPZ-enabled DNS resolver responds with an NXDOMAIN ("no such domain") status code for queries matching domains or subdomains in the threat feed. This effectively makes the listed domains unavailable for users of this DNS firewall. ## Available feeds ### Newly Observed Domains (NOD) Newly Observed Domains are domains that DomainTools has observed for the first time in DNS traffic. - 5m.nod.rpz.domaintools.com. - 10m.nod.rpz.domaintools.com. - 30m.nod.rpz.domaintools.com. - 1h.nod.rpz.domaintools.com. - 3h.nod.rpz.domaintools.com. - 12h.nod.rpz.domaintools.com. - 24h.nod.rpz.domaintools.com. ### Newly Active Domains (NAD) Newly Active Domains are existing domains that were recently seen after at least ten days of not being observed. - 5m.nad.rpz.domaintools.com. - 10m.nad.rpz.domaintools.com. - 30m.nad.rpz.domaintools.com. - 1h.nad.rpz.domaintools.com. - 3h.nad.rpz.domaintools.com. - 12h.nad.rpz.domaintools.com. ### Risk Score Based Domain Hotlists - 1k.domainhotlist.rpz.domaintools.com. - 100k.domainhotlist.rpz.domaintools.com. - 90s.domainhotlist.rpz.domaintools.com. - 95s.domainhotlist.rpz.domaintools.com. - 99s.domainhotlist.rpz.domaintools.com. #### Hotlist Variant Descriptions Each Domain Hotlist variant filters domains based on different Domain Risk Score thresholds: - 90s.domainhotlist.rpz.domaintools.com: Domains with Proximity ≥ 70 OR (Malware Risk ≥ 90 AND Phishing Risk ≥ 90) - 95s.domainhotlist.rpz.domaintools.com: Domains with Proximity ≥ 85 OR (Malware Risk ≥ 95 AND Phishing Risk ≥ 95) - 99s.domainhotlist.rpz.domaintools.com: Domains with Proximity ≥ 85 OR (Malware Risk ≥ 99 AND Phishing Risk ≥ 99) - 1k.domainhotlist.rpz.domaintools.com: Top 1,000 highest-risk domains with Proximity ≥ 75 OR (Malware Risk ≥ 90 AND Phishing Risk ≥ 90) - 100k.domainhotlist.rpz.domaintools.com: Top 100,000 highest-risk domains with Proximity ≥ 75 OR (Malware Risk ≥ 90 AND Phishing Risk ≥ 90) All variants require passive DNS activity within the last 24 hours. For detailed information about accessing these feeds via API, see the Threat Feeds documentation. ## Zone naming format The nod and nad zone name labels are constructed (left to right) from a time period, followed by a list name, followed by .rpz.domaintools.com: ```sh [interval].[list].rpz.domaintools.com ``` Available time intervals: 5m, 10m, 30m, 1h, 3h, 12h, and for the nod feed, 24h. For example, the 1 hour NOD list 1h.nod.rpz.domaintools.com contains the most recent hour of entries. The larger time intervals are a superset that include the smaller time intervals. Smaller time intervals have smaller zone sizes and may be available a little faster. For details about Domain Hotlist feeds, including risk score thresholds and expiration times, see the Domain Hotlist documentation. ## How RPZ blocks domains RPZ zones use a standard DNS format to define blocking rules. Each DNS zone is formatted in accordance with the draft specification for DNS Response Policy Zones. Each DNS firewall rule uses NXDOMAIN policy actions by default (CNAME .). Each domain entry contains both apex and wildcard *. entries (two records per domain). For example: ```sh $ORIGIN RPZ.EXAMPLE.ORG. example.com CNAME . *.example.com CNAME . ``` Your DNS resolver responds with an NXDOMAIN ("no such domain") status code for queries matching domains in the RPZ feed. The NXDOMAIN response includes an SOA (Start of Authority) record in the ADDITIONAL section of the DNS response (and no ANSWER section). You can use this SOA record to verify the RPZ feed is working. ## Configure your RPZ connection DomainTools delivers the RPZ feeds over Incremental Zone Transfers (IXFR) and full zone transfers (AXFR). DNS NOTIFY is also used to indicate updates to the zones to trigger zone checks and transfers. ### Provide your IP addresses to DomainTools DomainTools restricts access to RPZ feeds by IP address to ensure security. Before you can connect, provide two sets of IP addresses to enterprisesupport@domaintools.com: - The IP address(es) from which you connect to the RPZ provider DNS server - The IP address(es) to which you would like DNS NOTIFY messages sent You typically use the same addresses for both. DomainTools provisions access for one primary and one secondary IP address per account per set. ### Configure your firewall You must also add rules to your firewall's access control list(s) for DomainTools hosts to send UDP packets to port 53 of your DNS server, so that it can receive the DNS NOTIFY packets for timely updates. - IPv4: 104.244.13.88 Port: 53 - IPv4: 104.244.14.88 Port: 53 ### Authenticate with TSIG DomainTools uses TSIG (Secret Key Transaction Authentication for DNS) for authorization to use the RPZ feeds. This uses shared secrets and one-way hashing to authenticate DNS messages coming from approved DNS servers. Contact enterprisesupport@domaintools.com for the details. - TSIG key: DomainTools Enterprise Support provides this - TSIG key algorithm: hmac-sha512 - TSIG key name: DomainTools Enterprise Support provides this ## Test your RPZ configuration When your DNS resolver blocks a domain using RPZ, the response includes an SOA (Start of Authority) record that identifies which RPZ feed was used. For example, the following label tells you what RPZ feed was used and the SOA RNAME field indicates the primary DNS server (under rpz.domaintools.com) that hosts this RPZ zone: ```sh ;; ADDITIONAL SECTION: 3h.nod.rpz.domaintools.com. 86400 IN SOA rpz-ns1.domaintools.com. noc.domaintools.com. 946684799 600 300 86400 86400 ``` DomainTools uses the SOA SERIAL number as the timestamp (in Unix epoch format) for when this feed was last regenerated. The RPZ Threat Feeds also have a testing domain entry and its corresponding wildcard which you can use to verify the RPZ feed is loaded and working. You can do a DNS lookup, like with dig, for test.rpz.domaintools.test and it should respond with the NXDOMAIN and the ADDITIONAL section SOA record indicating its originating RPZ feed. If the SOA record response is in the AUTHORITY section instead and it isn't under the specific feed name, such as 3h.nod.rpz.domaintools.com., then it didn't come from the RPZ. See your RPZ related debugging logs for your DNS resolver for additional troubleshooting information. ## Advanced configuration ### Maintain a local allowlist DomainTools recommends that you maintain an allowlist Response Policy Zone as needed for overrides when you have more specific information about a domain than DomainTools. ### Log NAD matches instead of blocking Because NAD feeds may include legitimate domains that happen to be inactive for extended periods, DomainTools recommends that you begin by logging instead of automatically blocking domains on the Newly Active Domains (NAD) list. The following BIND (Berkeley Internet Name Domain) named configuration shows how to log the response policy rewrites (at the default info severity level): ```txt logging { channel named-rpz { file "/var/log/named/named-rpz.log" versions 3 size 250k; print-time yes; print-category yes; print-severity yes; }; category rpz { named-rpz; }; }; ``` Or to log to the default logger: ```txt logging { category rpz { default_syslog; }; }; ``` The NAD (newly active domains) feeds contain existing domains that were recently seen after at least ten days of not being observed. It's recommended to not block on these NAD rules, but log only. You can do this by overriding the default NXDOMAIN behavior, for example, with BIND named: ```txt response-policy { zone "5m.nad.rpz.domaintools.com" policy DISABLED; }; ``` An example single-line log output indicating a "disabled" match: ```txt 19-Nov-2025 21:00:11.305 rpz: info: client @0x7f10a0973168 127.0.0.1#55312 (test.rpz.domaintools.test): disabled rpz QNAME NXDOMAIN rewrite test.rpz.domaintools.test/A/IN via test.rpz.domaintools.test.5m.nad.rpz.domaintools.com ``` ### Redirect to a walled garden A walled garden redirects blocked domains to an internal page instead of returning NXDOMAIN. This allows you to inform users why a domain is blocked. While the RPZ feeds define an NXDOMAIN response as the policy action, you can configure the DNS firewall to redirect users of the matching domain to a walled garden instead, restricting their access to specific external services or content. An example of configuring the RPZ for a walled garden for BIND named follows: ```txt response-policy { # walled garden # override the NXDOMAIN and redirect to other domain instead zone "1k.domainhotlist.rpz.domaintools.com" policy CNAME captive.internal; }; ``` Based on this example, an internal website named captive.internal can be used to share information about the "Firewall" policies. That target URL's domain name will also need to be configured. The walled garden scenario can be useful for restricting website access but can't work for anti-spam blocking. You may need to use separate DNS firewalls for walled garden website access versus DNS resolution used for email servers. ### Set min-update-interval for high-frequency feeds BIND's min-update-interval option controls the minimum time between RPZ zone updates. It defaults to 60 seconds. For high-frequency feeds such as 5m.nod or 5m.nad, this default causes BIND to defer zone updates when the zone version changes faster than the interval, logging: ```txt rpz: new zone version came too soon, deferring update for 60 seconds ``` Set min-update-interval to 5 seconds so even the shortest-interval feeds update promptly. RPZ zone refresh is lightweight, so the 60-second default is more conservative than necessary. In BIND, min-update-interval is a clause of the response-policy statement; set it at the response-policy level (after the closing brace) to apply it to all listed zones: ```txt response-policy { zone "5m.nod.rpz.domaintools.com"; } min-update-interval 5; ``` DomainTools recommends min-update-interval 5 for all deployments, regardless of which feed intervals you use.