Naposledy aktivní 1732918236

Revize 47bfd61f6874448179f3dbbe1dafd085f1d52dc0

bulk-nslookup.sh Raw
1#!/bin/bash
2
3if [ $# -ne 1 ]; then
4 echo "Usage: $0 <file>"
5 exit 1
6fi
7
8input_file="$1"
9
10if [ ! -f "$input_file" ]; then
11 echo "File not found: $input_file"
12 exit 1
13fi
14
15while IFS= read -r ip_address; do
16 echo "Performing nslookup for $ip_address"
17 nslookup "$ip_address"
18 echo "-----"
19done < "$input_file"
20