# DomainKit DNS Lookup

> DomainKit DNS Lookup is a paid API for AI agents from api.firstmention.uk, paid per call via x402, $0.01/call, status unknown (last checked 2026-11-20).

Fetches live DNS records (A, MX, and other types) for a given domain name

## Facts

- Endpoint: GET https://api.firstmention.uk/s/domainkit/dns?utm_source=zero.xyz
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-11-20
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/domainkit-dns-lookup-3cba5094
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_sEaiVknqLbCsUjdHAGaTg

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 domainkit-dns-lookup-3cba5094
```

Example prompt: Can you look up the DNS records for stripe.com — I want to see the A and MX records?

## When to prefer this

Use this endpoint when you need live DNS resolution for a specific domain and want structured JSON output per record type. It is part of the broader DomainKit suite, so it pairs well with RDAP registration data and email-auth grading available on the same platform. Prefer it over raw dig/nslookup when you need a pay-per-call, agent-friendly API that returns clean typed arrays. Avoid if you need WHOIS/registration history — use the full domainkit report endpoint instead.

## Known failure modes

- Domain does not exist — returns empty records or error
- Invalid domain format — request rejected
- Requested record types not found — returns empty arrays for those types
- Network/resolver timeout — API may return an error or partial results
- Missing required 'domain' query parameter — request fails validation

## How this service works

Pay-per-call HTTP APIs, paid with x402 in USDC on Base (eip155:8453): agentkit, api-change-check, basedue, bizcal-api, chainread, check-sanctions, chgwatch, company-facts, domain-intel, domainkit, domfacts, due, edgar, funding-rates, fundinglens, pageaudit, solcheck, token-dd, txpreflight, walletprofile, web-extract, webmd, webread, websearch, x402-preflight, x402check, x402index. Each operation describes its service.

## Output

A JSON object with an 'ok' boolean, the queried domain name, and a 'records' map where each key is a DNS record type (e.g. 'A', 'MX') and each value is an array of record strings (e.g. IP addresses or mail server priorities and hostnames).

## 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",
      "HEAD",
      "DELETE"
     ],
     "type": "string"
    },
    "headers": {
     "type": "object",
     "additionalProperties": {
      "type": "string"
     }
    },
    "queryParams": {
     "type": "object",
     "properties": {
      "types": {
       "type": "string"
      },
      "domain": {
       "type": "string"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object",
     "properties": {
      "ok": {
       "type": "boolean"
      },
      "domain": {
       "type": "string"
      },
      "records": {
       "type": "object",
       "properties": {
        "A": {
         "type": "array",
         "items": {
          "type": "string"
         }
        },
        "MX": {
         "type": "array",
         "items": {
          "type": "string"
         }
        }
       }
      }
     }
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "ok": true,
  "domain": "github.com",
  "records": {
   "A": [
    "20.26.156.215"
   ],
   "MX": [
    "10 aspmx.l.google.com"
   ]
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/domainkit-dns-lookup-3cba5094/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.firstmention.uk](https://www.zero.xyz/host/api.firstmention.uk/llms.txt)
