#!/bin/bash | |
if [ -z "$1" ]; then | |
echo -e "Usage:\n $0 address\n\nEx: $0 google.com" | |
exit 0 | |
fi | |
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)"; | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment