ファイル名 bind.sh
#!/bin/bash/

IN=$1
OUT=$2

for LIST in 'cat $IN'
do
echo "Checking Server : $LIST" >>$OUT
dig@$LIST version.bind chaos txt | grep -i VERSION.BIND |
cut -f6 >>$out
done