Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
if [ -z "$1" ]; then
echo -e "Usage:\n $0 address\n\nEx: $0"
exit 0
for ip in `nslookup $1 |grep Address|grep -v 53 |cut -d":" -f2|cut -d' ' -f2`; do
echo "$ip -> $(ping -c 1 "$ip" | grep time |cut -d'=' -f4)";
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.