What are the IP addresses of Gmail?
Google is using SPF. That means google say “all gmail(dot)com come from these IP-addresses; everything else is fake”
Submit this command in a cmd-window:
- c:\> nslookup -type=txt _spf.google.com
- Server: google-public-dns-a.google.com
- Address: 8.8.8.8
- Non-authoritative answer:
- _spf.google.com text =
- "v=spf1 include:_netblocks.google.com include:_netblocks2.google.com include:_netblocks3.google.com ~all"
Then you can look up the includes:
- C:\>nslookup -type=txt _netblocks.google.com
- Server: google-public-dns-a.google.com
- Address: 8.8.8.8
- Non-authoritative answer:
- _netblocks.google.com text =
- "v=spf1 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 ~all"
- C:\>nslookup -type=txt _netblocks2.google.com
- Server: google-public-dns-a.google.com
- Address: 8.8.8.8
- Non-authoritative answer:
- _netblocks2.google.com text =
- "v=spf1 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 ~all"
- C:\>nslookup -type=txt _netblocks3.google.com
- Server: google-public-dns-a.google.com
- Address: 8.8.8.8
- Non-authoritative answer:
- _netblocks3.google.com text =
- "v=spf1 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 ~all"
- C:\>
This is all the IP-addresses google is sending from. These are not depending on where you are or what device you are using, because they are owned by google and nobody else can use them.
Addresses sent to:
- C:\>nslookup -type=mx google.com
- Server: google-public-dns-a.google.com
- Address: 8.8.8.8
- Non-authoritative answer:
- google.com MX preference = 20, mail exchanger = alt1.aspmx.l.google.com
- google.com MX preference = 10, mail exchanger = aspmx.l.google.com
- google.com MX preference = 30, mail exchanger = alt2.aspmx.l.google.com
- google.com MX preference = 50, mail exchanger = alt4.aspmx.l.google.com
- google.com MX preference = 40, mail exchanger = alt3.aspmx.l.google.com
Looking these up from France:
- C:\>nslookup aspmx.l.google.com
- Server: google-public-dns-a.google.com
- Address: 8.8.8.8
- Non-authoritative answer:
- Name: aspmx.l.google.com
- Addresses: 2a00:1450:4013:c00::1b
- 108.177.119.26
- C:\>nslookup alt1.aspmx.l.google.com
- Server: google-public-dns-a.google.com
- Address: 8.8.8.8
- Non-authoritative answer:
- Name: alt1.aspmx.l.google.com
- Addresses: 2404:6800:4008:c04::1a
- 74.125.204.27
- C:\>nslookup alt2.aspmx.l.google.com
- Server: google-public-dns-a.google.com
- Address: 8.8.8.8
- Non-authoritative answer:
- Name: alt2.aspmx.l.google.com
- Addresses: 2607:f8b0:400e:c04::1b
- 74.125.28.26
- C:\>nslookup alt3.aspmx.l.google.com
- Server: google-public-dns-a.google.com
- Address: 8.8.8.8
- Non-authoritative answer:
- Name: alt3.aspmx.l.google.com
- Addresses: 2607:f8b0:4003:c06::1b
- 64.233.160.26
- C:\>nslookup alt4.aspmx.l.google.com
- Server: google-public-dns-a.google.com
- Address: 8.8.8.8
- Non-authoritative answer:
- Name: alt4.aspmx.l.google.com
- Addresses: 2607:f8b0:4001:c19::1b
- 108.177.121.27
From Denmark:
- C:\>nslookup aspmx.l.google.com 8.8.8.8
- Server: google-public-dns-a.google.com
- Address: 8.8.8.8
- Non-authoritative answer:
- Name: aspmx.l.google.com
- Addresses: 2a00:1450:4010:c07::1b
- 173.194.73.27
- C:\>nslookup alt1.aspmx.l.google.com 8.8.8.8
- Server: google-public-dns-a.google.com
- Address: 8.8.8.8
- Non-authoritative answer:
- Name: alt1.aspmx.l.google.com
- Addresses: 2607:f8b0:400e:c04::1a
- 74.125.28.27
- C:\>nslookup alt2.aspmx.l.google.com 8.8.8.8
- Server: google-public-dns-a.google.com
- Address: 8.8.8.8
- Non-authoritative answer:
- Name: alt2.aspmx.l.google.com
- Addresses: 2607:f8b0:4003:c06::1b
- 64.233.160.26
- C:\>nslookup alt3.aspmx.l.google.com 8.8.8.8
- Server: google-public-dns-a.google.com
- Address: 8.8.8.8
- Non-authoritative answer:
- Name: alt3.aspmx.l.google.com
- Addresses: 2607:f8b0:4001:c19::1b
- 108.177.121.27
- C:\>nslookup alt4.aspmx.l.google.com 8.8.8.8
- Server: google-public-dns-a.google.com
- Address: 8.8.8.8
- Non-authoritative answer:
- Name: alt4.aspmx.l.google.com
- Addresses: 2607:f8b0:4002:c03::1b
- 173.194.219.27
The addresses changes, could be depending on time and/or location, so if you want to do firewalling, you have to automatically build up a list of acceptable IP’s dynamically.
Artigos semelhantes
- What are the most famous fictional addresses?
- Devo adicionar o meu número de aniversário ao meu endereço do Gmail, quando o Gmail que queremos for levado? É seguro?
- Por que o Gmail não detecta endereços de e-mail do Gmail mal soletrados antes de enviar?
- Gmail: Porque não consigo sair do Gmail agora, usando o Chrome no Windows 10?restricted