mirror of
https://gitee.com/callmer/pve_toss_notes.git
synced 2026-08-31 22:12:51 +08:00
优化文案描述
This commit is contained in:
+13
-15
@@ -238,16 +238,6 @@ $ sudo systemctl enable smartdns.service
|
||||
|
||||
`SmartDNS` 配置较为复杂,可按需制定各类 DNS 请求规则,建议先查阅官方提供的 [配置指导](https://pymumu.github.io/smartdns/config/basic-config/) 和 [配置选项](https://pymumu.github.io/smartdns/configuration/) 。
|
||||
|
||||
若需使用 `SmartDNS` 过滤广告,则需下载其广告过滤配置文件,为可选操作。
|
||||
|
||||
```bash
|
||||
## 创建 SmartDNS 配置文件目录
|
||||
$ sudo mkdir -p /etc/smartdns.d
|
||||
|
||||
## 下载广告过滤配置文件
|
||||
$ sudo curl -LR -o /etc/smartdns.d/anti-ad.smartdns.conf https://anti-ad.net/anti-ad-for-smartdns.conf
|
||||
```
|
||||
|
||||
修改 `SmartDNS` 主配置文件之前,建议关闭 `SmartDNS` 并清理 DNS 缓存文件。
|
||||
|
||||
```bash
|
||||
@@ -337,11 +327,21 @@ server-https https://dns.alidns.com/dns-query
|
||||
|
||||
### 6.2. SmartDNS 插件
|
||||
|
||||
本步骤为可选操作,主要用于安装 `SmartDNS` 特殊配置文件,并加速中国境内域名的解析速度。
|
||||
本步骤为可选操作,通过安装特殊的 `SmartDNS` 配置文件,以屏蔽广告或加快中国境内域名的解析速度。
|
||||
|
||||
关于插件的详细介绍,请参阅 [SmartDNS China List 安装脚本](https://gitee.com/callmer/smartdns_china_list_installer) 。
|
||||
若需使用 `SmartDNS` 屏蔽广告,则需下载广告规则配置文件。
|
||||
|
||||
该插件通过 `bash` 脚本安装,执行以下命令。
|
||||
```bash
|
||||
## 创建 SmartDNS 配置文件目录
|
||||
$ sudo mkdir -p /etc/smartdns.d
|
||||
|
||||
## 下载广告规则配置文件
|
||||
$ sudo curl -LR -o /etc/smartdns.d/anti-ad.smartdns.conf https://anti-ad.net/anti-ad-for-smartdns.conf
|
||||
```
|
||||
|
||||
`SmartDNS` 的加速规则通过 `bash` 脚本安装,脚本生成的配置文件位于 `/etc/smartdns.d` 目录。
|
||||
|
||||
关于脚本的详细介绍,请参阅 [SmartDNS China List 安装脚本](https://gitee.com/callmer/smartdns_china_list_installer) 。
|
||||
|
||||
```bash
|
||||
## 下载插件安装脚本
|
||||
@@ -357,8 +357,6 @@ $ sudo chattr +i /opt/smartdns_plugin.sh
|
||||
$ sudo bash /opt/smartdns_plugin.sh
|
||||
```
|
||||
|
||||
脚本执行完成后,生成的 `SmartDNS` 配置文件位于 `/etc/smartdns.d` 目录。
|
||||
|
||||
### 6.3.定时任务
|
||||
|
||||
本步骤为可选操作,主要用于设置 `SmartDNS` 定时更新广告过滤配置文件和定时重启。
|
||||
|
||||
Reference in New Issue
Block a user