# Yog x402 DNS & TLS Inspection

> Yog x402 DNS & TLS Inspection is a paid API for AI agents from api.gosyog.lol, paid per call via x402, $0.02/call, status unknown (last checked 2026-09-29).

Resolves a hostname's DNS and inspects its TLS certificate, returning IP addresses, issuer info, expiry status, and pass/fail flags for DNS and TLS.

## Facts

- Endpoint: POST https://api.gosyog.lol/api/service/yog/dns_tls_inspection?utm_source=zero.xyz
- Price: $0.02/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-29
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/yog-x402-dns-tls-inspection-f607361f
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_i3zVcfs8Vo72keZFOnLJ4

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 yog-x402-dns-tls-inspection-f607361f -d '<json body>'
```

Example prompt: Can you check whether api.example.com has valid DNS and a non-expired TLS certificate on port 443?

## When to prefer this

Choose this endpoint when you need a single API call that returns both DNS resolution status and TLS certificate details (issuer, expiry) together, especially in infrastructure health checks, pre-deployment validation, or automated monitoring pipelines paid via USDC microtransactions on Base via x402.

## Known failure modes

- Hostname does not exist or fails DNS resolution — dns_ok returns false
- TLS handshake fails or certificate is invalid — tls_ok returns false
- Certificate is expired — is_expired returns true in TLS details
- Non-standard port is unreachable — connection timeout or refusal
- Malformed hostname input — possible 400 error or failed resolution

## How this service works

Yog x402 is a paid LLM-as-a-service API with three text capabilities plus a free-tier liveness ping, all paid via x402 USDC on Base. classify_text ($0.01) classifies text into one of your supplied labels — sentiment tagging, routing support tickets, labeling data for ML pipelines. json_repair ($0.02) fixes malformed/messy text into valid JSON — cleaning up LLM output or scraped JSON that's slightly malformed before further processing. extract_fields ($0.03) pulls named fields from source text and will not fabricate values — structured extraction from unstructured text (name/date/amount from invoices or emails).

## Output

Returns a JSON object with: a top-level 'ok' boolean, 'dns_ok' (whether the hostname resolved), 'tls_ok' (whether TLS handshake succeeded), the resolved IP addresses array, and TLS details including the issuer's common name and whether the certificate is expired.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "port": {
   "type": "integer",
   "description": "TLS port (default 443)."
  },
  "hostname": {
   "type": "string",
   "description": "Hostname to resolve and TLS-inspect."
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "ok": true,
  "result": {
   "tls": {
    "issuer": {
     "commonName": "..."
    },
    "is_expired": false
   },
   "dns_ok": true,
   "tls_ok": true,
   "hostname": "example.com",
   "addresses": [
    "93.184.216.34"
   ]
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/yog-x402-dns-tls-inspection-f607361f/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.gosyog.lol](https://www.zero.xyz/host/api.gosyog.lol/llms.txt)
