CNAME Flattening Explained Explained
See how edge resolvers flatten CNAME chains into A/AAAA answers and when plain CNAMEs work fine.
Exact DNS wire fields: HOST identifies the label, TYPE picks the record format, TTL sets cache duration, TARGET holds the answer.
1. Engineering Breakdown
CNAME flattening resolves the target at the authoritative server and returns the final IP. That enables apex aliasing and saves lookup hops. Subdomains like myapp.makes.fyi already support standard CNAMEs everywhere.
Common Pitfalls
- When you run
digon a flattened CNAME, you may see A records instead of a CNAME hop.
2. Interactive DNS Record Syntax Validator
Edit the record type, host label, or value below to validate syntax and build your CLI command.
3. Exact CLI, curl & MCP JSON-RPC Payloads
Pick your preferred interface below and copy the working payload.
agentdomains record myapp --type CNAME --content myapp.fly.dev
curl -X POST https://api.agentdomains.co/v1/subdomains/myapp/records \
-H "Authorization: Bearer $AGENTDOMAINS_API_KEY" \
-H "Content-Type: application/json" \
-d '{"type":"CNAME","content":"myapp.fly.dev"}'
{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "add_dns_record",
"arguments": {
"label": "myapp",
"type": "CNAME",
"content": "myapp.fly.dev"
}
}
}
Frequently asked questions
What is CNAME Flattening?
See how edge resolvers flatten CNAME chains into A/AAAA answers and when plain CNAMEs work fine.
How do I automate CNAME Flattening Explained 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
NS Subdomain Delegation
Delegate your subdomain tree (*.myapp.makes.fyi) to your own nameservers. Run custom MX, SRV, and DNSSEC records.
Preventing Dangling Subdomain Takeovers
Delete your DNS records or proxy before you destroy your Fly.io, Railway, Heroku, or S3 origin.
SSL / ACMETLS SNI (Server Name Indication)
Learn how TLS SNI lets one IPv4 server or edge node serve hundreds of HTTPS domains.
Edge RoutingX-Forwarded-For & Proxy Headers
Configure Express, FastAPI, Django, and Rails to trust X-Forwarded-Proto and X-Forwarded-For behind edge TLS proxies.
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.