mirror of
https://github.com/fleschutz/PowerShell.git
synced 2024-11-22 16:03:22 +01:00
Simple rename
This commit is contained in:
parent
067569ed83
commit
a0a0c35dce
@ -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
17
Scripts/train_dns_cache.ps1
Executable 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
|
@ -1,6 +1,8 @@
|
|||||||
Domain
|
Domain
|
||||||
|
aldi-nord.de
|
||||||
aldi-sued.de
|
aldi-sued.de
|
||||||
all-in.de
|
all-in.de
|
||||||
|
alternate.de
|
||||||
amazon.com
|
amazon.com
|
||||||
amazon.de
|
amazon.de
|
||||||
bild.de
|
bild.de
|
||||||
@ -16,9 +18,10 @@ golem.de
|
|||||||
google.com
|
google.com
|
||||||
heise.de
|
heise.de
|
||||||
lidl.de
|
lidl.de
|
||||||
|
microsoft.com
|
||||||
redhat.com
|
redhat.com
|
||||||
slashdot.com
|
slashdot.com
|
||||||
microsoft.com
|
tchibo.de
|
||||||
twitter.com
|
twitter.com
|
||||||
twitter.de
|
twitter.de
|
||||||
ubuntu.com
|
ubuntu.com
|
|
Loading…
Reference in New Issue
Block a user