Skip to content

pogzyb/czdsdump

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

czdsdump

Utility for dumping zone files from the Centralized Zone Data Service to an S3 Bucket or File System.

The Centralized Zone Data Service (CZDS) is an online portal where any interested party can request access to the Zone Files provided by participating generic Top-Level Domains (gTLDs).

Create ICANN account: https://czds.icann.org/home

Examples

Local

git clone https://github.com/pogzyb/czdsdump.git

cd czdsdump
go build -o czdsdump .

# all zones
./czdsdump download all -v -o /tmp -u <user> -p <password>

# one zone (".com")
./czdsdump download one -v -o /tmp -u <user> -p <password> -z com

Docker

docker pull ghcr.io/pogzyb/czdsdump:latest
docker run -v ./data/:/tmp/czds/ ghcr.io/pogzyb/czdsdump download all -v -o /tmp/czds/ -u <user> -p <password>

Dump to an S3 bucket

# assumes you have aws credentials and region set in `.env.aws`
docker pull ghcr.io/pogzyb/czdsdump:latest
docker run --env-file .env.aws ghcr.io/pogzyb/czdsdump download all -v -o s3://mybucket/czds/2026-03-28/ -u <user> -p <password>

Dump only one zone

docker pull ghcr.io/pogzyb/czdsdump:latest
# only downloads data from ".com" zone
docker run -v ./data/:/tmp/czds/ ghcr.io/pogzyb/czdsdump download one -v -o /tmp/czds/ -u <user> -p <password> -z com

Resources / Information

What are these files?

The registry operator’s zone data contains the mapping of domain names, associated name server names, and IP addresses for those name servers. These details are updated by the registry operator for its respective TLDs whenever information changes or a domain name is added or removed. https://czds.icann.org/help

In short, these files are .txt files containing the domain names for the given registry. For example, the zone file for ".com" would contain all the registered .com domain names at that given time.

How often should you dump these files?

ICANN begins the daily collection of zone files from the registry operators at 00:00 UTC, and the process takes no more than 6 hours. This means that all updated zone files are available for download from CZDS after 06:00 UTC. End users of CZDS can freely download each of the latest available zone files once their access request has been approved by the registry operator of the TLD.

Zone files are updated once per day starting at 00:00 UTC, so an end user of CZDS should only download each TLD zone file a maximum of once per 24-hour period. https://czds.icann.org/help

About

Download domain data from the Centralized Zone Database Service

Topics

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors