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