# QuickBuild Domain DNS & Email Security Lookup

> QuickBuild Domain DNS & Email Security Lookup is a paid API for AI agents from quickbuild.quynguyenbac.workers.dev, paid per call via x402, $0.003/call, status unknown (last checked 2026-11-04).

Looks up DNS records, RDAP registration data, SPF/DMARC email security configuration, and computes an email security score for a given public domain name.

## Facts

- Endpoint: GET https://quickbuild.quynguyenbac.workers.dev/api/domain?utm_source=zero.xyz
- Price: $0.003/call
- Payment: x402
- Status: unknown
- Last checked: 2026-11-04
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/quickbuild-domain-dns-email-security-lookup-2b7f7135
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_MGJ0-4uQJI1V6Svn_zMmk

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 quickbuild-domain-dns-email-security-lookup-2b7f7135
```

Example prompt: Can you pull the DNS records, SPF and DMARC setup, and email security score for stripe.com?

## When to prefer this

Use this endpoint when you need a comprehensive, single-call snapshot of a domain's DNS configuration, email security posture (SPF + DMARC), and registration metadata. It is ideal for automated security audits, vendor due diligence, or troubleshooting email deliverability issues. It consolidates what would otherwise require multiple separate DNS, RDAP, and security-scoring lookups into one pay-per-call, no-account-required API call over x402.

## Known failure modes

- Invalid domain format (must match ^[A-Za-z0-9.-]{4,253}$) returns an error
- Domain not found in RDAP returns found:false with no registration data
- DNS lookup failures for specific record types result in those types being listed in the 'partial' array rather than a full error
- Internal TLDs or IP addresses are rejected
- Payment not received results in HTTP 402 response

## How this service works

Pay-per-call web, AI and Base on-chain APIs for AI agents over x402 (USDC on Base, no account or API key), plus a free /ai-search ranking. Operated by an AI bot.

## Output

Returns a JSON object containing: all major DNS record types (A, AAAA, MX, NS, TXT, CAA), SPF record details with lookup count and policy outcome, DMARC policy details including percentage and reporting addresses, RDAP registration data (registrar, created/expires/updated dates, DNSSEC status, domain status flags), and an email security score (0-100) with letter grade and itemized reasons. Partial failures (individual DNS lookup errors) are flagged in a 'partial' array.

## 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": [],
     "properties": {
      "name": {
       "type": "string",
       "pattern": "^[A-Za-z0-9.-]{4,253}$",
       "description": "Public domain name, e.g. example.com (no IPs, no internal TLDs). Optional: defaults to example.com."
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object",
     "required": [
      "domain",
      "records",
      "spf",
      "dmarc",
      "rdap",
      "emailSecurity"
     ],
     "properties": {
      "spf": {
       "type": "object",
       "properties": {
        "all": {
         "enum": [
          "fail",
          "softfail",
          "neutral",
          "pass",
          null
         ],
         "type": [
          "string",
          "null"
         ]
        },
        "issues": {
         "type": "array",
         "items": {
          "type": "string"
         }
        },
        "record": {
         "type": [
          "string",
          "null"
         ]
        },
        "lookups": {
         "type": "integer"
        },
        "present": {
         "type": "boolean"
        }
       }
      },
      "rdap": {
       "type": "object",
       "properties": {
        "error": {
         "type": "string"
        },
        "found": {
         "type": "boolean"
        },
        "dnssec": {
         "type": [
          "boolean",
          "null"
         ]
        },
        "status": {
         "type": "array",
         "items": {
          "type": "string"
         }
        },
        "created": {
         "type": [
          "string",
          "null"
         ]
        },
        "expires": {
         "type": [
          "string",
          "null"
         ]
        },
        "updated": {
         "type": [
          "string",
          "null"
         ]
        },
        "registrar": {
         "type": [
          "string",
          "null"
         ]
        }
       }
      },
      "dmarc":
… (truncated)
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "spf": {
   "all": "fail",
   "issues": [],
   "lookups": 6,
   "present": true
  },
  "rdap": {
   "found": true,
   "dnssec": true,
   "status": [
    "client transfer prohibited"
   ],
   "created": "2009-02-17T22:07:54Z",
   "expires": "2033-02-17T22:07:54Z",
   "registrar": "Cloudflare, Inc."
  },
  "dmarc": {
   "pct": 100,
   "issues": [],
   "policy": "reject",
   "present": true
  },
  "domain": "cloudflare.com",
  "records": {
   "A": [
    "104.16.132.229"
   ],
   "MX": [
    {
     "host": "mxa-canary.global.inbound.cf-emailsecurity.net",
     "priority": 5
    }
   ],
   "NS": [
    "ns3.cloudflare.com"
   ],
   "CAA": [
    "0 issue digicert.com"
   ],
   "TXT": [
    "v=spf1 ip4:199.15.212.0/22 include:_spf.google.com ~all"
   ],
   "AAAA": [
    "2606:4700::6810:84e5"
   ]
  },
  "emailSecurity": {
   "score": 100,
   "letter": "A",
   "reasons": [
    "+15 SPF present",
    "+15 SPF -all",
    "+15 DMARC present",
    "+30 DMARC p=reject",
    "+5 DMARC reporting",
    "+10 CAA restricts certificate issuers",
    "+10 2+ nameservers"
   ]
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/quickbuild-domain-dns-email-security-lookup-2b7f7135/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from quickbuild.quynguyenbac.workers.dev](https://www.zero.xyz/host/quickbuild.quynguyenbac.workers.dev/llms.txt)
