zonedb
zonedb provides a free, open-source database of public DNS zones including top-level domains, subdomains, retired, and withdrawn zones with associated metadata. It offers both a source library and a command-line program for managing zone data.
Description
zonedb is a Public Zone Database containing a comprehensive list of public DNS zones (domain name extensions) and their metadata. The database aims to be exhaustive, covering current, retired, and withdrawn top-level domains and subdomains. Licensed under Open Data Commons Open Database License (ODbL) 1.0, it serves as a valuable resource for DNS-related research and analysis.
The tool is available in two packages: a Go library (golang-github-zonedb-zonedb-dev) for developers integrating zone data into applications, and a standalone program (zonedb) for direct command-line usage. Use cases include DNS reconnaissance, zone metadata enrichment, and maintaining up-to-date lists of public domains for cybersecurity tools and services.
Key features allow customization of zone data by adding languages (BCP 47 tags), locations, RDAP URLs, and tags, enabling tailored datasets for specific reconnaissance or analysis needs.
How It Works
zonedb operates as a command-line tool built in Go, utilizing dependencies like miekg-dns for DNS handling, goquery for web scraping, and others for networking and text processing. It manages a database of public DNS zones sourced under ODbL license, allowing users to modify entries by adding metadata such as BCP 47 language tags, geographic locations, RDAP URLs, and custom tags via command-line flags. The tool processes zone data exhaustively, including TLDs and subdomains, with operations exposed through subcommands.
Installation
sudo apt install zonedbFlags
Examples
zonedb -hzonedb -add-languages en,fr,dezonedb -add-locations US,EU,APzonedb -add-rdap-url https://rdap.example.comzonedb -add-tags secure,public,tldzonedb [arguments] <command>