Google IP 地址範圍

在 Linux 底下可以使用 nslookup 指令查詢 _netblocks.google.com, _netblocks2.google.com, _netblocks3.google.com 這三個地址得到 google 所有的 IP 地址範圍 (Windows 下也是使用 nslookup ,相同參數)。

$ nslookup -q=TXT _netblocks.google.com 8.8.8.8
$ nslookup -q=TXT _netblocks2.google.com 8.8.8.8
$ nslookup -q=TXT _netblocks3.google.com 8.8.8.8

以下是 2018/1/27 的查詢結果

_netblocks.google.com

ip4:64.233.160.0/19
ip4:66.102.0.0/20
ip4:66.249.80.0/20
ip4:72.14.192.0/18
ip4:74.125.0.0/16
ip4:108.177.8.0/21
ip4:173.194.0.0/16
ip4:209.85.128.0/17
ip4:216.58.192.0/19
ip4:216.239.32.0/19

_netblocks2.google.com

ip6:2001:4860:4000::/36
ip6:2404:6800:4000::/36
ip6:2607:f8b0:4000::/36
ip6:2800:3f0:4000::/36
ip6:2a00:1450:4000::/36
ip6:2c0f:fb50:4000::/36

_netblocks3.google.com

ip4:172.217.0.0/19
ip4:172.217.32.0/20
ip4:172.217.128.0/19
ip4:172.217.160.0/20
ip4:172.217.192.0/19
ip4:108.177.96.0/19

nslookup_netblocks_google_com

Show Comments