VOOZH about

URL: https://apify.com/balathon/dns-lookup-actor

⇱ Dns Lookup Actor Β· Apify


πŸ‘ Dns Lookup Actor avatar

Dns Lookup Actor

Under maintenance

Pricing

from $0.01 / 1,000 results

Go to Apify Store

Dns Lookup Actor

Under maintenance

An Apify Actor that performs DNS lookups for given domain names and record types, with optional custom DNS server support.

Pricing

from $0.01 / 1,000 results

Rating

0.0

(0)

Developer

πŸ‘ Balasai Sigireddy

Balasai Sigireddy

Maintained by Community

Actor stats

0

Bookmarked

1

Total users

0

Monthly active users

5 months ago

Last modified

Share

An Apify Actor that performs DNS lookups for given domain names and record types, with optional custom DNS server support.

Included features

  • DNS Record Lookup: Query various DNS record types (A, AAAA, MX, CNAME, TXT, NS, SOA, PTR, SRV, CAA, DS, DNSKEY)
  • Custom DNS Server: Optionally specify a DNS server (e.g., 8.8.8.8) for lookups
  • Structured Output: Results stored in Apify dataset with name, type, value, and TTL
  • Error Handling: Graceful handling of NXDOMAIN, no answers, and other DNS errors
  • Apify Integration: Built with Apify SDK for seamless cloud deployment

Input

  • domain (string, required): The domain name to lookup (e.g., example.com)
  • record_type (string, optional): DNS record type, default "A"
  • dns_server (string, optional): Custom DNS server IP address

Output

Dataset containing objects with:

  • name: Domain name
  • type: Record type
  • value: Record value
  • ttl: Time to live

Usage

  1. Set input in storage/key_value_stores/default/INPUT.json
  2. Run locally: apify run
  3. View results in storage/datasets/default/

Example

Input:

{
"domain":"google.com",
"record_type":"A",
"dns_server":"8.8.8.8"
}

Output:

{
"name":"google.com",
"type":"A",
"value":"142.250.195.78",
"ttl":190
}

Deploy to Apify

Connect Git repository to Apify

If you've created a Git repository for the project, you can easily connect to Apify:

  1. Go to Actor creation page
  2. Click on Link Git Repository button

Push project on your local machine to Apify

You can also deploy the project on your local machine to Apify without the need for the Git repository.

  1. Log in to Apify. You will need to provide your Apify API Token to complete this action.

    $apify login
  2. Deploy your Actor. This command will deploy and build the Actor on the Apify Platform. You can find your newly created Actor under Actors -> My Actors.

    $apify push

Documentation reference

To learn more about Apify and Actors, take a look at the following resources:

You might also like

DNS lookup API: Intelligence & Security Analyzer

njoylab/apify-dns

A powerful DNS intelligence tool that performs multi-record lookups, global propagation checks, reverse DNS, SSL/TLS inspection, email security analysis, and rich metadata extraction all in one automated workflow

DNS Lookup

automation-lab/dns-lookup

DNS Lookup resolves all standard DNS record types for one or more domains. It returns structured data including IP addresses, mail servers, name servers, TXT records, and an email security analysis that checks for SPF and DMARC configuration.

πŸ‘ User avatar

Stas Persiianenko

4

DNS Record & Whois Lookup

onescales/dns-record-whois-lookup

Bulk DNS lookup for all 13 record types (A, MX, TXT, NS, SOA, CAA, TLSA & more) + WHOIS data. Check registrar, expiry & DNS config for thousands of domains instantly.

6

5.0

Domain Intelligence: WHOIS + DNS Bulk Lookup

scrapemint/domain-intelligence

Pass a list of domains, get WHOIS data, DNS records, and inferred signals like email provider, DNS provider, and SPF/DMARC presence. Built for SDRs, brand protection teams, and email deliverability consultants. One row per domain. Pay per lookup.

Domain Intelligence Scraper | $10/1K | WHOIS+DNS+SSL

apivault_labs/domain-intelligence-scraper

WHOIS + DNS + SSL + subdomain lookup for any domain. Perfect for OSINT, security audits, SEO research, lead generation.

4