-
-
Save george124816/13ce38255d8e8b17b5aae855471816dc to your computer and use it in GitHub Desktop.
retrieve ipv4 and ipv6 from cli
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
#!/bin/bash | |
# pacman -S dnsutils | |
dig TXT +short o-o.myaddr.l.google.com @ns1.google.com | |
dig +short txt ch whoami.cloudflare @1.0.0.1 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment