How to find Google's IP address?

后端 未结 8 1964
悲&欢浪女
悲&欢浪女 2020-12-23 22:20

Google is blocked in some countries. However, there are many ways to access Google, like VPN, agent, and by changing the hosts file.

If I want to change the hosts f

8条回答
  •  孤独总比滥情好
    2020-12-23 22:42

    Google maintains a server infrastructure that grows dynamically with the ever increasing internet demands. This link by google describes the method to remain up to date with their IP address ranges.

    When you need the literal IP addresses for Google Apps mail servers, start by using one of the common DNS lookup commands (nslookup, dig, host) to retrieve the SPF records for the domain _spf.google.com, like so:

    nslookup -q=TXT _spf.google.com 8.8.8.8
    

    This returns a list of the domains included in Google's SPF record, such as: _netblocks.google.com, _netblocks2.google.com, _netblocks3.google.com

    Now look up the DNS records associated with those domains, one at a time, like so:

    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
    

    The results of these commands contain the current range of addresses.

提交回复
热议问题