更新 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` 配置文件,执行以下命令。
```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` 端口占用。