API CodexAPI Codex
WebsiteDashboardGet API Key
  • Documentation
  • All APIs
  • Changelog
Resources
  • Docs Home
  • API Catalog
  • API Codex Website
Platform
  • Get a free API key
  • Dashboard
  • APIs & Pricing

© 2026 API Codex. All rights reserved.

Information
Other endpoints
    DNS Lookupget
Schemas
powered by Zudoku
Advanced DNS Lookup API
Advanced DNS Lookup API

Other endpoints


DNS Lookup

GET
https://api.apicodex.io/dns-lookup
/v1/check

Performs a DNS query for a specified domain name or a reverse DNS lookup if an IP address is provided.

  • Forward Lookup: Provide a name parameter (and optionally a type parameter) to retrieve DNS records for that domain.
  • Reverse Lookup: Provide an ip parameter to perform a reverse DNS lookup (PTR). In this case, the name parameter is optional. If both ip and name are provided, the API prioritizes the reverse lookup.

DNS Lookup › query Parameters

ip
​string · ipv4

The IP address to perform a reverse DNS lookup.

Example: 8.8.8.8
name
​string

The domain name to query.

Example: example.com
type
​string · enum

The DNS record type to query.

Enum values:
A
AAAA
TXT
CNAME
MX
NS
SOA
SRV
Example: A

DNS Lookup › Responses

Successful operation

oneOf
Exactly one variant must match.

Decision Table

VariantMatching Criteria
type = object · requires: name, records
type = object · requires: ip, records
Properties for Variant 1:
ForwardLookupResponse
name
​string · required

The queried domain name

Example: example.com
​object · required

Grouped DNS records by record type

Example: {"A":[{"name":"example.com","TTL":300,"data":"93.184.216.34"}],"AAAA":[{"name":"example.com","TTL":300,"data":"2606:2800:220:1:248:1893:25c8:1946"}]}
GET/v1/check
curl 'https://api.apicodex.io/dns-lookup/v1/check?apikey=<api-key>'
Example Responses
No example specified for this content type
application/json