3 # --------------------------------------------------------------
4 # -- Warm up DNS cache script by your own MRU domains or from
5 # -- file when it specified as script argument.
8 # -- By Yuri Voinov (c) 2014
9 # --------------------------------------------------------------
11 # Default DNS host address
18 echo "Warming up cache by MRU domains..."
19 $dig -f - @$address >/dev/null 2>&1 <<EOT
92 plugring.farmanager.com
103 squidclamav.darold.net
108 symantecliveupdate.com
113 torstatus.blutmagie.de
139 echo "Warming up cache from $1 file..."
140 $cat $1 | $dig -f - @$address >/dev/null 2>&1
145 echo "Saving cache..."
146 script=`which unbound_cache.sh`
147 [ -f "$script" ] && $script -s