Skip to content

Commit 31ef9cf

Browse files
committed
Update check-dns.ps1
1 parent 1709e73 commit 31ef9cf

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed
File renamed without changes.

Scripts/check-dns.ps1

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,11 @@
1212
#>
1313

1414
try {
15-
"⏳ Step 1/2 - Reading table from Data/domain-names.csv..."
16-
$Table = Import-CSV "$PSScriptRoot/../Data/domain-names.csv"
15+
"⏳ Step 1/2 - Reading table from Data/domains.csv..."
16+
$Table = Import-CSV "$PSScriptRoot/../Data/domains.csv"
1717
$NumRows = $Table.Length
1818

19-
"⏳ Step 2/2 - Resolving $NumRows domain names..."
19+
"⏳ Step 2/2 - Resolving $NumRows domains..."
2020
$StopWatch = [system.diagnostics.stopwatch]::startNew()
2121
if ($IsLinux) {
2222
foreach($Row in $Table) { $null = dig $Row.Domain +short }
@@ -26,7 +26,7 @@ try {
2626

2727
[float]$Elapsed = $StopWatch.Elapsed.TotalSeconds
2828
$Average = [math]::round($NumRows / $Elapsed, 1)
29-
"✔️ DNS resolves $Average domains per second"
29+
"✔️ DNS resolution is $Average domains per second"
3030
exit 0 # success
3131
} catch {
3232
"⚠️ Error in line $($_.InvocationInfo.ScriptLineNumber): $($Error[0])"

0 commit comments

Comments
 (0)