Simple rename

This commit is contained in:
Markus Fleschutz 2020-06-11 14:15:23 +00:00
parent 067569ed83
commit a0a0c35dce
3 changed files with 21 additions and 16 deletions

View File

@ -1,15 +0,0 @@
#!/snap/bin/powershell
#
# PowerShell Script to Refresh the DNS Cache
# ------------------------------------------
# Author: Markus Fleschutz
# Source: github.com/fleschutz/PowerShell
# License: CC0
$DomainTable = import-csv refresh_domains.csv
foreach($Line in $DomainTable) {
$Ignore = Invoke-WebRequest $Line.Domain
}
write-host "Done."
exit 0

17
Scripts/train_dns_cache.ps1 Executable file
View File

@ -0,0 +1,17 @@
#!/snap/bin/powershell
#
# PowerShell Script to Train the DNS Cache
# ----------------------------------------
# Author: Markus Fleschutz
# Source: github.com/fleschutz/PowerShell
# License: CC0
$DomainTable = import-csv refresh_domains.csv
foreach($Row in $DomainTable) {
$DomainName = $Row.Domain
write-progress "Training $DomainName ..."
$Ignore = dig $DomainName
}
write-host "Done."
exit 0

View File

@ -1,6 +1,8 @@
Domain
aldi-nord.de
aldi-sued.de
all-in.de
alternate.de
amazon.com
amazon.de
bild.de
@ -16,9 +18,10 @@ golem.de
google.com
heise.de
lidl.de
microsoft.com
redhat.com
slashdot.com
microsoft.com
tchibo.de
twitter.com
twitter.de
ubuntu.com
1 Domain
2 aldi-nord.de
3 aldi-sued.de
4 all-in.de
5 alternate.de
6 amazon.com
7 amazon.de
8 bild.de
18 google.com
19 heise.de
20 lidl.de
21 microsoft.com
22 redhat.com
23 slashdot.com
24 microsoft.com tchibo.de
25 twitter.com
26 twitter.de
27 ubuntu.com