# Aayat AI DNS Lookup

> Aayat AI DNS Lookup is a paid API for AI agents from aayatai.com, paid per call via x402, $0.001/call, status unknown (last checked 2026-10-02).

Performs DNS record lookups for a given domain name or IP address, returning records, status, and DNSSEC validation info

## Facts

- Endpoint: GET https://aayatai.com/dns?utm_source=zero.xyz
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-02
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/aayat-ai-dns-lookup-9d0be42f
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_cXIurlCboRYKo9GHYLHkc

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 aayat-ai-dns-lookup-9d0be42f
```

Example prompt: Look up all DNS records for github.com — I want to see the A, MX, and TXT records along with whether DNSSEC is validated.

## When to prefer this

Use this endpoint when you need a simple, pay-per-call DNS lookup without setting up accounts or API keys. Ideal for AI agents that occasionally need to resolve domain records, check DNSSEC status, or verify domain existence as part of a larger workflow, especially when paying via USDC on Base or Solana via x402.

## Known failure modes

- NXDOMAIN returned if the domain does not exist
- SERVFAIL if the upstream DNS resolver encounters an error
- Empty records array if the requested record type has no entries for that domain
- Invalid domain name format may result in an error response
- Network timeouts for slow or unreachable authoritative nameservers

## How this service works

Look up DNS records for any domain: A, AAAA, CNAME, MX, NS, TXT, SOA, CAA, SRV, PTR, DS, DNSKEY, HTTPS, or ALL common types at once. Pass ?name=example.com&type=MX. An IP address with type=PTR does a reverse lookup. Uses DNS-over-HTTPS (Cloudflare 1.1.1.1) and reports DNSSEC validation and NXDOMAIN.

## Output

Returns a JSON object with the queried domain name, record type, DNS status code (e.g. NOERROR, NXDOMAIN, SERVFAIL), an array of matching DNS records each containing name, type, TTL, and data fields, and a boolean indicating whether DNSSEC validation passed.

## 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",
       "maxLength": 253,
       "description": "Domain name (or IP address for PTR), e.g. example.com."
      },
      "type": {
       "enum": [
        "A",
        "AAAA",
        "CNAME",
        "MX",
        "NS",
        "TXT",
        "SOA",
        "CAA",
        "SRV",
        "PTR",
        "DS",
        "DNSKEY",
        "HTTPS",
        "SVCB",
        "ALL"
       ],
       "type": "string",
       "default": "A",
       "description": "Record type, or ALL for the common ones."
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object",
     "required": [
      "name",
      "type",
      "status",
      "dnssecValidated",
      "records"
     ],
     "properties": {
      "name": {
       "type": "string",
       "description": "The name that was looked up."
      },
      "type": {
       "type": "string"
      },
      "status": {
       "type": "string",
       "description": "NOERROR, NXDOMAIN (does not exist), SERVFAIL, ..."
      },
      "records": {
       "type": "array",
       "items": {
        "type": "object",
        "required": [
         "name",
         "type",
         "ttl",
         "data"
        ],
        "properties": {
         "ttl": {
          "type": "integer"
         },
         "data": {
          "type": "string"
         },
         "name": {
          "type": "string"
         },
         "type": {
          "type": "string"
         }
        }
       }
      },
      "dnssecValidated": {
       "type": "boolean"
      }
     }
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "name": "example.com",
  "type": "MX",
  "status": "NOERROR",
  "records": [
   {
    "ttl": 86400,
    "data": "0 .",
    "name": "example.com",
    "type": "MX"
   }
  ],
  "dnssecValidated": true
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/aayat-ai-dns-lookup-9d0be42f/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from aayatai.com](https://www.zero.xyz/host/aayatai.com/llms.txt)
