我正在尝试通过TLS设置DNS,请参阅
这里: https : //www.privacyfoundation.de/wiki/SSL-DNS.html 。
但我不明白为什么我的设置不工作。
这是我的stunnelconfiguration:
sslVersion = all debug = 5 pid = /stunnel.pid client = yes verify=0 [dns] accept = 5666 connect = 81.187.221.24:853 PSKsecrets = /etc/stunnel/dnssecret.txt
我从这个列表中select了一个随机服务器:
https://dnsprivacy.org/wiki/display/DP/DNS+Privacy+Test+Servers 。
在Stunnel开始使用这个configuration后,我开始使用socat:
sudo socat udp4-listen:53,reuseaddr,fork tcp:localhost:5666。
并使用dig @ 127.0.0.1 something.com做简单的dns查询。
我只是从挖掘一个简单的DNS超时消息。
这是stunnel日志:
Connection closed: 34 byte(s) sent to TLS, 0 byte(s) sent to socket LOG5[2]: Connection closed: 34 byte(s) sent to TLS, 0 byte(s) sent to socket LOG5[1]: Connection closed: 34 byte(s) sent to TLS, 0 byte(s) sent to socket
有谁知道如何解决这个问题?