mirror of
https://gitee.com/callmer/pve_toss_notes.git
synced 2026-08-31 05:52:52 +08:00
更新 resolv 配置方法
This commit is contained in:
+1
-4
@@ -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` 端口占用。
|
||||
|
||||
Reference in New Issue
Block a user