v1/search/dns/current

This API provides the current DNS records for a specified domain, including A, AAAA, MX, NS, SOA, and TXT records.


Request URL

Replace {domain} with the domain you want to query, {timerange} with the desired time range (0 for real-time, 7 for one week, 30 for one month), and your_api_key with your actual API key.


Request Parameters

Parameter Type Location Required Description
domain string query Yes The domain to query, e.g., example.com
timerange int query No The time range for data: 0 (real-time), 7 (one week), 30 (one month). Defaults to 0 if not provided

Response Data


Explanation of DNS Record Types

  • A: Lists the IPv4 addresses for the domain.
  • AAAA: Lists the IPv6 addresses for the domain.
  • MX: Lists the mail exchange servers for the domain.
  • NS: Lists the authoritative name servers for the domain.
  • SOA: Contains the Start of Authority record, which includes administrative information about the domain.
  • TXT: Contains text records associated with the domain, often used for verification and policy purposes.