File tree 2 files changed +4
-4
lines changed
2 files changed +4
-4
lines changed File renamed without changes.
Original file line number Diff line number Diff line change 12
12
#>
13
13
14
14
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"
17
17
$NumRows = $Table.Length
18
18
19
- " ⏳ Step 2/2 - Resolving $NumRows domain names ..."
19
+ " ⏳ Step 2/2 - Resolving $NumRows domains ..."
20
20
$StopWatch = [system.diagnostics.stopwatch ]::startNew()
21
21
if ($IsLinux ) {
22
22
foreach ($Row in $Table ) { $null = dig $Row.Domain + short }
26
26
27
27
[float ]$Elapsed = $StopWatch.Elapsed.TotalSeconds
28
28
$Average = [math ]::round($NumRows / $Elapsed , 1 )
29
- " ✔️ DNS resolves $Average domains per second"
29
+ " ✔️ DNS resolution is $Average domains per second"
30
30
exit 0 # success
31
31
} catch {
32
32
" ⚠️ Error in line $ ( $_.InvocationInfo.ScriptLineNumber ) : $ ( $Error [0 ]) "
You can’t perform that action at this time.
0 commit comments