New The MCP server is live: all 45 APIs in Claude, Cursor or any MCP client. Connect your agent

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 included, no credit card required. One key works across every API.

At a glance

DNS Lookup API

5 credits / call
Free calls / month
200
Record Types
15+
Query Speed
<100ms
Uptime SLA
99.9%
Get your free API key

200 free calls on the free plan

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

Built 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

MCP · for your agent

Hand the DNS Lookup API to your agent

Connect Claude, Cursor or any MCP client once, then ask in plain words. Your agent finds this API, reads its docs and makes the call: 5 credits per call, the same as REST, from your team's balance.

Confirm a DNS migration

“We just moved example.com to a new host. Check the A record points at the new IP and the MX records survived.”

list_apis · get_api_docsfree

api_request GET /dns-lookup/v1/check?name=example.com&type=A 5 cr

Current A and MX records with TTLs, checked against the new host's IP.

Check a verification record

“Has the TXT record for our Google Workspace domain verification on example.com gone live yet?”

list_apis · get_api_docsfree

api_request GET /dns-lookup/v1/check?name=example.com&type=TXT 5 cr

Every TXT record on the domain, with the verification string found or still missing.

Learn which email provider accounts use

“We're pitching a Microsoft 365 add-on. Which email providers do our 30 target accounts use? Start with contoso.com.”

list_apis · get_api_docsfree

api_request GET /dns-lookup/v1/check?name=contoso.com&type=MX 5 cr

MX hosts per domain, mapped to providers like Google Workspace or Microsoft 365.

$ claude mcp add --transport http apicodex https://mcp.apicodex.io

Illustrative asks; the calls and prices are real. Claude, Cursor, VS Code and Windsurf setup: mcp.apicodex.io

Try it

Build the request for your data

Edit the parameters below and see the exact request and curl command you'd send. No key required to preview.

GET /dns-lookup/v1/check
Open in Playground

Parameters

Request · HTTP
GET /dns-lookup/v1/check?name=example.com&type=A HTTP/1.1
Host: api.apicodex.io
X-Api-Key: YOUR_API_KEY
Response · JSON 200 OK
{
"name": "example.com",
"records": {
  "A": [
    {
      "name": "example.com",
      "TTL": 300,
      "data": "93.184.216.34"
    }
  ]
}
}

Documentation

DNS Lookup API Documentation

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

url
https://api.apicodex.io/dns-lookup

Authentication

Authenticate every request with your API key: send it in an X-Api-Key header, or pass it as an ?apikey= query parameter.

headers
{
"X-Api-Key": "YOUR_API_KEY"
}

Request and response

Illustrative values. Confirm current endpoint behavior, quotas, and data freshness in the API documentation before production use.

request · http
GET /dns-lookup/v1/check?name=example.com&type=A HTTP/1.1
Host: api.apicodex.io
X-Api-Key: YOUR_API_KEY
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://api.apicodex.io/dns-lookup/v1/check',
  params: {name: 'example.com', type: 'A'},
  headers: {
    'X-Api-Key': 'YOUR_API_KEY'
  }
};

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

Pricing

DNS Lookup API Pricing

This API costs 5 credits per request. Credits are shared across every API on your plan.

Cost estimator

requests per month → cheapest plan that covers it

Estimate your monthly cost

Drag the slider to match your expected request volume. We'll recommend the cheapest plan that covers it.

10,000

Recommended plan

Starter

$29.99 /month

Credits used
Credits included
Cost per 1K requests
Choose Starter

Free

Free
1,000 credits · ~200 requests/mo · 2 rps
  • All APIs included
  • No credit card required
  • Full documentation and examples
  • MCP server for your AI agents
  • Up to 5 active API keys
Start for free

Starter

Popular
$29.99 /month
50,000 credits · ~10,000 requests/mo · 10 rps
  • All APIs included
  • Email support
  • Usage dashboard and analytics
  • MCP server for your AI agents
  • Up to 5 active API keys
Start with Starter

Pro

$99.99 /month
250,000 credits · ~50,000 requests/mo · 25 rps
  • All APIs included
  • Priority support
  • MCP server for your AI agents
  • Up to 5 active API keys
Start with Pro

Need a different plan?

Tell us about your API, volume, or support requirements.

Contact us

FAQ

Frequently asked questions

Ready to integrate DNS Lookup?