Preventing Dangling Subdomain Takeovers Explained
Delete your DNS records or proxy before you destroy your Fly.io, Railway, Heroku, or S3 origin.
Exact DNS wire fields: HOST identifies the label, TYPE picks the record format, TTL sets cache duration, TARGET holds the answer.
1. Engineering Breakdown
A dangling takeover happens when DNS still points to a deleted cloud app. Someone else can claim that origin name and serve content on your subdomain. Always delete DNS first, then destroy compute.
Common Pitfalls
- In CI PR teardown jobs, put
agentdomains deleteBEFOREfly apps destroyso no dangling window ever exists.
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 delete myapp
curl -X DELETE https://api.agentdomains.co/v1/subdomains/myapp \
-H "Authorization: Bearer $AGENTDOMAINS_API_KEY"
{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "delete_domain",
"arguments": {
"label": "myapp"
}
}
}
Frequently asked questions
What is Subdomain Takeover?
Delete your DNS records or proxy before you destroy your Fly.io, Railway, Heroku, or S3 origin.
How do I automate Preventing Dangling Subdomain Takeovers with AgentDomains?
Use the Go CLI snippet above, send a REST curl call, or invoke delete_domain on https://mcp.agentdomains.co.
Related DNS & SSL Guides
Hiding Your Origin Behind an Edge Proxy
See how agentdomains proxy handles visitor traffic at the edge and keeps your backend address private.
TLS 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.
Mapping Port 443 to Custom App Ports
Turn http://203.0.113.10:8080 or :3000 into a clean https://myapp.makes.fyi URL without ugly port numbers in links.
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.