Advanced DNS queries for developers and network administrators

DNS Lookup API

The Advanced DNS Lookup API is a powerful tool designed for developers and network administrators to query DNS records with ease. It supports both forward lookups (by domain name) and reverse lookups (by IP address).

The API handles a wide range of DNS record types, making it ideal for integration into web applications, network monitoring tools, and security platforms with enterprise-grade reliability.

Free tier · no credit card · billed on RapidAPI

15+
Record Types
<100ms
Query Speed
99.9%
Uptime SLA

Key features

  • Forward DNS lookups by domain name
  • Reverse DNS lookups by IP address
  • Support for A, AAAA, MX, TXT, SOA, NS, PTR, SRV records
  • Structured JSON responses with TTL values
  • Bulk lookup capabilities for multiple domains
  • Global DNS server network for fast resolution
  • Rate limiting protection and error handling

Perfect for

  • Network monitoring and diagnostics
  • Domain validation and verification
  • Security threat intelligence
  • Email deliverability analysis
  • Website migration planning
  • Infrastructure auditing
  • DNS configuration troubleshooting
  • Brand protection monitoring
Documentation

DNS Lookup API Documentation

Everything you need to integrate — base URL, auth, and copy-paste examples.

The Advanced DNS Lookup API is a powerful tool designed for developers and network administrators to query DNS records with ease. The API supports a wide range of DNS record types—including A, AAAA, MX, TXT, SOA, NS, and many others—and now also supports reverse DNS lookups using an IP address.

Base URL

https://advanced-dns-lookup-api.p.rapidapi.com

Authentication

To authenticate your requests, include the following headers:

headers
{
"X-RapidAPI-Key": "YOUR_RAPIDAPI_KEY",
"X-RapidAPI-Host": "advanced-dns-lookup-api.p.rapidapi.com"
}

Request & response

Request
http
GET /v1/check?name=example.com&type=A HTTP/1.1
Response
json
{
"name": "example.com",
"records": {
  "A": [
    {
      "name": "example.com",
      "TTL": 300,
      "data": "93.184.216.34"
    }
  ]
}
}

Code examples

JavaScript/Node.js
const axios = require('axios');

const options = {
  method: 'GET',
  url: 'https://advanced-dns-lookup-api.p.rapidapi.com/v1/check',
  params: {name: 'example.com', type: 'A'},
  headers: {
    'X-RapidAPI-Key': 'YOUR_RAPIDAPI_KEY',
    'X-RapidAPI-Host': 'advanced-dns-lookup-api.p.rapidapi.com'
  }
};

try {
  const response = await axios.request(options);
  console.log(response.data);
} catch (error) {
  console.error(error);
}
Pricing

DNS Lookup API Pricing

Choose the right plan for your DNS lookup needs with flexible pricing options and no hidden fees

No credit card to start · cancel anytime

Basic

Free
1,000 Requests / Month
  • All DNS record types
  • Reverse DNS lookups
  • Structured JSON responses
Get Started Free
Most popular

Pro

$4.99/month
10,000 Requests / Month
  • All DNS record types
  • Reverse DNS lookups
  • 10× more requests
Subscribe Now

Ultra

$14.99/month
50,000 Requests / Month
  • All DNS record types
  • Reverse DNS lookups
  • 5× more than Pro plan
Subscribe

Mega

$49.99/month
250,000 Requests / Month
  • All DNS record types
  • Reverse DNS lookups
  • 5× more than Ultra plan
Subscribe

Need higher volume or a custom SLA?

Talk to us about enterprise rates, dedicated support, and compliance docs.

Contact sales
FAQ

Frequently asked questions

The Advanced DNS Lookup API supports a wide range of DNS record types including A, AAAA, TXT, CNAME, MX, NS, SOA, SRV, PTR, HINFO, MINFO, RP, AFSDB, and more. If no specific type is requested, the API will return results for A, AAAA, MX, TXT, SOA, and NS records by default.

Yes, the API supports reverse DNS lookups using the ip parameter. Simply provide an IP address to the endpoint, and the API will return the PTR records associated with that IP. If both ip and name parameters are provided, the API will prioritize the reverse lookup.

If you don't specify a record type using the type parameter, the API will automatically perform queries for the default record types: A, AAAA, MX, TXT, SOA, and NS. The results will be grouped by record type in the response.

Our DNS Lookup API is optimized for speed with a global edge network that delivers typical response times under 100ms. The API leverages strategically distributed DNS resolvers across 50+ locations worldwide to minimize latency. For frequently queried domains, we implement intelligent caching strategies that can reduce response times to under 50ms. The actual response time depends on factors like the record type queried, the authoritative nameserver location, and network conditions, but our infrastructure ensures consistently fast performance for production applications.

Yes, the DNS Lookup API is well-suited for bulk domain lookups. While each API call processes a single domain, you can implement parallel requests to handle multiple domains efficiently. For bulk operations, we recommend using connection pooling and implementing exponential backoff for rate limiting. The Pro plan supports 10,000 requests per month, while the Mega plan allows up to 250,000 requests monthly. For optimal performance with bulk lookups, batch your requests in groups of 50-100 concurrent queries, implement retry logic for failed requests, and monitor your rate limit headers to avoid throttling.

Absolutely. The DNS Lookup API is designed for production-grade monitoring systems with a 99.9% uptime SLA and enterprise reliability. Many DevOps teams use our API for continuous DNS monitoring, health checks, and infrastructure validation. The API integrates seamlessly with popular monitoring platforms like Datadog, New Relic, and Prometheus through webhooks and custom exporters. You can set up automated alerting by comparing DNS responses against expected values and triggering notifications when discrepancies are detected. The structured JSON responses make it easy to parse and analyze DNS records programmatically, and the fast response times ensure your monitoring checks complete quickly without impacting system performance.

Every week you build in-house is a week you don't ship product

2,500+ teams already made the switch. Start with a free tier today, or talk to us about your enterprise needs.

For developers

Free tier, no credit card. Integrate your first API in under 30 minutes.

Get API keys freeRead the docs

For teams and enterprise

Custom volumes, SLA guarantees, dedicated support, and compliance documentation.

Talk to sales

or email sales@apicodex.io