Edge Routing · DNS & TLS Reference

Mapping Port 443 to Custom App Ports Explained

Turn http://203.0.113.10:8080 or :3000 into a clean https://myapp.makes.fyi URL without ugly port numbers in links.

Record Type A
Sub-Label @
Default TTL 300s Auto
MCP Tool add_dns_record
DNS Record Anatomy — Mapping Port 443 to Custom App Ports 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

DNS records do not store HTTP port numbers. Browsers always hit port 443 for HTTPS. Run Caddy or Nginx on port 443 to forward to local ports, or use agentdomains proxy.

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 myapp --type A --content 203.0.113.10
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":"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": "myapp",
      "type": "A",
      "content": "203.0.113.10"
    }
  }
}

Frequently asked questions

What is Port 443 Reverse Proxying?

Turn http://203.0.113.10:8080 or :3000 into a clean https://myapp.makes.fyi URL without ugly port numbers in links.

How do I automate Mapping Port 443 to Custom App Ports 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

Edge Routing

Reverse Proxy vs URL Forwarding

Reverse proxy (set_proxy) serves your origin under your domain with HTTPS. URL forwarding (set_forward) sends a 301 or 302 redirect.

Edge Routing

301 vs 302 HTTP Redirects

302 is temporary and easy to change (our default). 301 is permanent and browsers cache it hard.

Edge Routing

Cloudflare Edge TLS & HTTPS

See how set_proxy handles TLS 1.3 at the edge and forwards traffic to your origin hostname.

Edge Routing

CORS Behind a Reverse Proxy

Configure Access-Control-Allow-Origin and OPTIONS preflight handling cleanly when your API sits behind an edge reverse 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.