# Create DNS Record

> Create DNS Record is a free API for AI agents from domains.rapidruntime.com, callable via MPP, Free, status unknown (last checked 2026-10-06).

Creates a new DNS record (A, AAAA, CNAME, MX, TXT, etc.) for a domain managed through the RapidRuntime domains API

## Facts

- Endpoint: POST https://domains.rapidruntime.com/api/v1/domains/{domain}/dns?utm_source=zero.xyz
- Price: Free
- Payment: MPP
- Status: unknown
- Last checked: 2026-10-06
- Activations on Zero: 0
- Provider: domains.rapidruntime.com
- Website: https://domains.rapidruntime.com
- Canonical page: https://www.zero.xyz/c/domains-rapidruntime-com-create-dns-record-7a993aeb
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_MJtRfIZJLfXgWrU3OqkTj

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 domains-rapidruntime-com-create-dns-record-7a993aeb -d '<json body>'
```

Example prompt: Add an A record to example.com pointing the subdomain 'app' to IP address 203.0.113.42 with a TTL of 300 seconds.

## When to prefer this

Use this endpoint when you need to programmatically add DNS records to a domain already registered and managed through the RapidRuntime/MPP platform. Ideal for automating DNS configuration during server provisioning, subdomain setup, email routing, or domain verification workflows within the RapidRuntime ecosystem.

## Known failure modes

- Domain not found or not owned by caller — 404 or 403 error
- Missing required fields (type, host, or answer) — 400 validation error
- Invalid record type (not in allowed enum) — 400 error
- TTL below minimum of 300 — validation error
- MX or SRV record missing required priority field — 400 error
- Invalid answer format for the given record type (e.g. non-IP for A record) — 400 error
- Duplicate record conflict — 409 or similar error

## How this service works

Create a DNS record

## Output

Returns the newly created DNS record object including its assigned ID, FQDN, host, record type, answer value, TTL, priority, and domain name — confirming the record was successfully created.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "required": [
  "type",
  "host",
  "answer"
 ],
 "properties": {
  "ttl": {
   "type": "number",
   "minimum": 300,
   "description": "TTL in seconds (min 300)"
  },
  "host": {
   "type": "string",
   "description": "Relative hostname (use \"\" for apex)"
  },
  "type": {
   "enum": [
    "A",
    "AAAA",
    "ANAME",
    "CNAME",
    "MX",
    "NS",
    "SRV",
    "TXT"
   ],
   "type": "string",
   "description": "Record type"
  },
  "answer": {
   "type": "string",
   "description": "Record value"
  },
  "priority": {
   "type": "number",
   "description": "Priority (required for MX and SRV)"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "object",
 "required": [
  "host",
  "type",
  "answer"
 ],
 "properties": {
  "id": {
   "type": "number"
  },
  "ttl": {
   "type": "number"
  },
  "fqdn": {
   "type": "string"
  },
  "host": {
   "type": "string"
  },
  "type": {
   "type": "string"
  },
  "answer": {
   "type": "string"
  },
  "priority": {
   "type": "number"
  },
  "domainName": {
   "type": "string"
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/domains-rapidruntime-com-create-dns-record-7a993aeb/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from domains.rapidruntime.com](https://www.zero.xyz/host/domains.rapidruntime.com/llms.txt)
