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

載入中......
此文章數據所有權由區塊鏈加密技術和智能合約保障僅歸創作者所有。