Skip to content

Instantly share code, notes, and snippets.

@wesley6j
Created March 5, 2015 14:39
Show Gist options
  • Star 3 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save wesley6j/bb00597ae948d76b4da2 to your computer and use it in GitHub Desktop.
Save wesley6j/bb00597ae948d76b4da2 to your computer and use it in GitHub Desktop.
#! /bin/bash
# This script runs on os x.
SITES=( "speedtest-lon1.digitalocean.com" \
"speedtest-sfo1.digitalocean.com" \
"speedtest-ams1.digitalocean.com" \
"speedtest-ams2.digitalocean.com" \
"speedtest-nyc1.digitalocean.com" \
"speedtest-nyc2.digitalocean.com" \
"speedtest-nyc3.digitalocean.com" \
"speedtest-sgp1.digitalocean.com" \
)
for SITE in "${SITES[@]}"
do
:
echo "##########################"
echo "=========================="
echo "${SITE}"
ping -c 5 ${SITE}
done
@71walceli
Copy link

When testing it, I get:

##########################
==========================
speedtest-lon1.digitalocean.com
ping: speedtest-lon1.digitalocean.com: Name or service not known

@71walceli
Copy link

I testeed following service, but it reports inaccurate results as they don't make sense. Those endpoints don't resolve to an IP, so it's pointless...

Screenshot_20240204_210727
Screenshot_20240204_210749

@71walceli
Copy link

Another which won't work properly. They only manage to query some DNS.

image

Will it be necessary to create a droplet for every region and test that way?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment