Created
September 2, 2022 02:14
-
-
Save rhemz/6e412a1abe3d0181ca1a714d7aab8821 to your computer and use it in GitHub Desktop.
get public IP on alpine when you can't install anything
This file contains 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 characters
nslookup -type=txt o-o.myaddr.l.google.com ns1.google.com | grep "text = " | awk '{print $4}' | tr -d '"' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment