Improved refresh_dns_cache.ps1

This commit is contained in:
Markus Fleschutz 2020-06-11 10:02:07 +00:00
parent 17a251641e
commit 93687c7137
2 changed files with 23 additions and 5 deletions

View File

@ -6,9 +6,10 @@
# Source: github.com/fleschutz/PowerShell
# License: CC0
$DomainList = import-csv refresh_domains.csv
$DomainTable = import-csv refresh_domains.csv
foreach($Domain in $DomainList) {
ping -c 1 $Domain
foreach($Line in $DomainTable) {
$Ignore = Invoke-WebRequest $Line.Domain
}
write-host "Done."
exit 0

View File

@ -1,5 +1,22 @@
DOMAIN
Domain
aldi-sued.de
all-in.de
amazon.com
amazon.de
bild.de
bing.com
bing.de
ebook300.com
fleschutz.de
fritz.box
golem.de
google.com
heise.de
lidl.de
slashdot.com
microsoft.com
ubuntu.com
wired.com
youtube.com
youtube.de
zdf.de

1 DOMAIN Domain
2 aldi-sued.de
3 all-in.de
4 amazon.com
5 amazon.de
6 bild.de
7 bing.com bing.com
8 bing.de
9 ebook300.com
10 fleschutz.de fleschutz.de
11 fritz.box
12 golem.de
13 google.com google.com
14 heise.de
15 lidl.de
16 slashdot.com
17 microsoft.com
18 ubuntu.com
19 wired.com
20 youtube.com
21 youtube.de
22 zdf.de