CNWHUD/shell-frags/checkDomainIPAddress.sh

10 lines
139 B
Bash
Raw Normal View History

#!/bin/bash
for lineitem in $(grep -v ^# ~/notes/MasterDomList.md);
do
NAME=$lineitem
IP=$(dig +short $lineitem)
echo $NAME: $IP
done