From e6d805fba5f7d698c7a2f258ef14ef3d5c17c36c Mon Sep 17 00:00:00 2001 From: CallMeR <9463297+callmer@user.noreply.gitee.com> Date: Tue, 7 Nov 2023 13:47:34 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20SmartDNS=20=E9=85=8D?= =?UTF-8?q?=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- 06.PVE用模板克隆虚拟机.md | 8 ++++---- src/debian/debian_dnsmasq_smartdns.conf | 2 +- src/debian/debian_smartdns.conf | 2 +- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/06.PVE用模板克隆虚拟机.md b/06.PVE用模板克隆虚拟机.md index 13d73da..3fcdd5f 100644 --- a/06.PVE用模板克隆虚拟机.md +++ b/06.PVE用模板克隆虚拟机.md @@ -229,7 +229,7 @@ $ sudo systemctl enable smartdns.service ```bash ## 下载广告过滤配置文件 -$ sudo wget https://anti-ad.net/anti-ad-for-smartdns.conf -O /etc/smartdns/anti-ad-smartdns.conf +$ sudo wget https://neodev.team/smartdns.conf -O /etc/smartdns/neodevhost-smartdns.conf ``` `SmartDNS` 的主配置文件一般位于 `/etc/smartdns` 目录下,修改配置文件之前,使用以下命令将其备份。 @@ -250,7 +250,7 @@ $ sudo nvim /etc/smartdns/smartdns.conf **额外说明:** -- 当不使用 `anti-ad-smartdns.conf` 进行广告过滤时,需移除主配置文件中对应配置项。 +- 当不使用 `neodevhost-smartdns.conf` 进行广告过滤时,需移除主配置文件中对应配置项。 - 检查配置文件中关于本地域名及其上游 DNS 服务器相关配置,请根据实际情况进行调整。 @@ -269,7 +269,7 @@ $ sudo nvim /etc/smartdns/smartdns.conf # server 2402:4e00:: # server 2400:3200::1 -conf-file /etc/smartdns/anti-ad-smartdns.conf +conf-file /etc/smartdns/neodevhost-smartdns.conf cache-file /tmp/smartdns.cache bind [::]:53 @@ -323,7 +323,7 @@ $ sudo crontab -e ```bash ## 定时任务配置项 -0 5 * * * /usr/bin/wget -q --tries=10 --retry-connrefused --random-wait https://anti-ad.net/anti-ad-for-smartdns.conf -O /etc/smartdns/anti-ad-smartdns.conf +0 5 * * * /usr/bin/wget -q --tries=10 --retry-connrefused --random-wait https://neodev.team/smartdns.conf -O /etc/smartdns/neodevhost-smartdns.conf 30 5 * * * /usr/bin/systemctl restart smartdns.service diff --git a/src/debian/debian_dnsmasq_smartdns.conf b/src/debian/debian_dnsmasq_smartdns.conf index a6298de..d0e27d7 100644 --- a/src/debian/debian_dnsmasq_smartdns.conf +++ b/src/debian/debian_dnsmasq_smartdns.conf @@ -12,7 +12,7 @@ # server 2402:4e00:: # server 2400:3200::1 -conf-file /etc/smartdns/anti-ad-smartdns.conf +conf-file /etc/smartdns/neodevhost-smartdns.conf cache-file /tmp/smartdns.cache bind [::]:8053@lo diff --git a/src/debian/debian_smartdns.conf b/src/debian/debian_smartdns.conf index db13e43..40ab78e 100644 --- a/src/debian/debian_smartdns.conf +++ b/src/debian/debian_smartdns.conf @@ -12,7 +12,7 @@ # server 2402:4e00:: # server 2400:3200::1 -conf-file /etc/smartdns/anti-ad-smartdns.conf +conf-file /etc/smartdns/neodevhost-smartdns.conf cache-file /tmp/smartdns.cache bind [::]:53