DNS over HTTPS(DoH)是一种安全的域名系统(DNS)协议,旨在通过加密HTTP连接来保护用户的DNS查询隐私和安全性。传统的DNS查询通常是通过明文的UDP或TCP连接发送到DNS服务器的,这样就存在被监听或篡改的风险。而使用DoH,DNS查询被嵌入到HTTPS协议中,通过加密的方式传输,从而提供更高的隐私保护和安全性。
INFO[0000] Adding DNS upstream url="https://1.1.1.1/dns-query" INFO[0000] Adding DNS upstream url="https://1.0.0.1/dns-query" INFO[0000] Starting metrics server addr="127.0.0.1:49312" INFO[0000] Starting DNS over HTTPS proxy server addr="dns://localhost:53"
cloudflared service install 报错: INFO[0000] Failed to copy user configuration. Before running the service, ensure that /etc/cloudflared contains two files, cert.pem and config.yml error="open /usr/local/etc/cloudflared/cert.pem: no such file or directory" 解决方法: cp /etc/cloudflared/cert.pem /usr/local/etc/cloudflared/
再次执行
#loudflared service install
INFO[0000] Copied /usr/local/etc/cloudflared/config.yml to /etc/cloudflared/config.yml INFO[0000] Using Systemd INFO[0000] systemctl: Created symlink from /etc/systemd/system/multi-user.target.wants/cloudflared.service to /etc/systemd/system/cloudflared.service. INFO[0000] systemctl daemon-reload
服务检查及启动
systemctl enable cloudflared systemctl start cloudflared systemctl status cloudflared