Table of Contents
DNS Forward and Reverse
These scripts were taken from the BackTrack Wiki. For updates please check the original site.
DNS Forward
Show IP addresses of domain servers.
#!/bin/bash clear echo echo dns-forward echo echo echo By Lee Baird echo April 1, 2007 echo "v 0.21" echo echo "This script will show IP addresses of domain servers." echo echo Usage: domain.com echo Enter the domain. echo read domain echo echo "####################" echo for name in $(cat /pentest/enumeration/dnsenum/dns.txt);do host $name.$domain | grep "has address" | cut -d " " -f4 done echo
DNS Reverse
Performs a PTR DNS query on a Class C range and return FQDNs.
#!/bin/bash clear echo echo dns-reverse echo echo echo By Lee Baird echo April 1, 2007 echo "v 0.2" echo echo "This script will perform a PTR DNS query on a Class C range and return FQDNs." echo echo Usage: 192.168.1 echo Enter the Class C range. echo read class echo echo "####################" echo for x in `seq 1 254`;do host $class.$x | grep "name pointer" | cut -d " " -f5 done echo
Submitted by Lee Baird