Portable myip
This commit is contained in:
parent
29c94709ca
commit
e2459f9032
@ -58,4 +58,4 @@ alias reboot='sudo reboot'
|
||||
alias poweroff='sudo poweroff'
|
||||
alias vm='sudo vm'
|
||||
|
||||
alias myip='dig +short myip.opendns.com @resolver1.opendns.com'
|
||||
alias myip="host -4 myip.opendns.com resolver1.opendns.com | sed -n 's/myip\.opendns\.com has address \(.*\)$/\1/p'"
|
||||
|
Loading…
Reference in New Issue
Block a user