Mac上安装配置使用Pcap_DNSProxy
1. 安装
brew install pcap_dnsproxy
2.配置
vim /usr/local/etc/pcap_dnsproxy/Config.ini
3.启动
sudo brew services start pcap_dnsproxy
4.change DNS server to 127.0.0.1
如果你不想调整参数的话,直接1、3、4就可以正常使用了。以下为我改了的参数
记录:
Outgoing Protocol = IPv4 + TCP
Cache Parameter = 256
Default TTL = 1800
Local Hosts = 1
IPv4 Main DNS Address = 208.67.220.220:443
IPv4 Alternate DNS Address = 8.8.8.8:53|8.8.4.4:53|208.67.222.222:5353
Multiple Request Times = 1
TCP Fast Open = 1
DNSCurve Protocol = IPv4 + TCP
EDNS Label = 1
DNSCurve = 1
DNSCurve Encryption = 1
你也可以修改不限于以上的参数:
https://github.com/chengr28/Pcap_DNSProxy/blob/master/Documents/ReadMe.zh-Hans.txt
错误:
1.如果你之前安装过 pcap_dnsproxy,先 brew uninstall pcap_dnsproxy,然后 rm -rf /usr/local/etc/pcap_dnsproxy,然后:
brew install pcap_dnsproxy
问题:
如有问题请在评论区留言,欢迎拍砖
网友评论