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