我正在尝试更改 Debian 12 VPS 上的 DNS 设置,我的意思是,我想使用像 1.1.1.1 这样的公共解析器,而不是我的 VPS 主机的解析器。
我记得在 Debian 11 中我可以编辑/etc/resolv.conf文件,然后重新启动resolvconf.service,一切都会正常工作。
然而,在 Debian 12 上,当我去编辑它时,它/etc/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 "resolvectl status" to see details about the actual nameservers.
Run Code Online (Sandbox Code Playgroud)
那么,如果我无法编辑此文件,我可以在哪里配置我的解析器?
我尝试阅读man resolvconf,man resolv.conf但这让我更加困惑。
有任何想法吗?
domain-name-system debian resolv.conf nameserver debian-bookworm