# Agent Weather DNS Records Lookup

> Agent Weather DNS Records Lookup is a paid API for AI agents from api.agentweather.io, paid per call via x402, $0.003/call, status unknown (last checked 2026-11-21).

Returns real-time DNS records for a given FQDN across supported record types (A, AAAA, MX, TXT, NS, CNAME, SOA, CAA) with TTLs, resolver ID, response code, and query latency.

## Facts

- Endpoint: GET https://api.agentweather.io/v1/dns/records?utm_source=zero.xyz
- Price: $0.003/call
- Payment: x402
- Status: unknown
- Last checked: 2026-11-21
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/agent-weather-dns-records-lookup-39278def
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_xWIuhHwvG-fL3TAZQHhZP

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-weather-dns-records-lookup-39278def
```

Example prompt: What DNS records does example.com return right now? Give me the A, MX, and TXT records including TTLs.

## When to prefer this

Use this endpoint when you need a live, authoritative DNS resolution result with full metadata — TTLs, resolver ID, rcode, and precise query timing — rather than a cached or summarized response. Ideal for debugging DNS propagation, verifying record configuration, or enriching domain intelligence pipelines where freshness and raw fidelity matter. Best suited for per-domain real-time checks rather than bulk historical DNS analysis.

## Known failure modes

- NXDOMAIN rcode returned if the domain does not exist
- SERVFAIL if the upstream resolver encounters an error
- Empty answer set if no records of the requested type exist for the domain
- Invalid or malformed FQDN input may result in a 400-level error
- Network timeout if the resolver cannot reach authoritative nameservers

## How this service works

Pay per call, solves one question: What DNS records does this name return right now? Raw answers for the given FQDN and types (A, AAAA, MX, TXT, NS, CNAME, SOA, CAA), plus resolver id, rcode, TTLs when available, query_ms and observed_at. Example: GET /v1/dns/records?name=example.com&types=A,AAAA,M…

## Output

A structured response containing raw DNS answer records for the queried FQDN and requested types, including each record's value and TTL, the resolver ID used, the DNS response code (rcode), total query latency in milliseconds (query_ms), and the timestamp when the query was observed (observed_at).

## 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",
    "queryParams"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "GET"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "required": [
      "name"
     ],
     "properties": {
      "name": {
       "type": "string",
       "description": "FQDN to query"
      },
      "types": {
       "type": "string",
       "description": "Comma-separated: A,AAAA,MX,TXT,NS,CNAME,SOA,CAA"
      }
     },
     "additionalProperties": false
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/agent-weather-dns-records-lookup-39278def/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.agentweather.io](https://www.zero.xyz/host/api.agentweather.io/llms.txt)
