Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/usr/bin/env bash
- # Written by kenkeiras
- if [ "$2" == "" ]
- then
- echo "$0 <dirección a resolver> <DNS>"
- exit 1
- fi
- echo -n "Velocidad: ";((time ping -c 1 "$2" >> /dev/null) 2>> /dev/stdout )|head -n 2|tail -n 1|cut -f2
- echo -n "DNS: ";((time nslookup "$1" "$2" >> /dev/null) 2>> /dev/stdout )|head -n 2|tail -n 1|cut -f2
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement