在 ubuntu 中,有两种解决方案提供 dns 缓存和配置功能。一种是 resolvconf.service(resolvconf 包的一部分)。另一种是 systemd-resolved.service(systemd 包的一部分)。在某些情况下,一种解决方案会被激活,而在某些情况下,另一种解决方案会被激活。这两种解决方案都是 ubuntu 系统核心的一部分。smbd 知道为什么会这样吗?
答案1
我正在调查为什么 NetworkManager、systemd-resolved 和 resolvconf 的文档在 Ubuntu 如何执行 DNS 方面都不一致。
Ubuntu 似乎同时使用 resolvconf和systemd-solved 一起处理 DNS 解析,我发现小评论在 GitHub 问题上:
/etc/resolv.conf->/运行/resolvconf/resolv.conf
# Dynamic resolv.conf(5) file for glibc resolver(3) generated by resolvconf(8) # DO NOT EDIT THIS FILE BY HAND -- YOUR CHANGES WILL BE OVERWRITTEN # 127.0.0.53 is the systemd-resolved stub resolver. # run "systemd-resolve --status" to see details about the actual nameservers. nameserver 127.0.0.53 search lan
热门评论Github 公共关系修复上述问题表明从 Ubuntu 17.10+ 开始此行为是 systemd-resolved 和 resolvconf 的默认行为:
... 它在 Ubuntu 17.10+ 上默认使用