Skip to content

Instantly share code, notes, and snippets.

@tuxmartin
Created August 26, 2019 14:44
Show Gist options
  • Save tuxmartin/d616c844bc20280c3b80a08705bd3653 to your computer and use it in GitHub Desktop.
Save tuxmartin/d616c844bc20280c3b80a08705bd3653 to your computer and use it in GitHub Desktop.
martin@martin:~$ whois -h whois.arin.net "n google" | grep -i '^Google' | sed 's/.*)//' | tr -d ' '
2620:E7:4000::-2620:E7:4000:FFFF:FFFF:FFFF:FFFF:FFFF
2620:E7:C000::-2620:E7:C000:FFFF:FFFF:FFFF:FFFF:FFFF
108.170.192.0-108.170.255.255
108.177.0.0-108.177.127.255
142.250.0.0-142.251.255.255
172.217.0.0-172.217.255.255
172.253.0.0-172.253.255.255
173.194.0.0-173.194.255.255
192.178.0.0-192.179.255.255
199.87.241.32-199.87.241.63
199.88.130.0-199.88.130.255
199.89.220.0-199.89.220.255
207.223.160.0-207.223.175.255
209.170.110.128-209.170.110.191
209.170.110.192-209.170.110.255
209.170.119.128-209.170.119.191
209.170.119.192-209.170.119.255
209.170.120.64-209.170.120.127
209.170.91.128-209.170.91.191
209.85.128.0-209.85.255.255
216.239.32.0-216.239.63.255
216.58.192.0-216.58.223.255
64.233.160.0-64.233.191.255
66.102.0.0-66.102.15.255
66.249.64.0-66.249.95.255
70.32.128.0-70.32.159.255
70.90.219.48-70.90.219.55
70.90.219.72-70.90.219.79
72.14.192.0-72.14.255.255
74.114.24.0-74.114.31.255
74.125.0.0-74.125.255.255
martin@martin:~$ whois -h whois.ripe.net google | grep inetnum | cut -d':' -f2 | tr -d ' '
37.128.95.244-37.128.95.247
46.61.155.0-46.61.155.255
62.115.64.64-62.115.64.127
80.239.142.192-80.239.142.255
80.239.168.192-80.239.168.255
89.175.35.32-89.175.35.47
89.175.162.48-89.175.162.55
89.175.165.0-89.175.165.15
92.45.86.16-92.45.86.31
95.142.107.0-95.142.107.31
95.167.107.32-95.167.107.63
193.120.166.64-193.120.166.127
194.44.4.0-194.44.4.255
195.12.231.192-195.12.231.255
195.50.84.192-195.50.84.255
195.89.232.248-195.89.232.251
212.179.82.48-212.179.82.63
213.155.151.128-213.155.151.191
213.242.89.64-213.242.89.127
213.242.93.192-213.242.93.255
213.248.112.64-213.248.112.127
213.253.9.128-213.253.9.191
217.163.1.64-217.163.1.127
martin@martin:~$ whois -h whois.ripe.net google | grep inet6num | cut -d':' -f2- | tr -d ' '
2001:2030:0:19::/64
2001:2030:0:1a::/64
2001:2030:0:1b::/64
2001:2030:0:34::/64
2001:2030:0:35::/64
2001:2030:19::/48
2001:4c08:2003:2::/64
2001:4c08:2003:3::/64
2001:4c08:2003:3c::/64
2001:4c08:2003:3d::/64
2001:4c08:2003:3e::/64
2001:4c08:2003:3f::/64
2001:4c08:2003:40::/64
martin@martin:~$ whois -h whois.apnic.net google | grep inetnum | cut -d':' -f2 | tr -d ' '
116.236.215.224-116.236.215.239
121.83.201.64-121.83.201.79
martin@martin:~$ whois -h whois.apnic.net google | grep inet6num | cut -d':' -f2- | tr -d ' '
martin@martin:~$ whois -h whois.afrinic.net google | grep inetnum | cut -d':' -f2 | tr -d ' '
154.113.20.56-154.113.20.59
martin@martin:~$ whois -h whois.afrinic.net google | grep inet6num | cut -d':' -f2- | tr -d ' '
2001:4228:10::/46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment