Advertisement
Guest User

bash test dns

a guest
Feb 17th, 2020
100
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.26 KB | None | 0 0
  1. #!/bin/bash
  2. ###Paste your's dns or other "IP"###
  3. dnsname=("8.8.8.8" "77.88.8.8" "198.153.192.1")
  4. count=0
  5. for req in ${dnsname[@]}
  6. do
  7. (( count++ ));
  8. echo -e "\n\033[32mPing test IP-count:\033[31m${count}\033[0m for \033[44m$req\033[0m\n"
  9. ping $req -c 3
  10. done
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement