DNS Lookup - Forward and Reverse (A, MX, TXT, DMARC, PTR)

DNS Lookup - Forward and Reverse (A, MX, TXT, DMARC, PTR)

by xyzzy

Quickly retrieve DNS records (A, AAAA, MX, CNAME, TXT, DMARC, NS, SOA) or perform reverse DNS lookups. Ideal for DNS audits, cybersecurity analysis, c...

389,692 runs
86 users
Try This Actor

Opens on Apify.com

About DNS Lookup - Forward and Reverse (A, MX, TXT, DMARC, PTR)

Quickly retrieve DNS records (A, AAAA, MX, CNAME, TXT, DMARC, NS, SOA) or perform reverse DNS lookups. Ideal for DNS audits, cybersecurity analysis, competitor intelligence, sales & marketing outreach, tech stack identification, domain monitoring, and DNS troubleshooting.

What does this actor do?

DNS Lookup - Forward and Reverse (A, MX, TXT, DMARC, PTR) is a web scraping and automation tool available on the Apify platform. It's designed to help you extract data and automate tasks efficiently in the cloud.

Key Features

  • Cloud-based execution - no local setup required
  • Scalable infrastructure for large-scale operations
  • API access for integration with your applications
  • Built-in proxy rotation and anti-blocking measures
  • Scheduled runs and webhooks for automation

How to Use

  1. Click "Try This Actor" to open it on Apify
  2. Create a free Apify account if you don't have one
  3. Configure the input parameters as needed
  4. Run the actor and download your results

Documentation

Migration Notice (Nov 21, 2025) Please switch to pay per event actors. This actor will continue to be maintained and supported until all current users have migrated. However, the monthly rental price will increase. --- # DNS Lookup Actor A versatile Apify Actor for quickly retrieving DNS records (A, AAAA, MX, CNAME, TXT, NS, SOA) for a list of domain names, as well as performing reverse DNS lookups. Ideal for DNS validation, cybersecurity audits, domain management, market intelligence, and competitive research. --- ## 🛠️ How the DNS Lookup Actor Works ### ✅ Standard DNS Lookup Provide a list of domain names (without protocol prefixes like https:// or subdomains like www.), and the Actor retrieves DNS records including: - A - AAAA - MX - CNAME - TXT - NS - SOA - DMARC * Adds the _dmarc subdomain automatically * Optionally specify which DNS record types to retrieve using the dnsRecordTypes parameter. If omitted, all common DNS types above are fetched by default. > 💡 Note: Only valid domain names should be used. Protocols like https:// or ports (e.g. :443) are not supported. --- ### 🔁 Reverse DNS Lookup Set the optional parameter reverseLookup to true and provide IP addresses (IPv4 or IPv6) instead of domain names to perform reverse DNS (PTR) lookups. > ⚠️ Only IP addresses are allowed when reverseLookup is true. --- ## 📥 Input Parameters The Actor accepts the following JSON input: | Parameter | Type | Required | Description | |------------------|-----------|----------|-------------| | domains | array | ✅ Yes | List of domain names or IP addresses to query. | | dnsRecordTypes | array | ❌ No | Specific DNS record types to retrieve. Ignored for reverse lookups. Default: ["A", "AAAA", "MX", "CNAME", "TXT", "NS", "SOA"]. | | reverseLookup | boolean | ❌ No | Set to true to enable reverse (PTR) lookups. Default: false. | --- ## 💡 Sample Inputs ### Standard DNS Lookup json { "domains": ["example.com", "apify.com"], "dnsRecordTypes": ["A", "MX"] } ### Reverse DNS Lookup json { "domains": ["8.8.8.8", "1.1.1.1"], "reverseLookup": true } --- ## 📤 Output Format Each result includes the queried domain/IP, the DNS records, and the status of the lookup. json [ { "domain": "example.com", "dnsRecords": [ { "type": "A", "ttl": 300, "address": "93.184.216.34" }, { "type": "MX", "ttl": 3600, "exchange": "mail.example.com", "priority": 10 } ], "status": "Success" } ] ### Reverse Lookup Output json [ { "domain": "8.8.8.8", "dnsRecords": [ { "type": "PTR", "hostname": "dns.google" } ], "status": "Success" } ] --- ## 🔍 Technical Use Cases - ✅ DNS auditing and validation - ✅ DNS propagation troubleshooting - ✅ Domain migration checks - ✅ DNSSEC verification - ✅ Infrastructure and email provider identification - ✅ IP-to-hostname mapping (PTR) --- ## 💼 Business Use Cases - Sales & Marketing Intelligence - Identify email hosting providers for targeted outreach. - Recognize DNS patterns linked to specific technologies. - Competitive Intelligence - Analyze competitor DNS infrastructure. - Market Research - Discover technology stacks and providers used by prospects. --- ## 🔄 Integration with Automation Tools This Actor can easily be integrated with automation platforms like Clay or used within custom Apify workflows. 📘 Sample Call from Another Apify Actor: javascript import { Actor } from 'apify'; await Actor.init(); const dnsResults = await Actor.call('xyzzy/dns-lookup', { domains: ['apify.com', 'google.com', 'microsoft.com'], dnsRecordTypes: ['A', 'AAAA', 'MX', 'TXT', 'NS', 'SOA', 'CNAME'] }); const { items } = await Actor.openDataset(dnsResults.defaultDatasetId).getData(); console.log('DNS Results:', items); await Actor.exit(); --- 🔗 Visit the full collection on xyzzy's Apify profile

Common Use Cases

Market Research

Gather competitive intelligence and market data

Lead Generation

Extract contact information for sales outreach

Price Monitoring

Track competitor pricing and product changes

Content Aggregation

Collect and organize content from multiple sources

Ready to Get Started?

Try DNS Lookup - Forward and Reverse (A, MX, TXT, DMARC, PTR) now on Apify. Free tier available with no credit card required.

Start Free Trial

Actor Information

Developer
xyzzy
Pricing
Paid
Total Runs
389,692
Active Users
86
Apify Platform

Apify provides a cloud platform for web scraping, data extraction, and automation. Build and run web scrapers in the cloud.

Learn more about Apify

Need Professional Help?

Couldn't solve your problem? Hire a verified specialist on Fiverr to get it done quickly and professionally.

Find a Specialist

Trusted by millions | Money-back guarantee | 24/7 Support