更新 SmartDNS 配置

This commit is contained in:
CallMeR
2023-07-16 01:52:45 +08:00
parent a8da3fa115
commit 60f0b0940c
+4 -4
View File
@@ -79,7 +79,7 @@ systemd-r 347 systemd-resolve 19u IPv4 13447 0t0 UDP localhost:domain
systemd-r 347 systemd-resolve 20u IPv4 13448 0t0 TCP localhost:domain (LISTEN)
```
当前系统 `53` 端口被 `systemd-resolved.service` 占用,会导致自建内网 DNS 服务时监听端口失败。
当前系统 `53` 端口被 `systemd-resolved.service` 占用,会导致设置 DNS 服务时监听端口失败。
为了正常使用 `53` 端口,需要对 `systemd-resolved.service` 进行配置,逐行执行以下命令。
@@ -186,7 +186,7 @@ $ sudo apt install smartdns
因此,更推荐使用其 Github 仓库中的最新稳定版进行安装,官方仓库请参阅 [pymumu/smartdns](https://github.com/pymumu/smartdns/releases) 。
下载 SmartDNS 最新版本时,请根据系统架构选择对应版本,逐行执行以下命令。
下载 SmartDNS 最新版本时,请根据系统架构选择合适的版本,逐行执行以下命令。
```bash
## 创建存放 SmartDNS 安装包的临时目录
@@ -213,7 +213,7 @@ $ sudo ./install -i
### 6.1.配置 SmartDNS
SmartDNS 配置较为复杂,可按需制定各类 DNS 请求规则,建议先查阅官方提供的 [配置指导](https://pymumu.github.io/smartdns/config/basic-config/) 和 [配置选项](https://pymumu.github.io/smartdns/configuration/) 。
SmartDNS 配置较为复杂,可按需制定各类 DNS 请求规则,建议先查阅官方提供的 [配置指导](https://pymumu.github.io/smartdns/config/basic-config/) 和 [配置选项](https://pymumu.github.io/smartdns/configuration/) 。
若需使用 SmartDNS 的广告过滤功能,则需下载其广告过滤配置文件,为可选操作。
@@ -238,7 +238,7 @@ $ sudo nvim /etc/smartdns/smartdns.conf
在编辑器对话框中输入以下内容,并保存。
**额外说明:**
**额外说明:**
- 当不使用 `anti-ad-smartdns.conf` 进行广告过滤时,需移除主配置文件中对应配置项。