Repository navigation
Releases
Releases · klp2/sr
v0.5.0
v0.4.1
Changelog
- 72bb01b Add --version flag with build-time injection
v0.4.0
Consolidated output (default)
IPs with the same PTR record are now grouped into CIDR blocks by default, producing much more compact output. Use --expand / -e for per-IP output.
PTR pattern detection
ISP-style PTR records that embed the IP address (e.g., 1.2.3.4.static.example.net) are detected and consolidated by their common suffix (*.static.example.net). Supports forward/reversed dots, forward/reversed dashes, and embedded-with-prefix patterns.
Example
$ sr 198.51.100.0/30
198.51.100.0/30 *.static.example.net
Instead of:
$ sr -e 198.51.100.0/30
198.51.100.0 0.100.51.198.static.example.net
198.51.100.1 1.100.51.198.static.example.net
198.51.100.2 2.100.51.198.static.example.net
198.51.100.3 3.100.51.198.static.example.net
v0.3.0
Changelog
- 07dd21a Add Homebrew tap support
v0.2.0
What's New
- IPv6 support: Query IPv6 CIDR ranges (e.g.,
sr 2001:db8::/126) - Large range handling: Huge ranges like
/64are now truncated to--max-ipsinstead of rejected - Dynamic alignment: Output columns align properly for mixed IPv4/IPv6 results
- New flag:
--max-ipscontrols the maximum IPs to process (default 65536)
Examples
# IPv6 single address
sr 2001:4860:4860::8888/128
# Small IPv6 range
sr 2001:db8::/126
# Sample first 100 IPs from huge range
sr --max-ips 100 2001:db8::/64v0.1.0
Changelog
- e175660 Initial commit: bulk reverse DNS lookup tool