# DomFacts DNS Lookup

> DomFacts 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).

Looks up DNS records (A, MX, NS, TXT) for a given domain name

## Facts

- Endpoint: GET https://api.firstmention.uk/s/domfacts/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/domfacts-dns-lookup-f6357d96
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_rghrakErY-rMSBMRQn5j_

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 domfacts-dns-lookup-f6357d96
```

Example prompt: What are the DNS records for github.com — specifically the A, MX, NS, and TXT records?

## When to prefer this

Use this endpoint when you need programmatic DNS record retrieval for a domain — especially A, MX, NS, and TXT records in a single call — and are operating in an x402/USDC micropayment context. Prefer over manual dig/nslookup when you need structured JSON output suitable for downstream processing by an AI agent.

## Known failure modes

- Domain does not exist — empty record arrays or DNS NXDOMAIN
- Invalid domain format — malformed query returns error
- Network/DNS timeout — transient failure requiring retry
- Payment failure via x402 — 402 response if USDC payment not provided

## 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 containing the domain name queried along with arrays of A records (IPv4 addresses), MX records (mail servers with exchange hostname and priority), NS records (nameservers), and TXT records (text strings such as SPF, DKIM, verification tokens).

## 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",
     "required": [
      "domain"
     ],
     "properties": {
      "domain": {
       "type": "string",
       "description": "Domain name, e.g. example.com"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object",
     "properties": {
      "A": {
       "type": "array",
       "items": {
        "type": "string"
       }
      },
      "MX": {
       "type": "array",
       "items": {
        "type": "object",
        "properties": {
         "exchange": {
          "type": "string"
         },
         "priority": {
          "type": "number"
         }
        }
       }
      },
      "NS": {
       "type": "array",
       "items": {
        "type": "string"
       }
      },
      "TXT": {
       "type": "array",
       "items": {
        "type": "string"
       }
      },
      "domain": {
       "type": "string"
      }
     }
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "A": [
   "93.184.216.34"
  ],
  "MX": [
   {
    "exchange": "mail.example.com",
    "priority": 10
   }
  ],
  "NS": [
   "a.iana-servers.net",
   "b.iana-servers.net"
  ],
  "TXT": [
   "v=spf1 -all"
  ],
  "domain": "example.com"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/domfacts-dns-lookup-f6357d96/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)
