List of reverse DNS records for a subnet

nmap -R -sL 192.168.0.0/24 | awk ‘{if($3==”not”)print”(“$2″) no PTR”;else print$3″ is “$2}’ | grep ‘(‘

Perform reverse DNS lookups on a subnet.

You could add “–dns-servers x.x.x.x” after the “-sL” if you need the lookups to be performed on a specific DNS server.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s