DNSCrypt通过加密DNS服务器通信,来实现保护用户的目的。如防止运营商的DNS劫持,广告跟踪植入,保护个人隐私。
DNSCrypt Proxy可以让我们使用这项功能,并且支持非常多的平台
#macOS安装
brew install dnscrypt-proxy
其他平台的[安装指南](https://github.com/jedisct1/dnscrypt-proxy/wiki)
[其他平台的安装包](https://github.com/jedisct1/dnscrypt-proxy/releases)
此软件macOS版本的配置文件在/usr/local/etc/dnscrypt-proxy.toml
其他版本视解压位置而定,但名字同样是dnscrypt-proxy.toml
#软件的监听地址,如果机器不支持ipv6,就把ipv6监听部分删除,不然会报错
listen_addresses = ['127.0.0.1:53', '[::1]:53']
#macOS的启动命令
sudo brew services start dnscrypt-proxy
#Linux的启动命令
sudo ./dnscrypt-proxy -service install //第一次启动要先安装
sudo ./dnscrypt-proxy -service start //安装后启动的命令
与DNSmaqs联用,DNSCrypt-proxy作为上级DNS,创建纯净的解析环境
添加这个配置文件dnscrypt-proxy-config可以提高解析国内域名的速度
扫码关注腾讯云开发者
领取腾讯云代金券
Copyright © 2013 - 2025 Tencent Cloud. All Rights Reserved. 腾讯云 版权所有
深圳市腾讯计算机系统有限公司 ICP备案/许可证号:粤B2-20090059 深公网安备号 44030502008569
腾讯云计算(北京)有限责任公司 京ICP证150476号 | 京ICP备11018762号 | 京公网安备号11010802020287
Copyright © 2013 - 2025 Tencent Cloud.
All Rights Reserved. 腾讯云 版权所有