在安装Ubuntu时建立DNS

目标

在搭建Ubuntu的DNS时,Ubuntu本身会使用DNS端口。将此情况作为备忘录保留下来。

步驟

请在/etc/systemd/resolved.conf文件中添加以下内容。

[Resolve]
DNSStubListener=no

重新启动systemd-resolved。

$ sudo systemctl restart systemd-resolved

好的。