Skip to content

fcambus/statzone

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

StatZone

StatZone is a DNS zone file analyzer targeted at TLD zones.

After analyzing a zone, it returns counts for: IPv4 and IPv6 glue records, NS records (total and uniques), DS records, DNSSEC signed domains, IDNs domains, and total number of domains.

It is currently used to generate TLD Zone File Statistics on StatDNS.

StatZone is written with security in mind, and has also been extensively fuzzed using AFL and Honggfuzz. Experimental seccomp support is available for selected architectures and can be enabled by setting the ENABLE_SECCOMP variable to 1 when invoking CMake.

Dependencies

StatZone uses the CMake build system.

Building

mkdir build
cd build
cmake ..
make

StatZone has been successfully built and tested on OpenBSD and Linux with both Clang and GCC.

Usage

statzone [-hv] zonefile

If file is a single dash (`-'), statzone reads from the standard input.

The options are as follows:

-h	Display usage.
-v	Display version.

StatZone outputs results to stdout.

TLD zone files for .arpa can be found on Internic FTP site, .se and .nu zones are available through AXFR at zonedata.iis.se.

Features

Currently implemented features:

  • Counting IPv4 and IPv6 glue
  • Counting name servers (total and unique)
  • Counting DS records
  • Counting DNSSEC signed domains
  • Counting IDNs domains
  • Counting domains

License

StatZone is released under the BSD 2-Clause license. See LICENSE file for details.

Author

StatZone is developed by Frederic Cambus.

Resources

GitHub: https://github.com/fcambus/statzone