# DNS Lookup: Records of a Domain

> DNS Lookup: Records of a Domain is a paid API for AI agents from agent-data-tools.revmesh2074.workers.dev, paid per call via x402, $0.002/call, status unknown (last checked 2026-11-09).

Looks up DNS records (A, AAAA, MX, TXT, CNAME, NS, CAA, SOA, and more) for a domain via Cloudflare DNS over HTTPS, returning answers with TTLs, DNSSEC status, and response code.

## Facts

- Endpoint: GET https://agent-data-tools.revmesh2074.workers.dev/dns/records?utm_source=zero.xyz
- Price: $0.002/call
- Payment: x402
- Status: unknown
- Last checked: 2026-11-09
- Activations on Zero: 0
- Provider: agent-data-tools.revmesh2074.workers.dev
- Website: https://agent-data-tools.revmesh2074.workers.dev
- Tags: x402
- Canonical page: https://www.zero.xyz/c/agent-data-tools-revmesh2074-workers-dev-dns-lookup-records-of-a-domain-77ebfddd
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_q3shF6dsGeH2LEEjwxwEW

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability agent-data-tools-revmesh2074-workers-dev-dns-lookup-records-of-a-domain-77ebfddd
```

Example prompt: What are the MX records for stripe.com — I need to know which mail servers handle its email?

## When to prefer this

Use this endpoint when you need authoritative, real-time DNS record lookups for any standard record type, especially when DNSSEC validation status matters. Prefer this over whois-style lookups for IP/mail/TXT resolution tasks. It is ideal for verifying email infrastructure (SPF, DKIM, DMARC TXT records), confirming domain propagation, checking nameserver delegation, or inspecting CAA certificate authority policies — all via Cloudflare's reliable DNS over HTTPS infrastructure.

## Known failure modes

- Domain does not exist — returns NXDOMAIN status with empty answers array
- Record type not found for domain — returns NOERROR with empty answers
- Invalid domain name format — may return error or empty result
- SERVFAIL status if the authoritative nameserver is unreachable or misconfigured
- DNSSEC validation failure indicated in dnssec field being false

## How this service works

DNS lookup of a domain: A, AAAA, MX, TXT, CNAME, NS, CAA, SOA and other records through Cloudflare DNS over HTTPS, with TTLs, the response code and DNSSEC validation. Use to check where a domain points, its mail servers or a TXT verification record.

## Output

Returns an object with the queried domain name, the record type requested, DNSSEC validation boolean, DNS response status code (e.g. NOERROR, NXDOMAIN), an array of answer records each containing the record data and TTL in seconds, and the resolver used (Cloudflare DNS over HTTPS).

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "GET"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "required": [
      "name"
     ],
     "properties": {
      "name": {
       "type": "string",
       "examples": [
        "example.com"
       ],
       "description": "Domain name (or a URL; its host is used)"
      },
      "type": {
       "type": "string",
       "examples": [
        "MX"
       ],
       "description": "Record type: A, AAAA, CNAME, MX, NS, TXT, SOA, CAA, SRV, PTR, DS, DNSKEY, HTTPS (default A)"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object",
     "properties": {
      "name": {
       "type": "string"
      },
      "type": {
       "type": "string"
      },
      "dnssec": {
       "type": "boolean"
      },
      "status": {
       "type": "string"
      },
      "answers": {
       "type": "array",
       "items": {
        "type": "object",
        "properties": {
         "ttl": {
          "type": "number"
         },
         "data": {
          "type": "string"
         }
        }
       }
      },
      "resolver": {
       "type": "string"
      }
     }
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "name": "example.com",
  "type": "MX",
  "dnssec": true,
  "status": "NOERROR",
  "answers": [
   {
    "ttl": 86400,
    "data": "0 ."
   }
  ],
  "resolver": "Cloudflare"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/agent-data-tools-revmesh2074-workers-dev-dns-lookup-records-of-a-domain-77ebfddd/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from agent-data-tools.revmesh2074.workers.dev](https://www.zero.xyz/host/agent-data-tools.revmesh2074.workers.dev/llms.txt)
