Archived
更新 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` 端口占用。
|
||||
|
||||
@@ -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