# IMAPS SRV Record Lookup (DNS over HTTPS)

> IMAPS SRV Record Lookup (DNS over HTTPS) is a paid API for AI agents from dns.intel.rallylive.ca, paid per call via x402, $0.01/call, status unknown (last checked 2026-10-02).

Looks up _imaps._tcp SRV DNS records for a domain via Cloudflare DoH, returning the priority, weight, port, and target host of the domain's IMAPS service.

## Facts

- Endpoint: GET https://dns.intel.rallylive.ca/dns/srv/imaps-tcp?utm_source=zero.xyz
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-02
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/imaps-srv-record-lookup-dns-over-https-5bff2fc8
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_PwkWjONQJ9AlSqVq7VkoE

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 imaps-srv-record-lookup-dns-over-https-5bff2fc8
```

Example prompt: Can you look up the _imaps._tcp SRV record for gmail.com and tell me what host, port, priority, and weight the IMAPS service is configured to use?

## When to prefer this

Use this endpoint when you need to programmatically discover where a domain's IMAPS (secure IMAP) service is hosted without guessing hostnames — especially for email client auto-configuration, infrastructure audits, or verifying DNS changes. Prefer this over manual DNS queries or general-purpose DNS resolvers when you need a structured SRV response that includes priority, weight, port, and target in one call.

## Known failure modes

- Domain has no _imaps._tcp SRV record — returns empty or NXDOMAIN response
- Invalid or malformed domain name input
- Cloudflare DoH upstream timeout or unreachable
- Domain exists but SRV record is misconfigured or points to '.' (no service)

## How this service works

IMAPS service discovery (_imaps._tcp.<domain>): SRV records with priority, weight, port and target host, from Cloudflare DoH. Tells a client where the domain's imaps service lives without guessing hosts. $0.01 per lookup.

## Output

Returns SRV DNS record data for the _imaps._tcp service of the queried domain, including the priority (used to select between multiple records), weight (for load balancing), port number (typically 993 for IMAPS), and the target hostname of the IMAPS server, as resolved via Cloudflare DNS over HTTPS.

## 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",
     "properties": {}
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/imaps-srv-record-lookup-dns-over-https-5bff2fc8/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from dns.intel.rallylive.ca](https://www.zero.xyz/host/dns.intel.rallylive.ca/llms.txt)
