cloud-ip-ranges

Google Public DNS IP ranges

Current IP ranges (CIDRs) used by the Google Public DNS network, updated daily.

categoryVPN & Networks
websitehttps://developers.google.com/speed/public-dns
ranges626 (511 IPv4, 115 IPv6)
last change
downloads1,311
download txt csv json — permalinks, always the latest data
curl -O https://cloud-ip-ranges.com/download/google-public-dns.txt

Ranges

Sample of 25 of 626 ranges. Download the full list above, or check a specific IP.

CIDR Type Region Tag
34.64.0.0/24 ipv4 icn Google Public DNS
34.64.1.0/24 ipv4 icn Google Public DNS
34.64.2.0/24 ipv4 icn Google Public DNS
34.101.0.0/24 ipv4 cgk Google Public DNS
34.101.1.0/24 ipv4 cgk Google Public DNS
34.101.2.0/24 ipv4 cgk Google Public DNS
34.116.32.0/24 ipv4 tlv Google Public DNS
34.153.64.0/25 ipv4 dia Google Public DNS
34.153.64.128/26 ipv4 dia Google Public DNS
34.153.64.192/26 ipv4 dia Google Public DNS
34.153.65.0/25 ipv4 dia Google Public DNS
34.153.65.128/26 ipv4 dia Google Public DNS
34.153.65.192/26 ipv4 dmm Google Public DNS
2404:6800:4000::/48 ipv6 bom Google Public DNS
2404:6800:4001::/48 ipv6 kul Google Public DNS
2404:6800:4003::/48 ipv6 sin Google Public DNS
2404:6800:4005::/48 ipv6 hkg Google Public DNS
2404:6800:4006::/48 ipv6 syd Google Public DNS
2404:6800:4008::/48 ipv6 tpe Google Public DNS
2404:6800:400a:1000::/62 ipv6 kix Google Public DNS
2404:6800:400a:1004::/62 ipv6 kix Google Public DNS
2404:6800:400a:1008::/61 ipv6 kix Google Public DNS
2404:6800:400b:c000::/62 ipv6 nrt Google Public DNS
2404:6800:400b:c004::/62 ipv6 nrt Google Public DNS
2404:6800:400b:c008::/61 ipv6 nrt Google Public DNS

Blocking Google Public DNS

iptables

curl -sO https://cloud-ip-ranges.com/download/google-public-dns.txt
while read ip; do
  iptables -A INPUT -s $ip -j DROP
  iptables -A OUTPUT -d $ip -j DROP
done < google-public-dns.txt

ufw

curl -sO https://cloud-ip-ranges.com/download/google-public-dns.txt
while read ip; do
  ufw deny from $ip
  ufw deny to $ip
done < google-public-dns.txt

fail2ban

sudo tee /etc/fail2ban/filter.d/google-public-dns-block.conf << EOF
[Definition]
failregex = ^.*$
ignoreregex =
EOF

sudo tee /etc/fail2ban/jail.d/google-public-dns-block.conf << EOF
[google-public-dns-block]
enabled = true
filter = google-public-dns-block
action = iptables-allports[name=google-public-dns]
logpath = /tmp/google-public-dns.txt
findtime = 1
bantime = -1
maxretry = 1
EOF

curl -so /tmp/google-public-dns.txt https://cloud-ip-ranges.com/download/google-public-dns.txt
sudo systemctl restart fail2ban

pfSense / OPNsense

curl -sO https://cloud-ip-ranges.com/download/google-public-dns.txt
# Firewall > Aliases: new alias GOOGLE-PUBLIC-DNS_BLOCK, type Network(s), import the file
# Firewall > Rules > WAN: Action=Block, Source=GOOGLE-PUBLIC-DNS_BLOCK

About

These IP ranges cover the Google Public DNS network and are updated regularly from its official source. The data includes IPv4 and IPv6 ranges. Last update was about 21 hours ago.

Other providers

AirVPN, Akamai, Alibaba, Alpha Strike Labs, Amazonbot, Amzn-SearchBot, Amzn-User, Anthropic, AppleBot, Atlassian, AWS, Azure, Backblaze, Baidu, BinaryEdge, BingBot, Bunny, CacheFly, CCBot, Censys, ChatGPT-User, ClaudeBot, Cloudflare, Datadog, DigitalOcean, DuckDuckBot, Fastly, Gabia, G-Core, GitHub, Googlebot, Google Cloud, Google Services, GPTBot, Hetzner, Hostway, Huawei Cloud, IBM Cloud, iCloud Private Relay, Internet Archive, IVPN, Leaseweb, Linode, Meta, Microsoft 365, Mistral, Mullvad, NHN Cloud, NordVPN, OpenAI ChatGPT, OpenAI SearchBot, Oracle Cloud, OVHcloud, OVPN.com, PerplexityBot, Perplexity-User, Pingdom, Private Internet Access, QUIC.cloud, Rackspace, Rapid7 Sonar, Salesforce, Scaleway, Shodan, StatusCake, StormWall, Stretchoid, Sucuri, Telegram, Tencent, TOR, UpCloud, UptimeRobot, Vultr, Wasabi, Windscribe, Yandex, Zoho, Zoom, Zscaler