2017 Google hosts 持续更新

来源:互联网 发布:淘宝有趣搜索血滴子 编辑:程序博客网 时间:2024/05/21 02:49

hosts所在文件夹


Windows 系统hosts位于 C:\Windows\System32\drivers\etc\hosts
Android(安卓)系统hosts位于 /etc/hosts
Mac(苹果电脑)系统hosts位于 /etc/hosts
iPhone(iOS)系统hosts位于 /etc/hosts
Linux系统hosts位于 /etc/hosts
绝大多数Unix系统都是在 /etc/hosts


注意:
Google、Gmail、维基百科、Twitter、Facebook等必须请用https加密方式打开。
一般这些网站都是SSL加密链接,如:
谷歌学术:https://scholar.google.com/
谷歌:https://www.google.com/ncr
谷歌香港:https://www.google.com.hk/ncr
Twitter:https://twitter.com/?lang=zh-cn
另外可能有的地区&网络(铁通、联通)hosts无法正常使用,这个不是你我能左右的!
建议不要使用国产浏览器,国产软件也是,特别是360,因为国产浏览器即使你使用https
它也会强制你使用默认http,还有就是会上传用户数据,尽可能使用Chrome
下载&修改hosts安全软件可能会“报毒”(误报)你可以暂时退出或者添加信任即可!


老D服务器&百度网盘hosts下载:
文件下载
提取码:https 解压密码:laod2017
里面包含Windows & Mac 、Android & Linux请对号入座。
另外windows可以直接运行批处理命令,hosts会自动替换(如果无法自动替换,请用管理员身份权限手动修改)
注意:批处理命令会直接覆盖现有hosts,如现有hosts内容重要的话请备份后再使用,或者手动修改!



修改hosts后生效方法


Windows

开始 -> 运行 -> 输入cmd -> 在CMD窗口输入ipconfig /flushdns

Linux
终端输入

sudo rcnscd restart

对于systemd发行版,请使用命令

sudo systemctl restart NetworkManager

如果不懂请都尝试下
Mac OS X终端输入

sudo killall -HUP mDNSResponder

Android
开启飞行模式 -> 关闭飞行模式
通用方法
拔网线(断网) -> 插网线(重新连接网络)
如不行请清空浏览器缓存(老D建议不要使用国产浏览器,请使用谷歌Chrome浏览器)


打开dns查询工具网站

http://tool.chinaz.com/dns 直接绑定到hosts文件

最新可用的google hosts文件。镜像:https://coding.net/u/scaffrey/p/hosts/git

https://github.com/racaljk/hosts


出现问题解答


【Linux】sudo ubuntu 无法解析主机的解决方法

sudo gedit /etc/hosts
127.0.1.1       XXX将其修改为:127.0.1.1       (你现在的主机名)

Chapter 5. Network setup

The IP address 127.0.1.1 in the second line of this example may not be found on some other Unix-like systems. TheDebian Installer creates this entry for a system without a permanent IP address as a workaround for some software (e.g., GNOME) as documented in thebug #719621.


更新hosts,sudo:无法解析主机,rcnscd: command not found

#安装nscd(Name Service Cache Daemon)sudo apt-get install nscd#启动nscdsudo /etc/init.d/nscd restart#之后hosts生效

其他方法可见

google学术粉

racaljk/hosts

shadowsocks go 一键安装


参考文献


2017 Google hosts 持续更新【更新于:2017-04-20】

更新hosts,sudo:无法解析主机,rcnscd: command not found

[ubuntu] sudo:无法解析主机问题

【Linux】ubuntu 无法解析主机的解决方法

0 0
原创粉丝点击