Skip to content

Commit ac4df78

Browse files
author
Markus Fleschutz
committed
Update check-dns.ps1
1 parent 31ef9cf commit ac4df78

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

Scripts/check-dns.ps1

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,12 @@ try {
2626

2727
[float]$Elapsed = $StopWatch.Elapsed.TotalSeconds
2828
$Average = [math]::round($NumRows / $Elapsed, 1)
29-
"✔️ DNS resolution is $Average domains per second"
29+
if ($Average -gt 200.0) { $Rating = "excellent"
30+
} elseif ($Average -gt 100.0) { $Rating = "quite good"
31+
} elseif ($Average -gt 10.0) { $Rating = "good"
32+
} else { $Rating = "poor"
33+
}
34+
"✔️ $Average DNS domain lookups per second - $Rating"
3035
exit 0 # success
3136
} catch {
3237
"⚠️ Error in line $($_.InvocationInfo.ScriptLineNumber): $($Error[0])"

0 commit comments

Comments
 (0)