monero/external/unbound/contrib/warmup.cmd

153 lines
2.5 KiB
Batchfile
Raw Normal View History

2014-10-05 21:44:31 +00:00
@echo off
rem --------------------------------------------------------------
2015-04-02 09:16:18 +00:00
rem -- Warm up DNS cache script by your own MRU domains or from
rem -- file when it specified as script argument.
2014-10-05 21:44:31 +00:00
rem --
2015-04-02 09:16:18 +00:00
rem -- Version 1.1
2014-10-05 21:44:31 +00:00
rem -- By Yuri Voinov (c) 2014
rem --------------------------------------------------------------
2015-04-02 09:16:18 +00:00
rem DNS host address
set address="127.0.0.1"
2014-10-05 21:44:31 +00:00
rem Check dig installed
for /f "delims=" %%a in ('where dig') do @set dig=%%a
if /I "%dig%"=="" echo Dig not found. If installed, add path to PATH environment variable. & exit 1
echo Dig found: %dig%
2015-04-02 09:16:18 +00:00
set arg=%1%
if defined %arg% (goto builtin) else (goto from_file)
2014-10-05 21:44:31 +00:00
2015-04-02 09:16:18 +00:00
:builtin
echo Warming up cache by MRU domains...
2014-10-05 21:44:31 +00:00
for %%a in (
2015-04-02 09:16:18 +00:00
2gis.ru
admir.kz
adobe.com
2014-10-05 21:44:31 +00:00
agent.mail.ru
2015-04-02 09:16:18 +00:00
aimp.ru
akamai.com
akamai.net
almaty.tele2.kz
aol.com
apple.com
arin.com
2014-10-05 21:44:31 +00:00
artlebedev.ru
2015-04-02 09:16:18 +00:00
auto.mail.ru
beeline.kz
bing.com
2014-10-05 21:44:31 +00:00
blogspot.com
2015-04-02 09:16:18 +00:00
comodo.com
dnscrypt.org
drive.google.com
drive.mail.ru
facebook.com
2014-10-05 21:44:31 +00:00
farmanager.com
2015-04-02 09:16:18 +00:00
fb.com
firefox.com
2014-10-05 21:44:31 +00:00
forum.farmanager.com
2015-04-02 09:16:18 +00:00
gazeta.ru
getsharex.com
gismeteo.ru
google.com
google.kz
google.ru
googlevideo.com
goto.kz
iana.org
icq.com
imap.mail.ru
instagram.com
intel.com
irr.kz
java.com
kaspersky.com
kaspersky.ru
kcell.kz
krisha.kz
lady.mail.ru
lenta.ru
libreoffice.org
linkedin.com
livejournal.com
mail.google.com
mail.ru
microsoft.com
mozilla.org
mra.mail.ru
munin-monitoring.org
my.mail.ru
news.bbcimg.co.uk
news.mail.ru
newsimg.bbc.net.uk
nvidia.com
odnoklassniki.ru
ok.ru
opencsw.org
opendns.com
opendns.org
opennet.ru
opera.com
oracle.com
peerbet.ru
piriform.com
2014-10-05 21:44:31 +00:00
plugring.farmanager.com
2015-04-02 09:16:18 +00:00
privoxy.org
qip.ru
raidcall.com
rambler.ru
reddit.com
ru.wikipedia.org
shallalist.de
skype.com
snob.ru
squid-cache.org
squidclamav.darold.net
squidguard.org
ssl.comodo.com
ssl.verisign.com
2014-10-05 21:44:31 +00:00
symantec.com
symantecliveupdate.com
2015-04-02 09:16:18 +00:00
tele2.kz
tengrinews.kz
thunderbird.com
2014-10-05 21:44:31 +00:00
torproject.org
2015-04-02 09:16:18 +00:00
torstatus.blutmagie.de
translate.google.com
2014-10-05 21:44:31 +00:00
unbound.net
2015-04-02 09:16:18 +00:00
verisign.com
vk.com
vk.me
vk.ru
vkontakte.com
vkontakte.ru
2014-10-05 21:44:31 +00:00
vlc.org
2015-04-02 09:16:18 +00:00
watsapp.net
weather.mail.ru
2014-10-05 21:44:31 +00:00
windowsupdate.com
2015-04-02 09:16:18 +00:00
www.baidu.com
2014-10-05 21:44:31 +00:00
www.bbc.co.uk
2015-04-02 09:16:18 +00:00
www.internic.net
www.opennet.ru
www.topgear.com
ya.ru
yahoo.com
yandex.com
yandex.ru
youtube.com
ytimg.com
) do "%dig%" %%a @%address% 1>nul 2>nul
goto end
2014-10-05 21:44:31 +00:00
2015-04-02 09:16:18 +00:00
:from_file
echo Warming up cache from %1% file...
%dig% -f %arg% @%address% 1>nul 2>nul
:end
2014-10-05 21:44:31 +00:00
echo Saving cache...
2015-04-02 09:16:18 +00:00
if exist unbound_cache.cmd unbound_cache.cmd -s
2014-10-05 21:44:31 +00:00
echo Done.
2015-04-02 09:16:18 +00:00
exit 0