【问题标题】:QEMU DNS resolver not working (properly configured within the VM)QEMU DNS 解析器不工作(在 VM 中正确配置)
【发布时间】:2022-12-10 01:21:40
【问题描述】:

从 VM 映像中无法解析地址。

ping 返回 ping: google.com: Name or service not knownresolvectl query google.com server or network returns error refused

DNS 服务已按照 Arch Wiki 中的描述正确配置。

【问题讨论】:

    标签: dns qemu resolve


    【解决方案1】:

    主持人systemd 解析配置未正确配置。

    文件 /etc/resolv.conf 为空。使用 arch wiki 中描述的存根方法解决了 VM 中的问题 (ln -rsf /run/systemd/resolve/stub-resolv.conf /etc/resolv.conf)。

    不确定具体是什么原因导致的问题,但我没想到它是由主机操作系统引起的

    【讨论】:

      猜你喜欢
      • 2010-10-12
      • 1970-01-01
      • 2013-11-28
      • 2011-05-29
      • 2020-04-16
      • 1970-01-01
      • 2017-06-02
      • 1970-01-01
      • 2021-04-16
      相关资源
      最近更新 更多