1.7 KiB
1.7 KiB
PTR Stream
PTR Stream is a high-performance reverse DNS (PTR record) lookup tool written in Go. It efficiently processes the entire IPv4 address space, performing concurrent DNS lookups with support for custom DNS servers, output logging, and real-time progress visualization.
Installation
go install github.com/acidvegas/ptrstream@latest
Or, build from source:
git clone https://github.com/acidvegas/ptrstream
cd ptrstream
go build
Usage
ptrstream [options]
Command Line Arguments
Flag | Description | Default | Example |
---|---|---|---|
-c |
Concurrency level | 100 |
-c 200 |
-t |
Timeout for DNS queries | 2s |
-t 5s |
-r |
Number of retries for failed lookups | 2 |
-r 3 |
-dns |
File containing DNS servers | -dns nameservers.txt |
|
-debug |
Show unsuccessful lookups | False |
-debug |
-o |
Path to NDJSON output file | -o results.json |
|
-s |
Seed for IP generation | Random | -s 12345 |
-shard |
Shard specification | -shard 1/4 |