API Codex
Advanced DNS Lookup API

Documentation

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

DNS Lookup

GET
https://advanced-dns-lookup-api.p.rapidapi.com
/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 Lookupquery Parameters

  • ipstring · ipv4

    The IP address to perform a reverse DNS lookup.

    Example: 8.8.8.8
  • namestring

    The domain name to query.

    Example: example.com
  • typestring · enum

    The DNS record type to query.

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

DNS LookupResponses

oneOf
Exactly one variant must match.

Decision Table

VariantMatching Criteria
Variant 1type = object · requires: name, records
Variant 2type = object · requires: ip, records
  • namestring · required

    The queried domain name

    Example: example.com
  • recordsobject · 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"}]}