Advanced DNS · DNS & TLS Reference

NS Subdomain Delegation Explained

Delegate your subdomain tree (*.myapp.makes.fyi) to your own nameservers. Run custom MX, SRV, and DNSSEC records.

Record Type NS
Sub-Label @
Default TTL 300s Auto
MCP Tool delegate_nameservers
DNS Record Anatomy — NS Subdomain Delegation HOST myapp.agentdomains.co Sub-label: @ TYPE NS TTL 300s Auto cache TARGET ns1.desec.io 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

NS delegation tells recursive resolvers to ask your chosen authoritative nameservers for myapp.makes.fyi and every label beneath it. Once delegated, you manage MX, SRV, CAA, and arbitrary deep subtrees directly on your own DNS provider.

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 ns myapp ns1.desec.io ns2.desec.org
REST API via curl
curl -X PUT https://api.agentdomains.co/v1/subdomains/myapp/ns \
  -H "Authorization: Bearer $AGENTDOMAINS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"nameservers":["ns1.desec.io","ns2.desec.org"]}'
POST https://mcp.agentdomains.co (delegate_nameservers)
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "delegate_nameservers",
    "arguments": {
      "label": "myapp",
      "nameservers": [
        "ns1.desec.io",
        "ns2.desec.org"
      ]
    }
  }
}

Frequently asked questions

What is NS Subdomain Delegation?

Delegate your subdomain tree (*.myapp.makes.fyi) to your own nameservers. Run custom MX, SRV, and DNSSEC records.

How do I automate NS Subdomain Delegation with AgentDomains?

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

Related DNS & SSL Guides

Advanced DNS

CNAME Flattening Explained

See how edge resolvers flatten CNAME chains into A/AAAA answers and when plain CNAMEs work fine.

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.

DNS Fundamentals

TTL and DNS Propagation

Learn why new DNS records go live in seconds and how resolver TTL caches cause stale answers.

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.