Learn

Testing custom domains in a sandbox without real DNS

Use Cnamio’s sandbox to exercise a custom-domain flow with simulated DNS before using a real domain.

Published November 30, 2026 · reviewed November 30, 2026

Start with a sandbox session

An agent can call the start_sandbox MCP tool or request POST https://api.cnamio.com/v1/agent/sandbox. It returns a 30-minute session of a test application, with no account: pass its auth_token as sandboxToken to exercise the integration before a real DNS provider is involved.

start_sandbox
check_domain({ domain: 'shop.example.com', dnsRecords: [{ type: 'CNAME', host: '{SUBDOMAIN}', value: 'app.example.com' }], sandboxToken: '<sandbox token>' })
connect_domain({ domain: 'shop.example.com', dnsRecords: [{ type: 'CNAME', host: '{SUBDOMAIN}', value: 'app.example.com' }], sandboxToken: '<sandbox token>' })

Check the simulated cases

Use shop.example.com for the ordinary path. The names conflict.example.com and pending.example.com exercise a record conflict and a record that does not appear, respectively.

When the flow is ready for a real domain, follow the guide for AI agents and keep application credentials in the server environment.

Sources

Read on November 30, 2026.