Skip to content

Commit 251912e

Browse files
committed
Update example to use sample size
1 parent 77f2bd4 commit 251912e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

DDI/Measure-DnsServerResponse.ps1

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ function Measure-NetworkHops {
9999
$DnsServers = @('8.8.8.8', '8.8.4.4', '1.1.1.1', '9.9.9.9')
100100
$DnsServers | ForEach-Object {
101101
Measure-NetworkHops -Server $_
102-
Measure-DnsResponseTime -DnsServer $_ -TargetName 'day3bits.com' | Out-Null
102+
Measure-DnsResponseTime -DnsServer $_ -TargetName 'day3bits.com' -QueryCount 10 | Out-Null
103103
}
104104

105105
# Example Usage: Measure network hops and DNS response time for all domain controllers in the current domain.
@@ -112,7 +112,7 @@ $Servers | ForEach-Object {
112112
NetworkHops = $NetworkHops.Hops
113113
PingSucceeded = $NetworkHops.PingSucceeded
114114
PingRoundTripTime = $NetworkHops.PingRoundTripTime
115-
AverageQueryResponseTime = Measure-DnsResponseTime -DnsServer $_ -TargetName 'github.com'
115+
AverageQueryResponseTime = Measure-DnsResponseTime -DnsServer $_ -TargetName 'github.com' -QueryCount 10
116116
}
117117
$TestResults.Add($Results) | Out-Null
118118
}

0 commit comments

Comments
 (0)