Skip to content
KitploitKITPLOIT
ToolsBlog
Submit
ToolsBlog
Submit

Hacking, PenTest, and Cybersecurity Tools for Your Security Arsenal!

Kitploit is a directory of hacking, cybersecurity, and pentesting tools. Discover the latest project updates to find vulnerabilities, analyze systems, automate testing, and strengthen your security.

··Feeds·Contact·Privacy·© 2026 Kitploit

Tool Directory

Categories

View all categories
Loading categories
dns-zone-audit — This Bash script checks domains for DNS zone transfer misconfigurations (CVE-1999-0532). It queries name servers and attempts AXFR requests; if successful, it reveals full DNS records, indicating a security flaw. Otherwise, it reports the domain as properly secured. | Kitploit
Tools/GitHubGitHub/sleepthegod/dns-zone-audit
ReconnaissanceVulnerability ScannersInformation GatheringNetwork SecurityMisconfigurationDNS Analysis
GitHubsleepthegod/dns-zone-audit

dns-zone-audit

This Bash script checks domains for DNS zone transfer misconfigurations (CVE-1999-0532). It queries name servers and attempts AXFR requests; if successful, it reveals full DNS records, indicating a security flaw. Otherwise, it reports the domain as properly secured.

Most Popular

View all →

Discover the most used tools by our community.

Explore all tools

Browse our collection of tools

View all tools →
Share
View Repository
14 months agoNot yet reviewed

DNS Zone Audit

A lightweight Bash-based security tool for testing DNS zone transfer misconfigurations (AXFR), associated with CVE-1999-0532.

This script queries authoritative name servers for a domain and attempts full zone transfers. If successful, it indicates a critical DNS misconfiguration that can expose internal infrastructure and records.


Features

  • Interactive domain input (single or multiple targets)
  • Batch scanning via file input
  • Automatic authoritative name server discovery
  • AXFR testing over TCP
  • Clear, color-coded output
  • Minimal dependencies

Requirements

  • bash
  • dig (from dnsutils or bind-utils)

Install dependencies

Debian / Ubuntu

root@kitploit:~
sudo apt install dnsutils

RHEL / CentOS

root@kitploit:~
sudo yum install bind-utils

Usage

Run the script

root@kitploit:~
git clone https://github.com/SleepTheGod/dns-zone-audit/
cd dns-zone-audit
chmod +x main.sh
./main.sh
sudo bash ssl.sh target port

Input options

1. Single or multiple domains

root@kitploit:~
example.com test.com target.org

2. File input

root@kitploit:~
file:domains.txt

Example domains.txt:

root@kitploit:~
example.com
test.com
# comment line
target.org

How It Works

  1. Retrieves NS records for each domain

  2. Iterates through each authoritative name server

  3. Attempts a DNS zone transfer (AXFR)

  4. Reports

    • SUCCESS → Zone transfer allowed (vulnerable)
    • FAILED → Transfer refused (secure)

Example Output

root@kitploit:~
=== Testing domain: example.com ===
Name servers
  ns1.example.com
  ns2.example.com

Attempting zone transfer from ns1.example.com...
FAILED: Zone transfer refused or not allowed

Attempting zone transfer from ns2.example.com...
SUCCESS: Zone transfer allowed

Security Impact

If a zone transfer succeeds, an attacker can retrieve

  • Subdomains
  • Internal hostnames
  • Mail servers
  • Infrastructure mapping

This significantly lowers the barrier for further attacks.


Mitigation

To prevent unauthorized zone transfers

  • Restrict AXFR to trusted IP addresses only
  • Disable zone transfers if not required
  • Use TSIG authentication between DNS servers

Disclaimer

This tool is intended for authorized security testing only.

Do not use it against systems you do not own or have explicit permission to assess. Unauthorized testing may be illegal.


Author

Taylor Christian Newsome

Download Tool