使用 dnscrypt-proxy 解决 dns 被劫持污染问题
今天从github下载文件,wget 出现以下报错:
1 | Resolving raw.githubusercontent.com (raw.githubusercontent.com)... 0.0.0.0, :: |
注意到 raw.githubusercontent.com 被解析为 0.0.0.0 ,明显是错误的, 使用 dig raw.githubusercontent.com 测试可以看到 ip 被解析为了 127.0.0.1 。
我的dns是谷歌的dns 8.8.8.8 , 谷歌明显不会这么解析,十有八九这种情况是 dns 被运营商劫持污染了,搜一下解决方法,决定使用 dnscrypt-proxy 的加密 dns 来防止 dns 被劫持污染。
1 | 安装 |
This piece of writing is an original article, utilizing theCC BY-NC-SA 4.0Agreement. For complete reproduction, please acknowledge the source as Courtesy ofBlog of Shane Hu