How it works
AXFR is the protocol DNS servers use to replicate an entire zone between themselves. If a nameserver allows AXFR to the whole internet, anyone can download every record in your zone: internal hostnames, mail infrastructure, staging servers. Browsers cannot open the TCP/53 sessions AXFR requires, so this audit enumerates your authoritative servers and produces the exact test command for each.
Reading the results
- REFUSED or SERVFAIL in response to the dig command: correct; transfers are restricted.
- A full record listing: your zone leaks. Restrict allow-transfer to your secondaries' addresses immediately.
- No response at all: firewalled, which also prevents the attack, though REFUSED is the cleaner posture.
Common errors
Transfer succeeds from one server
That server's allow-transfer is missing or set to any. Restrict it to your secondary IPs, or disable AXFR entirely if you have no secondaries.
Zone transfers were fine last year
Provider migrations sometimes reset ACLs; re-audit after any DNS infrastructure change.
FAQs
Is AXFR always bad?+
No: it's essential between your own primary and secondaries. The risk is allowing it to everyone.
What can an attacker do with my zone?+
Map your infrastructure: internal hostnames, staging boxes, mail topology. It's reconnaissance gold.
Do managed DNS hosts allow AXFR?+
Almost never by default; the risk mostly applies to self-hosted BIND/PowerDNS servers.