Wayne
井底的蛙--一直仰望着天空
posts - 16,comments - 6,trackbacks - 0
最近Gmail基本登陆不上去,Google的各种服务又开始时断时续,网上查到修改hosts文件的方法,果然奏效。
1.打开hosts文件,路径在C:\Windows\System32 \drivers\etc\ ;在hosts文件的末尾添加了如下行:
##Google Service
##Chrome 网上应用店
203.208.46.146 chrome.google.com
203.208.46.146 clients0.google.com
203.208.46.146 clients1.google.com
203.208.46.146 clients2.google.com
203.208.46.146 clients3.google.com
203.208.46.146 clients4.google.com
203.208.46.146 www.googleusercontent.com
203.208.46.146 lh0.googleusercontent.com
203.208.46.146 lh1.googleusercontent.com
203.208.46.146 lh2.googleusercontent.com
203.208.46.146 lh3.googleusercontent.com
203.208.46.146 lh4.googleusercontent.com
203.208.46.146 lh5.googleusercontent.com
203.208.46.146 lh6.googleusercontent.com
203.208.46.146 clients1.googleusercontent.com
203.208.46.146 clients2.googleusercontent.com

##网页快照
203.208.46.146 webcache.googleusercontent.com

##Google SSL
203.208.46.146 encrypted.google.com
203.208.46.146 encrypted.google.com.hk

##Google Docs
203.208.46.146 docs.google.com
203.208.46.146 docs0.google.com
203.208.46.146 docs1.google.com
203.208.46.146 docs2.google.com
203.208.46.146 docs3.google.com
203.208.46.146 spreadsheets.google.com
203.208.46.146 spreadsheets0.google.com
203.208.46.146 spreadsheets1.google.com
203.208.46.146 spreadsheets2.google.com
203.208.46.146 spreadsheets3.google.com

#Gmail
203.208.46.146 mail.google.com
203.208.46.146 chatenabled.mail.google.com #Gmail中Gtalk聊天服务

##Google 搜索
203.208.46.146 www.google.com

##Google preview
203.208.46.146 www.googlepreview.com

##Google 翻译
203.208.46.146 translate.google.com
203.208.46.146 translate.googleapis.com

##Google 搜索建议(IE9)
203.208.46.146 clients5.google.com

##Google code
203.208.46.146 code.google.com

##Picasa 网络相册
203.208.46.146 picasaweb.google.com
203.208.46.146 lh0.ggpht.com
203.208.46.146 lh1.ggpht.com
203.208.46.146 lh2.ggpht.com
203.208.46.146 lh3.ggpht.com
203.208.46.146 lh4.ggpht.com
203.208.46.146 lh5.ggpht.com
203.208.46.146 lh6.ggpht.com
203.208.46.146 lh7.ggpht.com
203.208.46.146 lh8.ggpht.com
203.208.46.146 lh8.ggpht.com
203.208.46.146 lh9.ggpht.com
203.208.46.146 lh6.google.com

##Google 个人资料
203.208.46.146 profiles.google.com
203.208.46.146 browsersync.google.com

##Google
+
203.208.46.146 talkgadget.google.com ##Google+中的聊天服务
203.208.46.146 ssl.gstatic.com
203.208.46.146 images-pos-opensocial.googleusercontent.com
203.208.46.146 images1-focus-opensocial.googleusercontent.com
203.208.46.146 images2-focus-opensocial.googleusercontent.com
203.208.46.146 images3-focus-opensocial.googleusercontent.com
203.208.46.146 images4-focus-opensocial.googleusercontent.com
203.208.46.146 images5-focus-opensocial.googleusercontent.com
203.208.46.146 images6-focus-opensocial.googleusercontent.com
203.208.46.146 plus.google.com

##Download 下载
203.208.46.146 dl.google.com
203.208.46.146 dl-ssl.google.com

##Groups
203.208.46.146 groups.google.com

##Google URL Shortener
203.208.46.146 goo.gl

##Google app engine
203.208.46.146 appengine.google.com
2.保存修改之后,在命令行下输入命令:
ipconfig /flushdns

关于Windows7:
windows 7 下的hosts文件位置没变,依然在 C:\Windows\System32\drivers\etc 目录下。但如果直接打开编辑,保存时会提示权限不够。最简单的方法是:先复制hosts文件到别的地方,修改完了再覆盖回来就搞定了。中间会提示目标文件夹拒绝访问,需要提供管理员权限,点击 继续 即可。
posted on 2011-09-27 13:43 waynewan 阅读(6572) 评论(4)  编辑  收藏

FeedBack:
# re: 修改DNS,访问google各项业务[未登录]
2011-09-29 12:37 | a
设置后无法访问google reader了?  回复  更多评论
  
# re: 修改DNS,访问google各项业务
2011-09-30 13:27 | kyun
@a
用https访问google reader  回复  更多评论
  
# re: 修改DNS,访问google各项业务
2013-10-24 13:57 | 金日
很好,谢谢共享。  回复  更多评论
  
# re: 修改DNS,访问google各项业务
2014-12-07 19:35 | ArJo
有部分带证书服务的Google网站会阻止访问。。。  回复  更多评论
  

只有注册用户登录后才能发表评论。


网站导航: