API and AI agents
Test DNS from your code or your assistant
Free public REST API, OpenAPI specification and MCP server. No sign-up, no API key.
REST API
One request, one result
Ask for the domain and get the score, the problems and every check as JSON. The test takes 10 to 60 seconds; the response waits for it.
# test a domain and wait for the result (messages in English) curl https://zona.pt/api/v1/domains/example.com?lang=en # warnings and errors only, in Portuguese curl "https://zona.pt/api/v1/domains/example.com?min_level=WARNING&lang=pt" # start a test and fetch it later curl -X POST https://zona.pt/api/v1/tests -H "Content-Type: application/json" -d '{"domain": "example.com"}' curl "https://zona.pt/api/v1/tests/ID?wait=60&lang=en"
/api/v1/domains/{domain}Runs the test and returns the result. Reuses a test of the same domain finished in the last 10 minutes; fresh=true forces a new one.
/api/v1/testsStarts a test with {"domain": "example.com"} and returns its id immediately.
/api/v1/tests/{id}Status and result of a test. wait=60 waits up to 60 seconds for it to finish.
/api/v1/testcasesList of test cases, with area and description.
Common parameters
lang:pt(default) oren, for names and messages.min_level: lowest level included inentries(INFO,NOTICE,WARNING,ERROR,CRITICAL). Problems (warning or above) always come inproblems.
What the response contains
score (0 to 100) and grade, categories (connectivity, DNSSEC, server health, zone consistency), summary (messages per level), problems, entries, nameservers (response times), best_practices and result_url, the report to open in a browser.
Full specification: OpenAPI 3.1 (JSON) and interactive documentation.
MCP server
Connect zona.pt to your assistant
The assistant requests the test, reads the result and explains what needs fixing. The server address is the same for every client.
Claude (claude.ai, Claude Desktop, Cowork)
Settings → Connectors → Add custom connector, with the URL:
https://zona.pt/mcp
Claude Code
claude mcp add --transport http zona https://zona.pt/mcp
ChatGPT
Settings → Apps and connectors → developer mode → Create, with the MCP server URL:
https://zona.pt/mcp
Cursor, Codex and other MCP clients
{"mcpServers": {"zona": {"url": "https://zona.pt/mcp"}}}Or paste this into your assistant
Read https://zona.pt/llms.txt and use zona.pt to test my domain’s DNS.
MCP tools
test_dns_zone: runs the full test on a domain and returns the score, the problems and the notices.get_dns_test: fetches a test byidor by its report link.list_dns_testcases: lists the test cases, with area and description.
Terms
Free and without sign-up
- No account, no API key, no cost.
- Limit of 10 new tests per IP address every 10 minutes; reading existing tests does not count.
- Results stay available for 30 days, only to whoever has the
idor the link. - Requests from any origin (open CORS), over HTTPS.
- For higher volumes or regular monitoring, talk to us: support@sooma.com.