mirror of
https://github.com/fleschutz/PowerShell.git
synced 2025-05-08 01:24:39 +02:00
Update check-dns-server.ps1
This commit is contained in:
parent
5d43eacff4
commit
5f4d05f349
@ -20,12 +20,12 @@ function CheckDNS { param($Name, $PriIPv4, $SecIPv4)
|
|||||||
$null = (nslookup fleschutz.de $SecIPv4 2>$null)
|
$null = (nslookup fleschutz.de $SecIPv4 2>$null)
|
||||||
[int]$Elapsed2 = $StopWatch.Elapsed.TotalMilliseconds
|
[int]$Elapsed2 = $StopWatch.Elapsed.TotalMilliseconds
|
||||||
|
|
||||||
" `"$Name`"; `"$PriIPv4`"; `"$Elapsed1 ms`"; `"$SecIPv4`"; `"$Elapsed2 ms`"; "
|
" `"$Name`"; `"$PriIPv4`"; `"$SecIPv4`"; `"$Elapsed1 ms / $Elapsed2 ms`"; "
|
||||||
}
|
}
|
||||||
|
|
||||||
try {
|
try {
|
||||||
Write-Progress "Measuring speed of public DNS servers..."
|
Write-Progress "Measuring speed of public DNS servers..."
|
||||||
" `"DNS SERVER`"; `"PRIMARY IPv4`"; `"LATENCY`"; `"SECONDARY IPv4`"; `"LATENCY`"; "
|
" `"DNS SERVER`"; `"PRIMARY IPv4`"; `"SECONDARY IPv4`"; `"LATENCY`"; "
|
||||||
CheckDNS "Cloudflare (standard)" 1.1.1.1 1.0.0.1
|
CheckDNS "Cloudflare (standard)" 1.1.1.1 1.0.0.1
|
||||||
CheckDNS "Cloudflare (with malware blocklist)" 1.1.1.2 1.0.0.2
|
CheckDNS "Cloudflare (with malware blocklist)" 1.1.1.2 1.0.0.2
|
||||||
CheckDNS "Cloudflare (with malware+adult blocklist)" 1.1.1.3 1.0.0.3
|
CheckDNS "Cloudflare (with malware+adult blocklist)" 1.1.1.3 1.0.0.3
|
||||||
|
Loading…
Reference in New Issue
Block a user