From 5d5750f1207f2051b4657cf208df35d8b2f3778f Mon Sep 17 00:00:00 2001 From: CallMeR <9463297+callmer@user.noreply.gitee.com> Date: Thu, 21 Dec 2023 22:09:33 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=E5=AE=9A=E6=97=B6=E5=8F=82?= =?UTF-8?q?=E6=95=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- 06.PVE制作DNS服务器.md | 8 ++++---- src/debian/debian_dns_dnsmasq_cron.conf | 4 ++-- src/debian/debian_dns_smartdns_cron.conf | 8 ++++---- 3 files changed, 10 insertions(+), 10 deletions(-) diff --git a/06.PVE制作DNS服务器.md b/06.PVE制作DNS服务器.md index a1658c7..4ba0ead 100644 --- a/06.PVE制作DNS服务器.md +++ b/06.PVE制作DNS服务器.md @@ -375,9 +375,9 @@ $ sudo crontab -e ```bash ## 定时任务配置项 -20 6 * * * /usr/bin/curl --retry-connrefused --retry 5 --retry-delay 5 --retry-max-time 60 -fsSLR -o /etc/smartdns.d/adrules.smartdns.conf https://adrules.top/smart-dns.conf +20 9 * * * /usr/bin/curl --retry-connrefused --retry 5 --retry-delay 5 --retry-max-time 60 -fsSLR -o /etc/smartdns.d/adrules.smartdns.conf https://adrules.top/smart-dns.conf -30 6 * * * /usr/bin/systemctl restart smartdns.service +30 9 * * * /usr/bin/systemctl restart smartdns.service ``` @@ -386,9 +386,9 @@ $ sudo crontab -e ```bash ## 定时任务配置项 -20 6 * * * /usr/bin/curl --retry-connrefused --retry 5 --retry-delay 5 --retry-max-time 60 -fsSLR -o /etc/smartdns.d/adrules.smartdns.conf https://adrules.top/smart-dns.conf +20 9 * * * /usr/bin/curl --retry-connrefused --retry 5 --retry-delay 5 --retry-max-time 60 -fsSLR -o /etc/smartdns.d/adrules.smartdns.conf https://adrules.top/smart-dns.conf -30 6 * * * /usr/bin/bash /opt/smartdns_plugin.sh +30 9 * * * /usr/bin/bash /opt/smartdns_plugin.sh ``` ### 6.4.配置 Dnsmasq diff --git a/src/debian/debian_dns_dnsmasq_cron.conf b/src/debian/debian_dns_dnsmasq_cron.conf index f347ad0..c28af65 100644 --- a/src/debian/debian_dns_dnsmasq_cron.conf +++ b/src/debian/debian_dns_dnsmasq_cron.conf @@ -12,7 +12,7 @@ $ sudo bash /opt/dnsmasq_plugin.sh ## 设置 crontab -25 6 * * * /usr/bin/curl --retry-connrefused --retry 5 --retry-delay 5 --retry-max-time 60 -fsSLR -o /etc/dnsmasq.d/anti-ad.dnsmasq.conf https://anti-ad.net/anti-ad-for-dnsmasq.conf +25 9 * * * /usr/bin/curl --retry-connrefused --retry 5 --retry-delay 5 --retry-max-time 60 -fsSLR -o /etc/dnsmasq.d/anti-ad.dnsmasq.conf https://anti-ad.net/anti-ad-for-dnsmasq.conf -35 6 * * * /usr/bin/bash /opt/dnsmasq_plugin.sh +35 9 * * * /usr/bin/bash /opt/dnsmasq_plugin.sh diff --git a/src/debian/debian_dns_smartdns_cron.conf b/src/debian/debian_dns_smartdns_cron.conf index ecf34aa..2c12c0e 100644 --- a/src/debian/debian_dns_smartdns_cron.conf +++ b/src/debian/debian_dns_smartdns_cron.conf @@ -1,14 +1,14 @@ # This configuration file is customized by fox, # Optimize SmartDNS crontab for local DNS server. -20 6 * * * /usr/bin/curl --retry-connrefused --retry 5 --retry-delay 5 --retry-max-time 60 -fsSLR -o /etc/smartdns.d/adrules.smartdns.conf https://adrules.top/smart-dns.conf +20 9 * * * /usr/bin/curl --retry-connrefused --retry 5 --retry-delay 5 --retry-max-time 60 -fsSLR -o /etc/smartdns.d/adrules.smartdns.conf https://adrules.top/smart-dns.conf -30 6 * * * /usr/bin/systemctl restart smartdns.service +30 9 * * * /usr/bin/systemctl restart smartdns.service ## Or when the smartdns plugin is installed -20 6 * * * /usr/bin/curl --retry-connrefused --retry 5 --retry-delay 5 --retry-max-time 60 -fsSLR -o /etc/smartdns.d/adrules.smartdns.conf https://adrules.top/smart-dns.conf +20 9 * * * /usr/bin/curl --retry-connrefused --retry 5 --retry-delay 5 --retry-max-time 60 -fsSLR -o /etc/smartdns.d/adrules.smartdns.conf https://adrules.top/smart-dns.conf -30 6 * * * /usr/bin/bash /opt/smartdns_plugin.sh +30 9 * * * /usr/bin/bash /opt/smartdns_plugin.sh