Google App Engine - list of IP addresses?

前端 未结 6 1169
挽巷
挽巷 2020-12-05 06:58

I know that Google App Engine does not support an application having a static IP address, but I\'d like to know if there is a list or range of IP addresses that an app could

6条回答
  •  一向
    一向 (楼主)
    2020-12-05 07:50

    From the GAE documentationn, you need to use the dig command because it does not currently provide a way to map static IP addresses to an application, due to its design:

    dig -t TXT _netblocks.google.com @ns1.google.com
    

    If the dig command is not available on your system, you can use an online service:

    As the time of writing this answer, querying http://www.digwebinterface.com/?hostnames=_netblocks.google.com&type=TXT&useresolver=8.8.4.4&ns=self&nameservers=ns1.google.com returns:

    _netblocks.google.com.  3596    IN  TXT "v=spf1 ip4:216.239.32.0/19 ip4:64.233.160.0/19 ip4:66.249.80.0/20 ip4:72.14.192.0/18 ip4:209.85.128.0/17 ip4:66.102.0.0/20 ip4:74.125.0.0/16 ip4:64.18.0.0/20 ip4:207.126.144.0/20 ip4:173.194.0.0/16 ?all"
    

    Here the formatted list for the Google API console if you need it:

    216.239.32.0/19 
    64.233.160.0/19 
    66.249.80.0/20 
    72.14.192.0/18 
    209.85.128.0/17 
    66.102.0.0/20 
    74.125.0.0/16 
    64.18.0.0/20 
    207.126.144.0/20 
    173.194.0.0/16
    

    Please note the IP ranges may change in the future so you will need to run this query from time to time.

提交回复
热议问题