Any scripts and files specific to this AoS.Health/AMR (serial ID 6000) Implementation.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

11 lines
345 B

#/bin/sh
# https://unix.stackexchange.com/a/81699/37512
wanip=`dig @resolver4.opendns.com myip.opendns.com +short`
wanip4=`dig @resolver4.opendns.com myip.opendns.com +short -4`
wanip6=`dig @resolver1.ipv6-sandbox.opendns.com AAAA myip.opendns.com +short -6`
echo "wanip.....: $wanip"
echo "wanIPV4...: $wanip4"
echo "wanIPV6...: $wanip6"