# DNS Lookup via DNS-over-HTTPS (api.aventtech.com)

> DNS Lookup via DNS-over-HTTPS (api.aventtech.com) is a paid API for AI agents from api.aventtech.com, paid per call via x402, $0.02/call, status unknown (last checked 2026-10-10).

Resolves DNS records (A, AAAA, MX, TXT, CNAME, NS, SOA, CAA, SRV, PTR) for a given hostname using DNS-over-HTTPS, returning records and TTLs.

## Facts

- Endpoint: GET https://api.aventtech.com/lookup/dns?utm_source=zero.xyz
- Price: $0.02/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-10
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/dns-lookup-via-dns-over-https-api-aventtech-com-382157e4
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_yDS_NuH6rN6I61Gzgw31A

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 dns-lookup-via-dns-over-https-api-aventtech-com-382157e4
```

Example prompt: Can you look up the MX records for example.com so I can verify its mail server configuration?

## When to prefer this

Use this endpoint when an agent needs to programmatically resolve or verify DNS records for any hostname — especially for email deliverability checks (MX, SPF/TXT, DKIM), infrastructure validation (A/AAAA/CNAME/NS), certificate authority authorization (CAA), or reverse DNS (PTR). Prefer over general HTTP-based web scraping when the goal is authoritative DNS data with TTLs. Complements the sibling email deliverability and domain RDAP endpoints on the same platform.

## Known failure modes

- Hostname not found — NXDOMAIN response when the domain does not exist
- Invalid record type specified — returns error if the type parameter is not one of the supported values
- Network or resolver timeout — DNS-over-HTTPS upstream may be temporarily unavailable
- No records of requested type — domain exists but has no records of that type (empty answer)
- Malformed hostname input — error if the name parameter is not a valid DNS name

## How this service works

Look up DNS records for any hostname: query A, AAAA, MX, TXT, CNAME, NS, SOA, CAA, SRV and PTR records with TTLs over DNS-over-HTTPS. Check mail configuration (MX), SPF/DKIM/DMARC TXT records, nameservers and IP addresses. Fast, reliable DNS resolver and record lookup for domain and infrastructure verification.

## Output

Returns a list of DNS records matching the requested type for the given hostname, including record values and TTL (time-to-live) in seconds. For example, an MX lookup returns priority and mail server hostnames; a TXT lookup returns raw text strings useful for SPF/DKIM/DMARC verification.

## 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",
       "description": "Hostname to resolve"
      },
      "type": {
       "type": "string",
       "description": "Record type (default A): A, AAAA, MX, TXT, CNAME, NS, SOA, CAA, SRV, PTR"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "name": "example.com",
  "type": "MX",
  "status": "NOERROR",
  "answers": [
   {
    "ttl": 300,
    "data": "0 mail.example.com.",
    "name": "example.com"
   }
  ]
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/dns-lookup-via-dns-over-https-api-aventtech-com-382157e4/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.aventtech.com](https://www.zero.xyz/host/api.aventtech.com/llms.txt)
