mirror of
https://github.com/fleschutz/PowerShell.git
synced 2024-10-07 02:22:09 +02:00
18 lines
402 B
PowerShell
18 lines
402 B
PowerShell
|
#!/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
|