SSL / ACME · DNS & TLS Reference

HTTP-01 vs DNS-01 SSL Validation Explained

Compare HTTP-01 (port 80) and DNS-01 (_acme-challenge TXT) for Let’s Encrypt TLS. Or skip both with edge proxy.

Record Type TXT
Sub-Label _acme-challenge
Default TTL 300s Auto
MCP Tool add_acme_challenge
DNS Record Anatomy — HTTP-01 vs DNS-01 SSL Validation HOST _acme-challenge.myapp.agentdomains.co Sub-label: _acme-challenge TYPE TXT TTL 300s Auto cache TARGET acme-dns01-token-example 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

HTTP-01 serves a file on TCP port 80. It works well on public VPS servers running Caddy or Nginx. DNS-01 checks a TXT record instead. Use DNS-01 for wildcards, private servers, or blocked port 80. For PaaS origins like app.fly.dev, agentdomains proxy handles edge TLS 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 txt myapp "acme-dns01-token-example"
REST API via curl
curl -X POST https://api.agentdomains.co/v1/subdomains/myapp/records \
  -H "Authorization: Bearer $AGENTDOMAINS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"type":"TXT","host":"_acme-challenge","content":"acme-dns01-token-example"}'
POST https://mcp.agentdomains.co (add_acme_challenge)
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "add_acme_challenge",
    "arguments": {
      "label": "myapp",
      "value": "acme-dns01-token-example"
    }
  }
}

Frequently asked questions

What is HTTP-01 vs DNS-01?

Compare HTTP-01 (port 80) and DNS-01 (_acme-challenge TXT) for Let’s Encrypt TLS. Or skip both with edge proxy.

How do I automate HTTP-01 vs DNS-01 SSL Validation with AgentDomains?

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

Related DNS & SSL Guides

SSL / ACME

ACME DNS-01 Challenge

Prove domain control to Let’s Encrypt with a TXT record at _acme-challenge.<hostname>. Works behind NAT and for wildcards.

SSL / ACME

Wildcard SSL on Subdomains

Issue a single *.myapp.makes.fyi TLS certificate covering unlimited deeper sub-labels (a.myapp.makes.fyi, b.myapp.makes.fyi) via ACME DNS-01.

SSL / ACME

Let’s Encrypt Rate Limits on Subdomains

Avoid Let’s Encrypt weekly rate limits. Test with staging ACME first, or use AgentDomains edge proxy.

SSL / ACME

Caddy Server with DNS-01 & Subdomains

Run Caddy automatic HTTPS on an AgentDomains A record with HTTP-01 or DNS-01 via agentdomains txt.

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.