3 rem --------------------------------------------------------------
\r
4 rem -- Warm up DNS cache script by your own MRU domains or from
\r
5 rem -- file when it specified as script argument.
\r
8 rem -- By Yuri Voinov (c) 2014
\r
9 rem --------------------------------------------------------------
\r
11 rem DNS host address
\r
12 set address="127.0.0.1"
\r
14 rem Check dig installed
\r
15 for /f "delims=" %%a in ('where dig') do @set dig=%%a
\r
16 if /I "%dig%"=="" echo Dig not found. If installed, add path to PATH environment variable. & exit 1
\r
17 echo Dig found: %dig%
\r
21 if defined %arg% (goto builtin) else (goto from_file)
\r
24 echo Warming up cache by MRU domains...
\r
50 forum.farmanager.com
\r
80 munin-monitoring.org
\r
96 plugring.farmanager.com
\r
107 squidclamav.darold.net
\r
112 symantecliveupdate.com
\r
117 torstatus.blutmagie.de
\r
118 translate.google.com
\r
141 ) do "%dig%" %%a @%address% 1>nul 2>nul
\r
145 echo Warming up cache from %1% file...
\r
146 %dig% -f %arg% @%address% 1>nul 2>nul
\r
149 echo Saving cache...
\r
150 if exist unbound_cache.cmd unbound_cache.cmd -s
\r