Automation · DNS & TLS Reference

Dynamic DNS (DDNS) vs Programmatic API DNS Explained

Legacy DDNS only updates one IP. API and MCP DNS creates hostnames, records, ACME tokens, and proxies.

Record Type A
Sub-Label @
Default TTL 300s Auto
MCP Tool add_dns_record
DNS Record Anatomy — Dynamic DNS (DDNS) vs Programmatic API DNS HOST myapp.agentdomains.co Sub-label: @ TYPE A TTL 300s Auto cache TARGET 203.0.113.10 Returned by 1.1.1.1 & 8.8.8.8 Authoritative zone: Cloudflare Edge DNS · Manage via Go CLI, REST API, or MCP tool

Exact DNS wire fields: HOST identifies the label, TYPE picks the record format, TTL sets cache duration, TARGET holds the answer.

1. Engineering Breakdown

Legacy DDNS assumes you already created one hostname and only need IP updates. API and MCP DNS lets agents check names, claim labels, write records, and clean up automatically.

Common Pitfalls

2. Interactive DNS Record Syntax Validator

Edit the record type, host label, or value below to validate syntax and build your CLI command.

Validate DNS syntax & generate AgentDomains CLI Query Live DoH Resolvers →
Validated CLI command

        

3. Exact CLI, curl & MCP JSON-RPC Payloads

Pick your preferred interface below and copy the working payload.

CLI command
agentdomains record homebox --type A --content "$(curl -s https://api.ipify.org)"
REST API via curl
curl -X POST https://api.agentdomains.co/v1/subdomains/homebox/records \
  -H "Authorization: Bearer $AGENTDOMAINS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"type":"A","content":"203.0.113.10"}'
POST https://mcp.agentdomains.co (add_dns_record)
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "add_dns_record",
    "arguments": {
      "label": "homebox",
      "type": "A",
      "content": "203.0.113.10"
    }
  }
}

Frequently asked questions

What is Dynamic DNS vs API DNS?

Legacy DDNS only updates one IP. API and MCP DNS creates hostnames, records, ACME tokens, and proxies.

How do I automate Dynamic DNS (DDNS) vs Programmatic API DNS with AgentDomains?

Use the Go CLI snippet above, send a REST curl call, or invoke add_dns_record on https://mcp.agentdomains.co.

Related DNS & SSL Guides

Automation

Programmatic REST DNS APIs for Agents

Design patterns for idempotent agent DNS automation: atomic claim+record, 409 owned:true handling, and clean teardown.

Advanced DNS

CNAME Flattening Explained

See how edge resolvers flatten CNAME chains into A/AAAA answers and when plain CNAMEs work fine.

Security

Preventing Dangling Subdomain Takeovers

Delete your DNS records or proxy before you destroy your Fly.io, Railway, Heroku, or S3 origin.

SSL / ACME

TLS SNI (Server Name Indication)

Learn how TLS SNI lets one IPv4 server or edge node serve hundreds of HTTPS domains.

30 Days Free · No Card Required

Claim your agent domain now

Start with 10 free HTTPS domains under agentdomains.co or makes.fyi for 30 days. Upgrade to Pro for $10/year to keep up to 100 names with visitor stats.