SystemD-analyze blame 显示 21s。
问题似乎在这里:
sudo systemctl status dnscrypt-proxy
Sep 30 22:18:22 HorniSlezsko systemd[1]: Listening on dnscrypt-proxy listening socket.
Sep 30 22:18:24 HorniSlezsko dnscrypt-proxy[1036]: [INFO] + DNS Security Extensions are supported
Sep 30 22:18:24 HorniSlezsko dnscrypt-proxy[1036]: [INFO] + Namecoin domains can be resolved
Sep 30 22:18:24 HorniSlezsko dnscrypt-proxy[1036]: [INFO] + Provider supposedly doesn't keep logs
Sep 30 22:18:24 HorniSlezsko dnscrypt-proxy[1036]: [NOTICE] Starting dnscrypt-proxy 1.6.1
Sep 30 22:18:24 HorniSlezsko dnscrypt-proxy[1036]: [INFO] Generating a new session key pair
Sep 30 22:18:24 HorniSlezsko dnscrypt-proxy[1036]: [INFO] Done
Sep 30 22:18:39 HorniSlezsko dnscrypt-proxy[1036]: [ERROR] Unable to retrieve server certificates
Sep 30 22:18:40 HorniSlezsko dnscrypt-proxy[1036]: [INFO] Refetching server certificates
Sep 30 22:18:45 HorniSlezsko dnscrypt-proxy[1036]: [INFO] Server certificate #808464433 received
一开始它永远无法连接,但总是在 15 秒后成功连接。我唯一做的更改是/lib/systemd/system/dnscrypt-proxy.service
在以下行中:
ExecStart=/usr/sbin/dnscrypt-proxy \
--resolver-name=soltysiak
我尝试过各种解析器,但问题相同。