# AgentBit DNS Inspect

> AgentBit DNS Inspect is a paid API for AI agents from agentbit.app, paid per call via x402, $0.01/call, status unknown (last checked 2026-09-13).

Performs a full DNS inspection (A, AAAA, MX, TXT, NS, CNAME, SOA, CAA records with TTLs) over DNS-over-HTTPS and returns a derived email posture analysis including SPF and DMARC assessment.

## Facts

- Endpoint: POST https://agentbit.app/v1/dns/inspect
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-13
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/agentbit-dns-inspect-baad4b71
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_y0nZHmHj3crMn1vKsix6E

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 agentbit-dns-inspect-baad4b71 -d '<json body>'
```

Example prompt: Can you do a full DNS inspection of stripe.com — I want to see all the DNS records including A, MX, TXT, and NS, and also check whether their email setup has SPF and DMARC properly configured?

## When to prefer this

Choose this endpoint when you need both raw DNS record data AND a synthesized email posture analysis in a single call, without needing to parse SPF/DMARC TXT records yourself. It is preferable to raw DNS tools when the goal is to quickly assess whether a domain's email infrastructure is properly secured (SPF, DMARC, MX) for due diligence, deliverability audits, or onboarding checks. It covers all eight major record types simultaneously, making it more efficient than running multiple separate lookups.

## Known failure modes

- Domain does not exist or is unresolvable — resolved: false with empty records
- Invalid domain format — validation error on input
- Upstream DNS-over-HTTPS provider timeout — transient error response
- Requested record types not found — empty objects returned for those record types
- Payment failure — x402 payment not accepted or insufficient USDC

## How this service works

Complete DNS inspection in one call over DNS-over-HTTPS: A, AAAA, MX, TXT, NS, CNAME, SOA and CAA records with TTLs — plus a derived email posture analysis (SPF present and policy, DMARC present and policy, MX count, overall assessment) that raw lookup tools don't do.

## Output

A JSON object containing the domain name, a 'records' map with each requested DNS record type (A, AAAA, MX, TXT, NS, CNAME, SOA, CAA) including name, data, and TTL fields, a 'resolved' boolean, and an 'email_posture' object with fields for spf_present, spf_policy, dmarc_present, dmarc_policy, mx_count, and an overall assessment string (e.g. 'partial', 'good', 'none').

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "types": {
   "type": "array",
   "items": {
    "enum": [
     "A",
     "AAAA",
     "MX",
     "TXT",
     "NS",
     "CNAME",
     "SOA",
     "CAA"
    ],
    "type": "string"
   },
   "description": "Record types to query (default: all eight)"
  },
  "domain": {
   "type": "string",
   "description": "Hostname to inspect, e.g. example.com"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "domain": "example.com",
  "records": {
   "A": [
    {
     "ttl": 300,
     "data": "93.184.215.14",
     "name": "example.com"
    }
   ],
   "MX": {},
   "TXT": [
    {
     "ttl": 300,
     "data": "v=spf1 -all",
     "name": "example.com"
    }
   ]
  },
  "resolved": true,
  "email_posture": {
   "mx_count": 0,
   "assessment": "partial",
   "spf_policy": "-all",
   "spf_present": true,
   "dmarc_policy": null,
   "dmarc_present": false
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/agentbit-dns-inspect-baad4b71/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from agentbit.app](https://www.zero.xyz/host/agentbit.app/llms.txt)
