summaryrefslogtreecommitdiffstats
path: root/Reaktor/repos/dnsmap/dnsmap-bulk.sh
blob: 574aba2256647f2f658cd574d691d42527b67e14 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#!/bin/bash
if [[ $# -ne 1 && $# -ne 2 ]]
then
	echo "usage: `basename $0` <domains-file> [results-path]";
	echo "e.g.:";
	echo "`basename $0` domains.txt";
	echo "`basename $0` domains.txt /tmp/";
	exit
fi
for i in `cat $1`
do
	if [[ $# -eq 1 ]] 
	then	
		dnsmap $i
	elif [[ $# -eq 2 ]]
	then
		dnsmap $i -r $2
	fi
done