AGENTUTIL
DocsTools Reference

DNS Lookup

$0.005per call
dns.lookup

Look up DNS records for a domain

Endpoint
POST /v1/tools/dns.lookup/tasks

Input

FieldTypeRequiredDescription
domainstringyesDomain name to look up
record_typestringnoDNS record type to query. Defaults to ALL

Output

FieldTypeDescription
domainstring
recordsobjectMap of record type to results. Only queried types are present.
queried_atstring

Example

Request
{
  "domain": "google.com"
}
Response
{
  "domain": "google.com",
  "records": {
    "A": [
      "142.250.80.46"
    ],
    "AAAA": [
      "2607:f8b0:4004:800::200e"
    ],
    "MX": [
      {
        "priority": 10,
        "exchange": "smtp.google.com"
      }
    ],
    "NS": [
      "ns1.google.com",
      "ns2.google.com"
    ],
    "TXT": [
      "v=spf1 include:_spf.google.com ~all"
    ]
  },
  "queried_at": "2026-03-07T08:00:00.000Z"
}