SHARE
TWEET

Dns Speed Test

bloginfo Oct 28th, 2012 185 Never
  1. #!/bin/bash
  2. #Copyright (C) Denis Szalkowski / Licence GPL v3
  3. #OpenDNS : 208.67.222.222, 208.67.220.220
  4. #Google : 8.8.8.8, 8.8.4.4
  5. #Level3 : 209.244.0.3, 209.244.0.4
  6. #Securly : 184.169.143.224, 184.169.161.155
  7. #Comodo Secure DNS : 8.26.56.26, 8.20.247.20
  8. #DNS Advantage : 156.154.70.1, 156.154.71.1
  9. #Norton DNS : 198.153.192.1, 198.153.194.1
  10. #OpenNIC : 74.207.247.4, 64.0.55.201
  11. #Public-Root : 199.5.157.131, 208.71.35.137
  12. #SmartViper     208.76.50.50     208.76.51.51
  13. #Free :  212.27.40.240, 212.27.40.241
  14. fichier=result.csv
  15. if [ -f $fichier ]
  16. then
  17.     rm -f $fichier
  18. fi
  19. for server in 208.67.222.222 208.67.220.220 8.8.8.8 8.8.4.4 80.10.249.1 80.10.249.2 212.27.40.240 212.27.40.241 194.2.0.20 194.2.0.50 209.244.0.3 209.244.0.4 184.169.143.224 184.169.161.155 8.26.56.26 8.20.247.20 156.154.70.1 156.154.71.1 198.153.192.1 198.153.194.1 67.138.54.120 207.225.209.77 74.207.247.4 64.0.55.201 74.207.247.4 64.0.55.201 199.5.157.131 208.71.35.137 208.76.50.50 208.76.51.51
  20. do
  21.     for domain in www.google.com www.facebook.com www.youtube.com www.yahoo.com www.wikipedia.org www.leboncoin.fr www.live.com www.orange.fr www.free.fr
  22.     do
  23.         i=1
  24.         while ((i<6))
  25.         do
  26.             echo -e -n "$i\t$server\t">>$fichier
  27.             echo -n `dig @$server $domain +time=1|grep "Query time"|cut -d " " -f4`>>$fichier
  28.             echo -e "\t$domain">>$fichier
  29.             i=$(expr 1 + $i)
  30.         done
  31.     done
  32. done
RAW Paste Data
Top