Description
hakrevdns performs fast, mass reverse DNS lookups. Given a list of IP addresses, it resolves them to hostnames. Useful for discovering additional assets, internal hostnames, and expanding attack surface during reconnaissance.
Installation
BASH
go install github.com/hakluke/hakrevdns@latest
Basic Usage
BASH
# Reverse DNS lookup from stdin
echo "93.184.216.34" | hakrevdns
# From file
cat ips.txt | hakrevdns
# With domain filter
cat ips.txt | hakrevdns -d target.com
Advanced Usage
BASH
# Custom resolver
cat ips.txt | hakrevdns -r 8.8.8.8:53
# Concurrent threads
cat ips.txt | hakrevdns -t 50
# Output only domains
cat ips.txt | hakrevdns | awk '{print $2}' | sed 's/\.$//' | sort -u
Common Workflows
BASH
# Discover all hosts in a CIDR range
prips 10.0.0.0/24 | hakrevdns -t 100 | grep target.com
# Expand attack surface from known IPs
nmap -sn 93.184.216.0/24 -oG - | grep "Up" | awk '{print $2}' | hakrevdns
# Find related infrastructure
echo "93.184.216.34" | hakrevdns | awk '{print $2}' | sed 's/\.$//'