Update check-dns.ps1

This commit is contained in:
Markus Fleschutz 2022-12-28 12:40:04 +01:00
parent 700c81d09a
commit 4f4638b2fb
2 changed files with 4 additions and 4 deletions

View File

@ -2,7 +2,7 @@
.SYNOPSIS
Checks the DNS resolution
.DESCRIPTION
This PowerShell script measures and prints the DNS resolution speed by using 200 frequently used domain names.
This PowerShell script measures and prints the DNS resolution speed by using 200 popular domains.
.EXAMPLE
PS> ./check-dns
.LINK
@ -12,8 +12,8 @@
#>
try {
Write-Progress "⏳ (1/2) Loading Data/frequent-domains.csv..."
$Table = Import-CSV "$PSScriptRoot/../Data/frequent-domains.csv"
Write-Progress "⏳ (1/2) Loading Data/popular-domains.csv..."
$Table = Import-CSV "$PSScriptRoot/../Data/popular-domains.csv"
$NumRows = $Table.Length
Write-Progress "⏳ (2/2) Resolving $NumRows domains..."
@ -35,4 +35,4 @@ try {
} catch {
"⚠️ Error in line $($_.InvocationInfo.ScriptLineNumber): $($Error[0])"
exit 1
}
}