Checkip bash script

From MS Computech
Jump to: navigation, search

Checkup Bash script.--Snifer 11:48, 6 April 2016 (ICT)

#!/bin/bash
echo " "
echo "####################"
echo "##### Check IP #####"
echo "####################"
echo " "
echo " CURL Dyndns"
curl -s checkip.dyndns.org | sed -e 's/.*Current IP Address: //' -e 's/<.*$//'
echo " Dig Opendns"
dig +short myip.opendns.com @resolver1.opendns.com
echo " "