From: Sascha Wildner Date: Thu, 9 Dec 2010 05:12:16 +0000 (+0100) Subject: periodic(8): Adjust the bsdstats script to use drill(1) instead of dig(1). X-Git-Url: https://gitweb.dragonflybsd.org/~alexh/dragonfly.git/commitdiff_plain/1e636427bd23ef42b096523819e10ade665192f0 periodic(8): Adjust the bsdstats script to use drill(1) instead of dig(1). The check_dns() check is still wrong which is due to the setting of IFS but until scrappy@ reports back, I won't touch that. For the moment, it will succeed, but would also not fail in check_dns() if the network was down. Reported-by: Tim Darby Dragonfly-bug: --- diff --git a/etc/periodic/monthly/300.statistics b/etc/periodic/monthly/300.statistics index 20e983b386..4caa46ac09 100644 --- a/etc/periodic/monthly/300.statistics +++ b/etc/periodic/monthly/300.statistics @@ -70,7 +70,7 @@ do_fetch () { } check_dns () { - if [ `dig bsdstats.org txt | grep TXT | grep UP | wc -l` = 0 ] + if [ `drill bsdstats.org txt | grep TXT | grep UP | wc -l` = 0 ] then echo "DNS not reachable, Network Down?" exit