Skip to content

Instantly share code, notes, and snippets.

@emanuelet
Created December 6, 2019 04:36
Show Gist options
  • Select an option

  • Save emanuelet/f173f09bf301944406573e76d9529d63 to your computer and use it in GitHub Desktop.

Select an option

Save emanuelet/f173f09bf301944406573e76d9529d63 to your computer and use it in GitHub Desktop.

Revisions

  1. emanuelet created this gist Dec 6, 2019.
    5 changes: 5 additions & 0 deletions script.sh
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,5 @@
    dig +short -t TXT _cloud-netblocks1.googleusercontent.com | grep -Po 'ip4:\K\S+' >> ips.txt
    dig +short -t TXT _cloud-netblocks2.googleusercontent.com | grep -Po 'ip4:\K\S+' >> ips.txt
    dig +short -t TXT _cloud-netblocks3.googleusercontent.com | grep -Po 'ip4:\K\S+' >> ips.txt
    dig +short -t TXT _cloud-netblocks4.googleusercontent.com | grep -Po 'ip4:\K\S+' >> ips.txt
    dig +short -t TXT _cloud-netblocks5.googleusercontent.com | grep -Po 'ip4:\K\S+' >> ips.txt