From 779b75f3a81e0b1a669cd7437f1f0a3dd904d4a2 Mon Sep 17 00:00:00 2001 From: CallMeR <9463297+callmer@user.noreply.gitee.com> Date: Sun, 10 Dec 2023 19:19:46 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20SmartDNS=20=E5=AE=9A?= =?UTF-8?q?=E6=97=B6=E5=99=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/debian/debian_dns_smartdns_cron.conf | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 src/debian/debian_dns_smartdns_cron.conf diff --git a/src/debian/debian_dns_smartdns_cron.conf b/src/debian/debian_dns_smartdns_cron.conf new file mode 100644 index 0000000..23474b0 --- /dev/null +++ b/src/debian/debian_dns_smartdns_cron.conf @@ -0,0 +1,14 @@ +# This configuration file is customized by fox, +# Optimize SmartDNS crontab for local DNS server. + +15 5 * * * /usr/bin/wget -q --tries=10 --retry-connrefused --random-wait https://anti-ad.net/anti-ad-for-smartdns.conf -O /etc/smartdns.d/anti-ad-smartdns.conf + +20 5 * * * /usr/bin/systemctl restart smartdns.service + + +## Or when the smartdns plugin is installed + +15 5 * * * /usr/bin/wget -q --tries=10 --retry-connrefused --random-wait https://anti-ad.net/anti-ad-for-smartdns.conf -O /etc/smartdns.d/anti-ad-smartdns.conf + +20 5 * * * /usr/bin/bash /opt/smartdns_plugin.sh +