mirror of
https://gitee.com/callmer/pve_toss_notes.git
synced 2026-08-31 05:52:52 +08:00
更新文案描述
This commit is contained in:
+2
-7
@@ -109,7 +109,7 @@ EOF
|
||||
|
||||
```bash
|
||||
## 创建 resolv.conf 软链接
|
||||
$ sudo ln -sf /run/systemd/resolve/stub-resolv.conf /etc/resolv.conf
|
||||
$ sudo ln -sf /run/systemd/resolve/resolv.conf /etc/resolv.conf
|
||||
```
|
||||
|
||||
配置完成后,需重启 `systemd-resolved.service` 服务,并再次检查系统 `53` 端口占用。
|
||||
@@ -277,6 +277,7 @@ $ sudo crontab -e
|
||||
20 9 * * * /usr/bin/curl --retry-connrefused --retry 5 --retry-delay 5 --retry-max-time 60 -fsSLR -o /etc/smartdns.d/anti-ad.smartdns.conf https://anti-ad.net/anti-ad-for-smartdns.conf
|
||||
|
||||
30 9 * * * /usr/local/bin/smartdns-cnlist
|
||||
|
||||
```
|
||||
|
||||
若仅需定时重启 `SmartDNS` 服务,定时任务可调整如下。
|
||||
@@ -321,9 +322,7 @@ $ sudo editor /etc/smartdns/smartdns.conf
|
||||
在编辑器对话框中输入以下内容,并保存。
|
||||
|
||||
**额外说明:**
|
||||
|
||||
- `SmartDNS` 端口监听参数为 `6053@lo` ,WebUI 端口监听参数为 `5380` ,请根据实际情况进行调整
|
||||
|
||||
- WebUI 默认用户名密码为 `admin/password` ,若需公网访问建议将默认密码修改为强密码
|
||||
|
||||
```bash
|
||||
@@ -418,13 +417,9 @@ $ sudo editor /etc/dnsmasq.d/10-server-dnsmasq.conf
|
||||
在编辑器对话框中输入以下内容,并保存。
|
||||
|
||||
**额外说明:**
|
||||
|
||||
- 请根据系统内存使用情况,调整缓存参数 `cache-size`
|
||||
|
||||
- 配置文件中监听的网卡名为 `eth0` ,请根据实际情况进行调整
|
||||
|
||||
- 配置文件中内网域名为 `fox.internal` ,请根据实际情况进行调整
|
||||
|
||||
- `Dnsmasq` 有且仅有 `SmartDNS` 作为上游 DNS 服务器
|
||||
|
||||
```bash
|
||||
|
||||
Reference in New Issue
Block a user