Why Domain Intelligence Matters
Whether you're doing security research, monitoring your own infrastructure, or evaluating a potential acquisition target, domain data tells a story. WHOIS records reveal ownership history. DNS records expose infrastructure topology. SPF/DMARC configs show email security posture.
The problem? Gathering all this data usually means jumping between multiple tools — whois CLI, dig, nslookup, online MX lookup tools... It's tedious and doesn't scale.
So I built a WHOIS & DNS Lookup Tool on Apify that returns everything in a single API call.
What It Does
Give it a domain (or a list of domains), and you get:
- WHOIS Data: Registrar, creation date, expiration date, registrant info, status flags
- DNS Records: A, AAAA, MX, NS, TXT, CNAME, SOA, CAA, SRV
- Email Security: SPF and DMARC record detection
- IP Resolution: Quick A-record IP lookup
All in clean, structured JSON.
Example Output
{
"domain": "example.com",
"whois": {
"registrar": "RESERVED-Internet Assigned Numbers Authority",
"creationDate": "1995-08-14",
"expirationDate": "2026-08-13",
"nameServers": ["a.iana-servers.net", "b.iana-servers.net"]
},
"dns": {
"A": ["93.184.216.34"],
"MX": ["0 ."],
"TXT": ["v=spf1 -all"],
"SOA": ["ns.icann.org. noc.icann.org. 2025081403 7200 3600 1209600 3600"]
},
"security": {
"spf": "v=spf1 -all",
"dmarc": "v=DMARC1;p=reject;sp=reject;adkim=s;aspf=s"
},
"resolvedIP": "93.184.216.34"
}
How It Works
The tool uses two battle-tested Python libraries:
- python-whois for WHOIS registration data
- dnspython for DNS record resolution
It wraps them in the Apify SDK for cloud execution, automatic dataset storage, and pay-per-event pricing.
SPF/DMARC Detection
Email security is often overlooked in domain analysis. The tool checks TXT records for SPF policies and queries _dmarc.{domain} for DMARC configurations — two critical indicators of email deliverability posture.
Use Cases
| Scenario | What You Get |
|---|---|
| Security Audit | Full DNS topology + WHOIS ownership trail |
| Domain Monitoring | Track expiry dates and DNS changes over time |
| Email Deliverability | SPF/DMARC validation for sender domains |
| Competitive Intel | Infrastructure discovery via DNS records |
| SEO Analysis | Name server patterns, CDN detection |
Try It
You can run the tool directly on Apify:
The full source code is available on GitHub:
Pricing
$0.01 per domain looked up. No subscriptions, no minimums — pure pay-per-use.
What's Next
This is tool #10 in a growing portfolio of content and data extraction APIs. Each one solves a specific data gathering need:
- RSS Feed Aggregator
- llms.txt Generator
- RO Business Scraper
- Sitemap Content Extractor
- Product Hunt Scraper
- Sentiment Analyzer
- Property Listing Scraper
- Press Release Monitor
- AI Web Crawler
- WHOIS & DNS Lookup Tool ← this one
All available individually on Apify, or unified through a single Apify endpoint.
Built with Python, Apify SDK, and a passion for clean data APIs.
More from me
- Romania's company registry, now callable from Claude and Cursor (MCP + REST)
- Romania's company registry has no free API — so I built one (4.2M firms, MCP + REST)
- Building a Romanian Business Registry API: 4.2M Companies as Queryable JSON
- Building a SEC EDGAR Filings Scraper: 10-K Risk Factors and 13F Holdings as Clean JSON
- Building a Price & Competitor Monitor That Diffs Shopify and AliExpress Prices
- Building a Vertical Corpus Builder: Clean JSONL Datasets for LLM Fine-Tuning
- Building a Change & Alert Engine That Webhooks Any Diff on Any URL
- Building a Romania Mall Store Directory: Every Store in 29 Malls, One Schema
- Scraping Romanian Public Contracts: A Native-Language Tender & Awarded Deals Scraper
- Building a 12-City US Building Permits Scraper With Python
- Building an EU Safety Gate (RAPEX) Product Recall Scraper With Python
- How I Built a Water Utility Risk Intelligence Tool With Python and MCP
- Building an Aviation Hub API: Airports, Airlines, Live Flights & Weather From Six Keyless Sources
- I Stopped Scraping Business Directories and Built an MCP Server on Official Registry Data
- I Built a Canada Product Recalls & Safety Alerts Scraper That Reads Open Government Data
- I Built a Telegram Members Scraper That Reads Public Chat Stats Without Login
- Building an AI Web Crawler That Outputs LLM-Ready Content Chunks
- Building a Real-Time Press Release Monitor with Python and RSS...
- Building a Universal Property Listing Scraper with Python and ...
- Tracking Tech Sentiment in Real-Time with VADER and Python
- How I Built a Product Hunt Scraper That Tracks Launches in Rea...
- 5 APIs Every Developer Needs for Content Processing (RSS, Extraction, Sitemaps, AI)
- How to Extract Clean Content From Any Website Sitemap (For SEO...
- Scraping 187,000 Romanian Businesses: Building a B2B Lead Gene...
- Make Any Website AI-Readable: Generating llms.txt Files with
- I Built an RSS Aggregator That Extracts Full Article Content (...
Top comments (0)