SSL / ACME · DNS & TLS Reference

HSTS and Subdomain Security Explained

Learn how HSTS enforces HTTPS and why you should skip includeSubDomains until every sub-label has TLS.

Record Type A
Sub-Label @
Default TTL 300s Auto
MCP Tool get_domain
DNS Record Anatomy — HSTS and Subdomain Security 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

HSTS tells browsers to automatically upgrade all http:// requests to https:// for max-age seconds, preventing SSL-stripping attacks. Start with a short max-age=300 while testing your Caddy/Nginx TLS config before extending to 31536000.

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
curl -sI https://myapp.makes.fyi | grep -i strict-transport-security
REST API via curl
curl -sI https://myapp.makes.fyi
POST https://mcp.agentdomains.co (get_domain)
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "get_domain",
    "arguments": {
      "label": "myapp"
    }
  }
}

Frequently asked questions

What is HTTP Strict Transport Security (HSTS)?

Learn how HSTS enforces HTTPS and why you should skip includeSubDomains until every sub-label has TLS.

How do I automate HSTS and Subdomain Security with AgentDomains?

Use the Go CLI snippet above, send a REST curl call, or invoke get_domain 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

HTTP-01 vs DNS-01 SSL Validation

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

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.

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.