Skip to main content

Zone Transfer Check API

developer
GET/v1/dns/zone-transfer

Attempts 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

Penetration Tester

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.

Security Engineer

DNS Security Audit

Audit organization DNS servers to ensure zone transfers are restricted.

Identify and remediate zone transfer vulnerabilities before attackers exploit them.

Compliance Officer

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

NameLocationTypeRequiredDescription
domainquerystringRequiredThe 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.

FieldTypeDescription
domainstringThe queried domain
is_vulnerablebooleanWhether any nameserver allows zone transfer
vulnerablearrayNameservers that allow zone transfer
not_vulnerablearrayNameservers that properly refuse zone transfer
timeoutarrayNameservers that timed out during AXFR testing
records_exposednumberTotal DNS records exposed across all vulnerable servers
detailsarrayPer-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_summaryobjectAggregated record-type counts across all vulnerable nameservers (e.g., { A: 142, CNAME: 38, TXT: 17, MX: 4 })
high_sensitivity_types_presentarraySubset of record_type_summary keys flagged as high-impact when leaked: TXT (SPF includes, verification tokens), CAA (issuance policy), SRV (service topology), TLSA
remediation_snippetsarrayProvider-keyed `allow-transfer` config snippets when vulnerable: BIND named.conf, PowerDNS pdns.conf, NSD, Knot, plus Cloudflare / Route 53 notes
alternative_enumeration_risksobject{ nsec_walkable: boolean|null, detail } — bounded NSEC observations; unavailable evidence stays null. Does not claim exhaustive enumeration or application access.
recommendationsarraySecurity hardening recommendations (TSIG, ACLs, TLS)
truncatedbooleanWhether testing was limited to a subset of nameservers (max 5 tested)
total_nameserversnumberTotal number of nameservers for the domain
measurement_completebooleanWhether all covered nameservers yielded conclusive transfer outcomes.
verdictstringAggregate vulnerable, not-exposed or inconclusive outcome; connection errors do not prove refusal.
nameserversarrayNameservers selected for authoritative AXFR attempts.
inconclusivenumberNumber 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
curl --request GET 'https://api.edgedns.dev/v1/dns/zone-transfer?domain=example.com' \
  --header "Authorization: Bearer YOUR_API_KEY"
JavaScript
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);
Python
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.

    Zone Transfer Check API Reference | EdgeDNS