Created
February 13, 2020 20:38
Revisions
-
narfel revised this gist
Feb 13, 2020 . 1 changed file with 0 additions and 2 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -6,8 +6,6 @@ ip route get 1.2.3.4 | awk '{print $7}' nmcli -p device show remote: curl or wget -qO- <host> hosts: ifconfig.me -
narfel created this gist
Feb 13, 2020 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,21 @@ local: hostname -I optional with | awk '{print $1}' ip addr show (ip a) ifconfig -a ip route get 1.2.3.4 | awk '{print $7}' nmcli -p device show remote: dig +short myip.opendns.com @resolver1.opendns.com curl or wget -qO- <host> hosts: ifconfig.me https://diagnostic.opendns.com/myip http://checkip.amazonaws.com ipinfo.io/ip ident.me icanhazip.com ipecho.net/plain bot.whatismyipaddress.com api.ipify.org