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 +