2022-05-06 14:08 更新于 2022-05-06 14:08 25 浏览 Ubuntu 20.04 DNS 设置 DNS Ubuntu 编辑 /etc/systemd/resolved.conf 文件,添加 DNS Server TEXT复制代码DNS=10.0.0.1 192.168.0.1 重启 resolved 服务 Bash复制代码systemctl restart systemd-resolved 创建服务生成的解析文件软链接到系统解析文件 Bash复制代码ln -fs /run/systemd/resolve/resolv.conf /etc/resolv.conf