PowerShell/Scripts/refresh_dns_cache.ps1
2020-06-10 10:30:33 +00:00

15 lines
310 B
PowerShell
Executable File

#!/snap/bin/powershell
#
# PowerShell Script to Refresh the DNS Cache
# ------------------------------------------
# Author: Markus Fleschutz
# Source: github.com/fleschutz/PowerShell
# License: CC0
$DomainList = import-csv refresh_domains.csv
foreach($Domain in $DomainList) {
ping -c 1 $Domain
}
exit 0