Skip to content

Instantly share code, notes, and snippets.

@george124816
Last active October 14, 2022 13:16
Show Gist options
  • Save george124816/13ce38255d8e8b17b5aae855471816dc to your computer and use it in GitHub Desktop.
Save george124816/13ce38255d8e8b17b5aae855471816dc to your computer and use it in GitHub Desktop.
retrieve ipv4 and ipv6 from cli
#!/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