更新 resolv 配置方法

This commit is contained in:
CallMeR
2023-12-16 16:40:20 +08:00
parent c00e178df3
commit 730773e42b
2 changed files with 1 additions and 20 deletions
+1 -4
View File
@@ -106,11 +106,8 @@ DNSStubListener=no
保存该配置文件后,还需调整系统 `resolv.conf` 配置文件,执行以下命令。 保存该配置文件后,还需调整系统 `resolv.conf` 配置文件,执行以下命令。
```bash ```bash
## 备份 resolv.conf 配置文件
$ sudo mv /etc/resolv.conf /etc/resolv.conf.bak
## 创建 resolv.conf 软链接 ## 创建 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` 端口占用。 配置完成后,需重启 `systemd-resolved.service` 服务,并再次检查系统 `53` 端口占用。
-16
View File
@@ -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