Skip to main content
Guides/DNS Records

Zone Transfer Check: Understand and Use the Results

Test for DNS zone transfer vulnerability

EdgeDNS Team·Updated ·6 min read

Zone transfers: AXFR exposure and the NSEC-walking caveat

A zone transfer (technically AXFR — Asynchronous Full Transfer Zone, RFC 5936) is a DNS feature designed for backing up an entire DNS zone from one authoritative nameserver to another. In the original 1983 design, secondary nameservers stayed in sync by periodically asking the primary for a complete copy of the zone. AXFR was the mechanism. It was designed at a time when nameserver replication was a friendly operation between trusted servers on a friendly internet, and there was no thought given to the security implications of outsiders being able to ask the same question.

You should care because on the modern internet, an open zone transfer is a security finding. If your nameservers respond to AXFR from anyone, an attacker gets a complete dump of every DNS record in your zone — every subdomain, every internal hostname, every test environment, every email gateway, every legacy system. The treasure-map nature of the leak is what makes AXFR exposure a critical-severity issue.

Severity depends on what's in the zone. A leaked zone of mostly CNAME glue is bad but not catastrophic. A zone with TXT, CAA, SRV, or TLSA records is much worse — TXT typically holds SPF includes, DKIM keys, and verification tokens (revealing every third-party SaaS the org uses); CAA reveals certificate-issuance policy; SRV reveals service topology. A modern check reports the record-type breakdown, not just "records exposed: 247."

Refusing AXFR isn't enough — NSEC walking still leaks. A zone that correctly refuses AXFR can still be enumerable if it's DNSSEC-signed with legacy NSEC rather than NSEC3 (RFC 5155). Each NSEC record points to the next existing name in the zone, alphabetically. Asking for a non-existent name returns the NSEC chain that brackets it; ask enough negative questions and you walk the entire zone. NSEC3 hashes the names before chaining, making walking computationally hard (RFC 9276 gives the modern parameter guidance). A complete check therefore tests both AXFR exposure and whether NSEC walking is feasible — refusing one without the other is a false sense of security.

The five things a real zone-transfer check looks at:

  • Is AXFR allowed from arbitrary sources? Connect to each authoritative NS on TCP port 53 and send an AXFR request. RCODE=0 with records returned means the zone leaks.

  • Have all NSes been verified? It's common to harden the primary and forget the secondaries.

  • What does the leaked zone contain? Record-type counts (A, MX, TXT, CNAME, CAA, SRV, etc.). High-sensitivity types (TXT, CAA, SRV, TLSA) sharply elevate severity.

  • Is NSEC walking feasible? Even if AXFR is refused, the zone may still be fully enumerable via legacy NSEC.

  • Provider-specific remediation. Hosted providers (Cloudflare, Route 53) refuse AXFR by default; the most common findings are on self-hosted BIND, PowerDNS, NSD, and Knot — each has a different `allow-transfer` syntax.

Three questions a zone-transfer check answers:

  • Is any nameserver leaking the entire zone to anyone who asks?

  • If AXFR is refused, is the zone also protected against NSEC walking — or is enumeration still trivial?

  • What kinds of records are in the zone, and how sensitive is the leak?

The cost of an open zone transfer is silent reconnaissance: an attacker gets a free map. The fix is one configuration change per nameserver — and on hosted providers it's already the default. The most-missed corollary is the NSEC-walking check: closing AXFR without addressing NSEC3 parameters leaves the door half open.

The Zone Transfer Check endpoint, in plain language

Test for DNS (Domain Name System) zone transfer vulnerability

Most AXFR (Asynchronous Full Transfer Zone) 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 (Sender Policy Framework) includes and verification tokens is much worse than one with mostly CNAME (Canonical Name record) 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.

What is actually happening when you call it

Connects directly to authoritative nameservers over TCP/53 and validates AXFR (Asynchronous Full Transfer Zone) 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 this specific tool matters

Choose a task: Security Assessment. During reconnaissance, test for zone transfer to discover all subdomains and internal hosts.

Run the Zone Transfer Check request below and retain the input and observed result. Before changing configuration, compare the relevant fields with the value or policy you expected. Use the Zone Transfer Check reference to check the field definitions and supported options.

Info:

Available on the developer plan. The technical details: `GET /v1/dns/zone-transfer`.

When would I actually use this?

Security Assessment

During reconnaissance, test for zone transfer to discover all subdomains and internal hosts.

Use the finding: Quickly map the complete DNS (Domain Name System) infrastructure if zone transfer is allowed.

DNS Security Audit

Audit organization DNS (Domain Name System) servers to ensure zone transfers are restricted.

Use the finding: Identify and remediate zone transfer vulnerabilities before attackers exploit them.

Compliance Verification

Verify DNS (Domain Name System) servers meet CIS benchmark requirements for zone transfer restrictions. Document AXFR (Asynchronous Full Transfer Zone) controls for SOC 2 (Service Organization Control 2), ISO 27001 (ISO/IEC 27001 information security management standard), and NIST SP 800-81 compliance.

Use the finding: Demonstrate DNS (Domain Name System) security controls with specific compliance framework evidence.

The easiest way: just ask your AI assistant

Connect the MCP server. Just ask in plain English:

Use dns_zone_transfer with domain=example.com. Show the returned findings, identify unavailable evidence, and explain a useful next check.

Confirm the tool and inputs in the client before accepting its summary. For Zone Transfer Check, use the response fields below to separate observations from recommendations.

Tip:

The dedicated MCP server is available on every plan. Individual tool access and request limits depend on your plan. Management categories and endpoints disabled for the tool catalog are not exposed through MCP.

The technical way: call it from code

This Zone Transfer Check request uses the example inputs from its API contract. Replace YOUR_API_KEY with a key on the developer plan or higher; adapt the target to your task.

bash
curl --request GET 'https://api.edgedns.dev/v1/dns/zone-transfer?domain=example.com' \
  --header "Authorization: Bearer YOUR_API_KEY"

Prepare inputs for Zone Transfer Check

Start with the inputs below. Keep the same hostname, path, and options when comparing Zone Transfer Check observations. The API reference contains the complete parameter contract, optional settings, and access requirements.

FieldTypeRequired?What it meansExample

domain

string

Yes

The domain to test zone transfer for

example.com

Interpret Zone Transfer Check findings

Read these fields alongside the full response from your Zone Transfer Check check. A missing value or failed lookup is different from a passing result. Keep returned errors and confidence or cache metadata when available; do not replace missing evidence with a successful default. See the complete response reference for additional fields.

FieldTypeWhat you'll see in it

domain

string

The queried domain

is_vulnerable

boolean

Whether any nameserver allows zone transfer

vulnerable

array

Nameservers that allow zone transfer

Words you might be wondering about

DNS (Domain Name System) — The internet's address book. When you type a website name, DNS turns it into the actual numeric address computers use to find each other.

CNAME (Canonical Name record) — A DNS entry that says "this name is just an alias for that other name."

SPF (Sender Policy Framework) — A list, published in your DNS, of which servers are allowed to send email pretending to be you. Helps stop spammers from forging your address.

SOC 2 (Service Organization Control 2) — A widely used security audit. Proves to customers that you handle their data responsibly.

ISO 27001 (ISO/IEC 27001 information security management standard) — An international certification that shows your company has a documented, working security program.

AXFR (Asynchronous Full Transfer Zone) — The DNS protocol for transferring an entire zone from one authoritative nameserver to another (RFC 5936). When an attacker can run AXFR, they get a complete dump of every record in the zone.

Need Programmatic Access?

Automate domain intelligence with 100+ API endpoints and a free MCP server for AI integration.

Zone Transfer Check: Results Guide | EdgeDNS