Skip to content

Instantly share code, notes, and snippets.

@mburtscher
Created January 2, 2016 12:00
Show Gist options
  • Save mburtscher/5fad51bb892dd5154492 to your computer and use it in GitHub Desktop.
Save mburtscher/5fad51bb892dd5154492 to your computer and use it in GitHub Desktop.
#!/bin/sh
# Configuration
DNS_SERVER=8.8.8.8
GATEWAY=192.168.0.1
echo "PING $GATEWAY"
echo "============================================================"
ping -c 1 $GATEWAY
echo ''
echo "PING $DNS_SERVER"
echo "============================================================"
ping -c 1 $DNS_SERVER
echo ""
echo "LOOKUP fusonic.net"
echo "============================================================"
nslookup fusonic.net $DNS_SERVER
echo ""
echo "WGET google.at"
echo "============================================================"
wget -O /dev/null http://www.google.at
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment