# DNS Records Lookup via DNS-over-HTTPS

> DNS Records Lookup via DNS-over-HTTPS is a paid API for AI agents from agent-data-tools.revmesh2074.workers.dev, paid per call via x402, $0.01/call, status unknown (last checked 2026-10-30).

Looks up DNS records of any type (A, AAAA, MX, TXT, CNAME, NS, SOA, CAA, SRV, PTR, DS, DNSKEY, HTTPS) for a domain using Cloudflare 1.1.1.1, returning answers with TTL, response code, and DNSSEC validation status.

## Facts

- Endpoint: GET https://agent-data-tools.revmesh2074.workers.dev/dns/lookup?utm_source=zero.xyz
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-30
- 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-records-lookup-via-dns-5ba4ce24
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_8jqwtQA7vlQP2T3pB-Nc2

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-records-lookup-via-dns-5ba4ce24
```

Example prompt: Can you look up the MX records for example.com so I can confirm where its email is being delivered, and also check whether DNSSEC is validated?

## When to prefer this

Use this endpoint when you need a quick, authoritative DNS lookup via Cloudflare's 1.1.1.1 resolver with DNSSEC validation status included. It supports a wide range of record types in a single call and is ideal for email verification (MX, TXT/SPF), domain existence checks, infrastructure debugging, and security audits. For checking whether a DNS change has propagated across multiple global resolvers, use a dns_propagation endpoint instead.

## Known failure modes

- Domain does not exist — status returns NXDOMAIN with an empty answers array
- Invalid record type string — may return an error or empty result
- Malformed domain name input — resolver may return SERVFAIL
- DNSSEC validation failure — dnssec field returns false
- Network or resolver timeout — worker may return a 5xx error

## How this service works

Look up DNS records of a domain over DNS-over-HTTPS (Cloudflare 1.1.1.1): A, AAAA, CNAME, MX, NS, TXT, SOA, CAA, SRV, PTR, DS, DNSKEY or HTTPS, with each answer's TTL, the response code (NOERROR, NXDOMAIN…) and whether DNSSEC validated. Use to check email (MX, SPF in TXT), verify a domain, or debug a DNS change; for whether the change has spread use dns_propagation.

## Output

Returns an object with the queried domain name, record type, the resolver used (Cloudflare 1.1.1.1), a status code (e.g. NOERROR or NXDOMAIN), a boolean indicating whether DNSSEC was validated, and an array of answer records each containing the record data and its TTL in seconds.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "required": [
  "name"
 ],
 "properties": {
  "name": {
   "type": "string",
   "description": "Domain name (or a URL; its host is used)"
  },
  "type": {
   "type": "string",
   "description": "Record type: A, AAAA, CNAME, MX, NS, TXT, SOA, CAA, SRV, PTR, DS, DNSKEY, HTTPS (default A)"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "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"
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/agent-data-tools-revmesh2074-workers-dev-dns-records-lookup-via-dns-5ba4ce24/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)
