代码改变世界

GoogleDoc打不开

2010-11-08 15:29  cppguy  阅读(3101)  评论(0编辑  收藏  举报
在hosts里添加Google Docs的解析IP直接绕过DNS查询,就能正常使用https的Google Docs了。 

hosts文件的位置: 

1、windows:C:\Windows\System32\drivers\etc\hosts 

2、Linux:/etc/hosts 

用记事本打开hosts文件,下面这些内容添加到hosts文件的顶部: 
Java代码 
  1. 209.85.225.101 docs.google.com  
  2.   
  3. 74.125.127.100 writely.google.com  
  4.   
  5. 74.125.127.139 spreadsheets.google.com  


保存hosts,重启浏览器后,https方式的Google Docs就能正常访问了。 

万一Gmail也遭遇到Google Docs的情况怎么办?用同样的方法,在hosts文件里加入Gmail的IP即可,为方便使用,我将提供有https方式的Google服务及其的IP列表如下: 

Java代码 
  1. 209.85.147.109 pop.gmail.com  
  2.   
  3. 209.85.147.109 smtp.gmail.com  
  4.   
  5. 66.102.7.19 mail.google.com  
  6.   
  7. 209.85.225.101 docs.google.com  
  8.   
  9. 209.85.225.102 groups.google.com  
  10.   
  11. 74.125.127.139 spreadsheets.google.com  
  12.   
  13. 74.125.127.100 services.google.com  
  14.   
  15. 74.125.127.100 writely.google.com  
  16.   
  17. 74.125.127.100 sites.google.com  
  18.   
  19. 209.85.225.104 reader.google.com  
  20.   
  21. 74.125.127.101 calendar.google.com