Zone Transfer Check API
developer/v1/dns/zone-transferAttempts real AXFR zone transfers and reports exposed records, explicit refusal and inconclusive outcomes separately. A network error or unsupported DNS response is not classified as a secure refusal.
What It Does
Connects directly to authoritative nameservers over TCP/53 and validates AXFR framing and matching opening/closing SOA records. Exposed partial transfers remain findings; only explicit REFUSED/NOTAUTH responses count as refusal. Returns completion state, per-server evidence and remediation advice.
Why It's Useful
Most AXFR tools stop at "vulnerable yes/no", but the severity of an exposed zone depends entirely on what's in it — a leaked zone full of SPF includes and verification tokens is much worse than one with mostly CNAME glue. The record-type breakdown turns "you're vulnerable" into "your TXT records are leaking; here's exactly what's exposed". The NSEC cross-reference catches a frequently-missed case where AXFR is correctly refused but enumeration is still possible. The provider-keyed remediation makes the fix concrete instead of generic.
Use Cases
Security Assessment
During reconnaissance, test for zone transfer to discover all subdomains and internal hosts.
Quickly map the complete DNS infrastructure if zone transfer is allowed.
DNS Security Audit
Audit organization DNS servers to ensure zone transfers are restricted.
Identify and remediate zone transfer vulnerabilities before attackers exploit them.
Compliance Verification
Verify DNS servers meet CIS benchmark requirements for zone transfer restrictions. Document AXFR controls for SOC 2, ISO 27001, and NIST SP 800-81 compliance.
Demonstrate DNS security controls with specific compliance framework evidence.
Parameters
| Name | Location | Type | Required | Description |
|---|---|---|---|---|
domain | query | string | Required | The domain to test zone transfer forExample: example.com |
Response Fields
Result fields below are inside the JSON data object. Any row named meta describes the sibling response metadata object. See response and error handling for status codes and error responses. Optional observations may be absent or null; inspect warnings and partial-failure fields before treating a missing result as a negative finding.
| Field | Type | Description |
|---|---|---|
domain | string | The queried domain |
is_vulnerable | boolean | Whether any nameserver allows zone transfer |
vulnerable | array | Nameservers that allow zone transfer |
not_vulnerable | array | Nameservers that properly refuse zone transfer |
timeout | array | Nameservers that timed out during AXFR testing |
records_exposed | number | Total DNS records exposed across all vulnerable servers |
details | array | Per-server AXFR test results with status, record_count, sample_records (owner names), record_type_counts (per-RR-type), response time, and transaction-ID verification |
record_type_summary | object | Aggregated record-type counts across all vulnerable nameservers (e.g., { A: 142, CNAME: 38, TXT: 17, MX: 4 }) |
high_sensitivity_types_present | array | Subset of record_type_summary keys flagged as high-impact when leaked: TXT (SPF includes, verification tokens), CAA (issuance policy), SRV (service topology), TLSA |
remediation_snippets | array | Provider-keyed `allow-transfer` config snippets when vulnerable: BIND named.conf, PowerDNS pdns.conf, NSD, Knot, plus Cloudflare / Route 53 notes |
alternative_enumeration_risks | object | { nsec_walkable: boolean|null, detail } — bounded NSEC observations; unavailable evidence stays null. Does not claim exhaustive enumeration or application access. |
recommendations | array | Security hardening recommendations (TSIG, ACLs, TLS) |
truncated | boolean | Whether testing was limited to a subset of nameservers (max 5 tested) |
total_nameservers | number | Total number of nameservers for the domain |
measurement_complete | boolean | Whether all covered nameservers yielded conclusive transfer outcomes. |
verdict | string | Aggregate vulnerable, not-exposed or inconclusive outcome; connection errors do not prove refusal. |
nameservers | array | Nameservers selected for authoritative AXFR attempts. |
inconclusive | number | Number of probes without a conclusive transfer verdict. |
Code Examples
Replace YOUR_API_KEY with your API key. This endpoint requires the developer plan or higher; see plans and usage limits.
curl --request GET 'https://api.edgedns.dev/v1/dns/zone-transfer?domain=example.com' \
--header "Authorization: Bearer YOUR_API_KEY"const response = await fetch(
"https://api.edgedns.dev/v1/dns/zone-transfer?domain=example.com",
{
"method": "GET",
"headers": {
"Authorization": "Bearer YOUR_API_KEY"
}
}
);
if (!response.ok) {
throw new Error(`EdgeDNS returned HTTP ${response.status}`);
}
const data = await response.json();
console.log(data);import requests
response = requests.request(
'GET',
"https://api.edgedns.dev/v1/dns/zone-transfer?domain=example.com",
headers={'Authorization': 'Bearer YOUR_API_KEY'},
timeout=60,
)
response.raise_for_status()
data = response.json()
print(data)Read the full Zone Transfer Check guide
Learn the concepts, choose a practical workflow, and interpret the observations from Zone Transfer Check before acting on them. Run supported checks via MCP or through REST.
Read the guide →Related Endpoints
External References
Learn more about the standards and protocols behind this endpoint.
Try This Endpoint
Test the Zone Transfer Check endpoint live in the playground.