From e5bdad81978a6eb07fb79e1e8fa4acda0ffa7273 Mon Sep 17 00:00:00 2001 From: Markus Fleschutz Date: Sun, 19 Feb 2023 10:38:35 +0100 Subject: [PATCH] Update check-dns.ps1 --- Scripts/check-dns.ps1 | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Scripts/check-dns.ps1 b/Scripts/check-dns.ps1 index 6d576764..93ea09fa 100755 --- a/Scripts/check-dns.ps1 +++ b/Scripts/check-dns.ps1 @@ -2,7 +2,7 @@ .SYNOPSIS Checks the DNS resolution .DESCRIPTION - This PowerShell script measures and prints the DNS resolution speed by using 200 popular domains. + This PowerShell script measures the DNS resolution speed by using 200 popular domains. .EXAMPLE PS> ./check-dns ✅ DNS resolution is 440.5 domains per second @@ -17,7 +17,7 @@ try { $Table = Import-CSV "$PSScriptRoot/../Data/popular-domains.csv" $NumRows = $Table.Length - Write-Progress "⏳ Resolving $NumRows domains..." + Write-Progress "⏳ Resolving $NumRows popular domains..." $StopWatch = [system.diagnostics.stopwatch]::startNew() if ($IsLinux) { foreach($Row in $Table){$nop=dig $Row.Domain +short} @@ -32,7 +32,7 @@ try { } else { Write-Host "⚠️ DNS resolution is $Average domains per second only!" } - Write-Progress -completed "DNS checked." + Write-Progress -completed " " exit 0 # success } catch { "⚠️ Error in line $($_.InvocationInfo.ScriptLineNumber): $($Error[0])"