banner
半米牙

半米牙的笔记

分享技术、记录生活
email

如何开启实现DOH保护隐私?

安装 nscrypt-proxy 是普遍使用的方法,下面具体安装操作如下(以 Mac 电脑为例)

# 安装
brew install dnscrypt-proxy

# 更改配置,设置日志路径
vim /opt/homebrew/etc/dnscrypt-proxy.toml

# 查找下面四项,并更改为
listen_addresses = ['[::]:53']
log_level = 0
log_file = '/usr/local/log/dnscrypt-proxy.log'
ignore_system_dns = true

# 根据自己需要添加或删除
server_names = ['google', 'google-ipv6']

# 启动
sudo brew services run dnscrypt-proxy

找到自己电脑网络,更改 DNS 设置为 127.0.0.1 ,因为这样设置后在请求访问 DNS 时,请求就会使用加密的方式

dns

加载中...
此文章数据所有权由区块链加密技术和智能合约保障仅归创作者所有。