From 730773e42b7c2e1e6cd145725233c205e4e4841b Mon Sep 17 00:00:00 2001 From: CallMeR <9463297+callmer@user.noreply.gitee.com> Date: Sat, 16 Dec 2023 16:40:20 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20resolv=20=E9=85=8D?= =?UTF-8?q?=E7=BD=AE=E6=96=B9=E6=B3=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- 06.PVE制作DNS服务器.md | 5 +---- src/debian/debian_ts_resolv.conf | 16 ---------------- 2 files changed, 1 insertion(+), 20 deletions(-) delete mode 100644 src/debian/debian_ts_resolv.conf diff --git a/06.PVE制作DNS服务器.md b/06.PVE制作DNS服务器.md index 8ac559d..8e18220 100644 --- a/06.PVE制作DNS服务器.md +++ b/06.PVE制作DNS服务器.md @@ -106,11 +106,8 @@ DNSStubListener=no 保存该配置文件后,还需调整系统 `resolv.conf` 配置文件,执行以下命令。 ```bash -## 备份 resolv.conf 配置文件 -$ sudo mv /etc/resolv.conf /etc/resolv.conf.bak - ## 创建 resolv.conf 软链接 -$ sudo ln -s /run/systemd/resolve/resolv.conf /etc/resolv.conf +$ sudo ln -sf /run/systemd/resolve/resolv.conf /etc/resolv.conf ``` 配置完成后,需重启 `systemd-resolved.service` 服务,并再次检查系统 `53` 端口占用。 diff --git a/src/debian/debian_ts_resolv.conf b/src/debian/debian_ts_resolv.conf deleted file mode 100644 index c40e910..0000000 --- a/src/debian/debian_ts_resolv.conf +++ /dev/null @@ -1,16 +0,0 @@ -# This configuration file is customized by fox, -# Optimize system resolve parameters for local TS server. -# -# For use local domain, -# please modify 'search' parameter according to -# your network environment. -# -# eg: -# search fox.home.arpa - -nameserver 127.0.0.1 -nameserver ::1 - -options edns0 timeout:1 trust-ad -search fox.home.arpa -