ubuntu16.04修改host上外網

1.打开hosts文件:

   sudo emacs /etc/hosts

2.加入下面的内容

#chrome同步服务器

203.208.46.132 chrome.google.com
203.208.46.132 clients2.google.com
203.208.46.132 clients2.googleusercontent.com
203.208.46.132 clients4.google.com
74.125.39.99 clients4.google.com
203.208.46.132 tools.google.com
203.208.46.132 browsersync.google.com
203.208.46.132 browsersync.l.google.com

#我常用的google服务

#Goolge services
74.125.71.99 www.google.com
74.125.127.101 reader.google.com
74.125.71.17 mail.google.com

3.重启网络

  sudo /etc/init.d/networking restart

目前還不起作用!

原文地址:https://www.cnblogs.com/ysdu/p/6002145.html