Skip to main content

Security Toolbox

Zone Transfer

Test whether a domain's nameservers allow DNS zone transfer (AXFR), and show the zone contents when they do.

Warning: Authorised use only. This tool contacts nameservers and can expose a full zone. Use it only on systems you are allowed to test.

Install

pip install lupaxa-zone-transfer
zone-transfer --help

CLI

zone-transfer example.com
zone-transfer example.com example.org
zone-transfer example.com --nameserver ns1.example.net --nameserver 203.0.113.10
zone-transfer example.com --format json
zone-transfer example.com --fail-open
zone-transfer example.com --timeout 10 --no-color
python -m lupaxa.zone_transfer --version

The tool discovers NS records (or uses --nameserver), sorts them by name with IPv4 before IPv6 for each host, tries AXFR on every address, prints a status table, and dumps records when a transfer is allowed. On a TTY it shows a spinner on stderr while lookups and transfers run. --fail-open exits 2 if any server allowed AXFR. --format json writes {domain, error, attempts} objects. On a colour terminal, allowed is red and refused is green.

Library

from lupaxa.zone_transfer import inspect_domain

report = inspect_domain("example.com")
print(report.attempts[0].status)

Pass on_progress to receive lookup and transfer events. The library does not print; the CLI uses that hook for the spinner.

Development

make init
make python-install-dev
make python-check

Documentation

The published guide is at https://zone-transfer.thelupaxaproject.org/.

Site Markdown lives in mkdocs/.

python -m pip install -r requirements.txt
make mkdocs-serve
The Lupaxa Project Footer

Metadata

Release files for lupaxa-zone-transfer 0.1.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for lupaxa-zone-transfer 0.1.3
File Size Uploaded
lupaxa_zone_transfer-0.1.3.tar.gz 10.5 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for lupaxa-zone-transfer 0.1.3
File Interpreter ABI Platform
lupaxa_zone_transfer-0.1.3-py3-none-any.whl Python 3 none any Details

Total release size: 24.9 kB

Release files / lupaxa_zone_transfer-0.1.3.tar.gz

Download URL lupaxa_zone_transfer-0.1.3.tar.gz
Size 10.5 kB
Tags Source
SHA-256 checksum
How to use checksums
02345e3395f0f4b2139bced40ad228c960eddcaa2c20ab7e172898bffa87c0e5
BLAKE2b-256 checksum
How to use checksums
ca1491e778c645fc8ff708dfecc84e753528b21b88040d3009518ea17b0929f3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Sep 29, 2026.

Transparency log

Release files / lupaxa_zone_transfer-0.1.3-py3-none-any.whl

Download URL lupaxa_zone_transfer-0.1.3-py3-none-any.whl
Size 14.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
48a5ca755bac779c6934d88de743446d6eb2c47fdc7707d77d52cda3ce1453a4
BLAKE2b-256 checksum
How to use checksums
b6d6ec7acd597d3e20790572c5d7f970981d4da939b70a14ecf95c9efdbecff1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Sep 29, 2026.

Transparency log

Release history Release notifications | RSS feed

0.1.5

2 release files

0.1.4

2 release files

This release

0.1.3 This release

2 release files

0.1.2

2 release files

0.1.1

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page