解决访问google和google code不上

程序员经常用google,但是蛋疼的是经常会崩!

而身为程序员的我们,知道域名(www.google.com)->dns->ip地址)

而对应windows的设置文件为: hosts (这个文件在我的PC:C:\Windows\System32\drivers\etc)

用“记事本”打开,往后面加入下面这段

74.125.128.199  www.google.com
209.85.225.99  www.google.com
209.85.225.100  www.google.com
209.85.225.101  www.google.com
209.85.225.102  www.google.com
209.85.225.103  www.google.com
209.85.225.104  www.google.com
209.85.225.105  www.google.com
209.85.225.106  www.google.com
64.233.183.136  www.google.com
64.233.183.137  www.google.com
64.233.183.138  www.google.com
64.233.183.139  www.google.com
74.125.39.105  www.l.google.com
#Images
74.125.39.99  images.google.com
74.125.39.103  images.google.com
74.125.39.104  images.google.com
74.125.39.105  images.google.com
74.125.39.106  images.google.com
74.125.39.147  images.google.com
74.125.77.99  tbn0.google.com
74.125.77.99  tbn1.google.com
74.125.77.103  tbn2.google.com
74.125.77.104  tbn3.google.com
74.125.77.105  tbn4.google.com
74.125.77.106  tbn5.google.com
74.125.77.147  tbn6.google.com
#Shopping
74.125.39.99  base0.googlehosted.com
74.125.39.103  base1.googlehosted.com
74.125.39.104  base2.googlehosted.com
74.125.39.105  base3.googlehosted.com
74.125.39.106  base4.googlehosted.com
74.125.39.147  base5.googlehosted.com
#Books
74.125.39.100  books.google.com
74.125.39.101  books.google.com
74.125.39.102  books.google.com
74.125.39.113  books.google.com
74.125.39.138  books.google.com
74.125.39.139  books.google.com
74.125.39.100  bks0.books.google.com
74.125.39.100  bks1.books.google.com
74.125.39.101  bks2.books.google.com
74.125.39.102  bks3.books.google.com
74.125.39.113  bks4.books.google.com
74.125.39.138  bks5.books.google.com
74.125.39.139  bks6.books.google.com
74.125.39.113  bks7.books.google.com
74.125.39.138  bks8.books.google.com
74.125.39.139  bks9.books.google.com
#Video
74.125.39.100  video.google.com
74.125.39.101  video.google.com
74.125.39.102  video.google.com
74.125.39.113  video.google.com
74.125.39.138  video.google.com
74.125.39.139  video.google.com
74.125.39.100  0.gvt0.com
74.125.39.101  1.gvt0.com
74.125.39.102  2.gvt0.com
74.125.39.113  3.gvt0.com
74.125.39.138  4.gvt0.com
74.125.39.139  5.gvt0.com
#Mail(POP3/SMTP)
209.85.147.109  pop.gmail.com
209.85.147.109  smtp.gmail.com
#WebMail
64.233.189.18  mail.google.com
64.233.189.19  mail.google.com
64.233.189.83  mail.google.com
64.233.189.18  www.gmail.com
64.233.189.19  www.gmail.com
64.233.189.83  www.gmail.com
64.233.189.19  googlemail.l.google.com
#Docs
64.233.189.101  writely-china.l.google.com
64.233.189.101  writely.l.google.com
64.233.189.102  docs.google.com
64.233.189.101  docs.google.com
64.233.189.100  docs.google.com
#Map
64.233.189.104  map.google.com
64.233.189.99  map.google.com
64.233.189.147  map.google.com
64.233.189.104  maps.google.com
64.233.189.99  maps.google.com
64.233.189.147  maps.google.com
64.233.189.99  maps.gstatic.com
203.208.39.93  khm.google.com
203.208.39.91  mt0.google.com
203.208.39.93  mt1.google.com
203.208.39.91  mt2.google.com
203.208.39.91  mt.l.google.com
64.233.189.99  maps.l.google.com
#Scholar
64.233.189.99  scholar.google.com
64.233.189.104  scholar.google.com
64.233.189.147  scholar.google.com
64.233.189.104  scholar.l.google.com
#Group
64.233.189.102  groups.google.com
64.233.189.100  groups.google.com
64.233.189.101  groups.google.com
64.233.189.101  groups.l.google.com
#Picasa
74.125.39.147  picasa.google.com
74.125.39.91  photos.google.com
74.125.39.91  picasaweb.google.com
74.125.39.93  picasaweb.google.com
74.125.39.136  picasaweb.google.com
74.125.39.190  picasaweb.google.com
74.125.39.91  lh0.ggpht.com
74.125.39.93  lh1.ggpht.com
74.125.39.136  lh2.ggpht.com
74.125.39.190  lh3.ggpht.com
74.125.39.91  lh4.ggpht.com
74.125.39.93  lh5.ggpht.com
74.125.39.136  lh6.ggpht.com
74.125.39.190  lh7.ggpht.com
#Translate
74.125.39.100  translate.google.com
74.125.39.101  translate.google.com
74.125.39.102  translate.google.com
74.125.39.113  translate.google.com
74.125.39.138  translate.google.com
74.125.39.139  translate.google.com
#Reader
74.125.39.99  reader.google.com
74.125.39.103  reader.google.com
74.125.39.104  reader.google.com
74.125.39.105  reader.google.com
74.125.39.106  reader.google.com
#Sites
64.233.161.9  sites.google.com
74.125.53.9  sites.google.com
74.125.39.102  sites.google.com
74.125.39.139  sites.google.com
74.125.45.9  sites.google.com
74.125.39.139  sites.google.com
#Code
74.125.53.9  code.google.com
74.125.45.9  code.google.com
64.233.161.9  code.google.com
74.125.39.102  code.google.com
209.85.137.9  code.google.com
74.125.39.139  code.l.google.com
#Labs
74.125.39.141  www.googlelabs.com
74.125.39.141  appspot.l.google.com
74.125.39.100  labs.google.com
74.125.39.101  labs.google.com
74.125.39.102  labs.google.com
74.125.39.113  labs.google.com
74.125.39.138  labs.google.com
74.125.39.139  labs.google.com
#Knol
74.125.39.100  knol.google.com
74.125.39.101  knol.google.com
74.125.39.102  knol.google.com
74.125.39.113  knol.google.com
74.125.39.138  knol.google.com
74.125.39.139  knol.google.com
#Sketchup
74.125.39.99  sketchup.google.com
74.125.39.103  sketchup.google.com
74.125.39.104  sketchup.google.com
74.125.39.105  sketchup.google.com
74.125.39.106  sketchup.google.com
#Pack
74.125.39.99  pack.google.com
74.125.39.103  pack.google.com
74.125.39.104  pack.google.com
74.125.39.105  pack.google.com
74.125.39.106  pack.google.com
#News
74.125.39.99  news.google.com
74.125.39.103  news.google.com
74.125.39.104  news.google.com
74.125.39.105  news.google.com
74.125.39.106  news.google.com
74.125.39.147  news.google.com
74.125.39.99  nt0.ggpht.com
74.125.39.103  nt1.ggpht.com
74.125.39.104  nt2.ggpht.com
74.125.39.105  nt3.ggpht.com
74.125.39.106  nt4.ggpht.com
74.125.39.147  nt5.ggpht.com
#Calendar
74.125.39.100  calendar.google.com
74.125.39.101  calendar.google.com
74.125.39.102  calendar.google.com
74.125.39.113  calendar.google.com
74.125.39.138  calendar.google.com
74.125.39.139  calendar.google.com
#Blogger
74.125.39.191  www.blogger.com
74.125.39.191  blogger.l.google.com
74.125.39.191  blogger.google.com
#Orkut
74.125.47.85  www.orkut.com
74.125.47.86  www.orkut.com
74.125.47.85  orkut.google.com
74.125.47.86  orkut.l.google.com
#Youtube
74.125.39.100  www.youtube.com
74.125.39.101  www.youtube.com
74.125.39.102  www.youtube.com
74.125.39.113  www.youtube.com
#Toolbar
74.125.39.100  toolbar.google.com
74.125.39.101  toolbar.google.com
74.125.39.102  toolbar.google.com
74.125.39.113  toolbar.google.com
#Apps
74.125.39.99  apps.google.com
74.125.39.103  apps.google.com
74.125.39.104  apps.google.com
74.125.39.115  apps.google.com
#Chrome
74.125.39.99  chrome.google.com
74.125.39.103  chrome.google.com
74.125.39.104  chrome.google.com
74.125.39.115  chrome.google.com
74.125.47.139  clients2.google.com
#Finance
74.125.39.99  finance.google.com
74.125.39.103  finance.google.com
74.125.39.104  finance.google.com
74.125.39.115  finance.google.com
#Desktop
74.125.39.99  desktop.google.com
74.125.39.103  desktop.google.com
74.125.39.104  desktop.google.com
74.125.39.115  desktop.google.com
#Ajax
74.125.53.9  ajax.googleapis.com
74.125.45.9  ajax.googleapis.com
64.233.161.9  ajax.googleapis.com
209.85.137.9  ajax.googleapis.com
72.14.203.9  googleapis-ajax.l.google.com
#Modules
74.125.39.132  1.ig.gmodules.com
74.125.39.132  2.ig.gmodules.com
74.125.39.132  3.ig.gmodules.com
74.125.39.132  4.ig.gmodules.com
74.125.39.132  5.ig.gmodules.com
74.125.39.132  6.ig.gmodules.com
#Misc
64.233.189.101  id.google.com
64.233.189.102  id.google.com
64.233.189.100  id.google.com
64.233.189.100  id.l.google.com
74.125.39.132  skins.gmodules.com
74.125.39.132  googlehosted.l.google.com
74.125.39.132  img0.gmodules.com
74.125.39.99  blogsearch.google.com
74.125.39.99  www2.l.google.com
74.125.39.99  www.gstatic.com
74.125.39.100  www3.l.google.com
74.125.39.99  buttons.googlesyndication.com


#Chrome plugin
#Chrome官方扩展中心
74.125.39.99  chrome.google.com
74.125.39.99  clients2.google.com


#Chrome官方主题中心
74.125.153.138  tools.google.com


#谷歌拼音同步:
74.125.47.139  clients2.google.com
74.125.39.99  clients4.google.com
209.85.225.100  clients4.google.com
64.233.183.139  clients4.google.com
64.233.183.139  docs.google.com
74.125.19.101  docs.google.com
74.125.19.101  chrome.google.com
74.125.47.139  clients2.google.com
74.125.153.138  tools.google.com
74.125.39.99  docs.google.com
209.85.225.101  docs.google.com
74.125.127.100  writely.google.com
74.125.127.139  spreadsheets.google.com
209.85.147.109  pop.gmail.com
209.85.147.109  smtp.gmail.com
66.102.7.19  mail.google.com
209.85.225.102  groups.google.com
74.125.127.100  services.google.com
74.125.127.100  sites.google.com
209.85.225.104  reader.google.com
74.125.127.101  calendar.google.com

如果经常用google code 的话,可以在cmd命令行下,输入: ping www.google.com.hk


C:\Users\Administrator>ping www.google.com.hk
正在 Ping www-wide.l.google.com [74.125.128.199] 具有 32 字节的数据:
来自 74.125.128.199 的回复: 字节=32 时间=469ms TTL=35
来自 74.125.128.199 的回复: 字节=32 时间=474ms TTL=35
来自 74.125.128.199 的回复: 字节=32 时间=476ms TTL=35
来自 74.125.128.199 的回复: 字节=32 时间=477ms TTL=35


得到IP地址,然后添加到hosts文件的末尾:

    74.125.128.199 code.google.com 
  74.125.128.199 encrypted.google.com 
  74.125.128.199 suggestqueries.google.com 
  74.125.128.199 mail.google.com 
  74.125.128.199 groups.google.com 
  74.125.128.199 groups.google.com.hk 
  74.125.128.199 docs.google.com 
  74.125.128.199 docs0.google.com 
  74.125.128.199 docs1.google.com 
  74.125.128.199 spreadsheets.google.com 
  74.125.128.199 spreadsheets0.google.com 
  74.125.128.199 webcache.googleusercontent.com 
  74.125.128.199 sites.google.com 
  74.125.128.199 talkgadget.google.com 
  74.125.128.199 clients1.google.com 
  74.125.128.199 clients2.google.com 
  74.125.128.199 clients3.google.com 
  74.125.128.199 clients4.google.com

最后在cmd命令行下输入:

C:\Users\Administrator>ipconfig /flushdns


Windows IP 配置


已成功刷新 DNS 解析缓存。


希望都可以成功哈,感谢提供这个方法的网友,忘记之前在哪里看过了,把它记录下来分享给大家!

你可能感兴趣的:(解决访问google和google code不上)