Information Gatheringdnszonesdatabasetldpublic-zonesgolang

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

bash
sudo apt install zonedb

Flags

-add-languagesadd BCP 47 language tags to zones (comma-delimited)
-add-locationsadd locations to zones (comma-delimited)
-add-rdap-urladd RDAP URL to zones
-add-tagsadd tags to zones (comma-delimited)

Examples

Display usage information and available arguments for the zonedb tool
zonedb -h
Add specified BCP 47 language tags to zones using comma-delimited list
zonedb -add-languages en,fr,de
Add geographic locations to zones with comma-delimited values
zonedb -add-locations US,EU,AP
Add a specific RDAP URL to zones
zonedb -add-rdap-url https://rdap.example.com
Add custom tags to zones using comma-delimited list
zonedb -add-tags secure,public,tld
General usage pattern invoking a subcommand with optional arguments for zone database operations
zonedb [arguments] <command>
Updated 2026-04-16kali.org ↗