几天以来,我注意到在新安装的 Ubuntu 22.04 服务器上运行 USG 强化工具会破坏 DNS 解析。例如,运行它dig google.com
会抛出一个错误:
;; communications error to 127.0.0.53#53: timed out
;; communications error to 127.0.0.53#53: timed out
;; communications error to 127.0.0.53#53: timed out
; <<>> DiG 9.18.18-0ubuntu0.22.04.1-Ubuntu <<>> google.com
;; global options: +cmd
;; no servers could be reached
我查看了此服务器中的几乎所有 DNS 设置,并阅读了多个 DNS 故障排除教程,但尚未找到解决方法。我还将此服务器与运行相同配置的另一台服务器(22.04 并使用 USG 模块进行了强化)进行了比较,到目前为止我注意到的唯一区别是输出中resolvectl
缺少Current DNS Server: 2a01:4ff:ff00::add:1
以下行:
Link 2 (eth0)
Current Scopes: DNS
Protocols: +DefaultRoute +LLMNR -mDNS -DNSOverTLS DNSSEC=no/unsupported
DNS Servers: 2a01:4ff:ff00::add:1 2a01:4ff:ff00::add:2 185.12.64.1 185.12.64.2
任何建议都将非常感谢。