mirror of
https://github.com/fleschutz/PowerShell.git
synced 2024-11-22 07:53:21 +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
|
||||
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
|
|
Loading…
Reference in New Issue
Block a user