From 2a743d6e6364de339b9523293871aea94a92c3a1 Mon Sep 17 00:00:00 2001 From: Markus Fleschutz Date: Tue, 30 Mar 2021 09:34:52 +0200 Subject: [PATCH] Improve check-dns-resolution.ps1 --- Scripts/check-dns-resolution.ps1 | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Scripts/check-dns-resolution.ps1 b/Scripts/check-dns-resolution.ps1 index 2e28d15d..d627d3f3 100755 --- a/Scripts/check-dns-resolution.ps1 +++ b/Scripts/check-dns-resolution.ps1 @@ -15,7 +15,11 @@ try { foreach($Row in $Table) { write-progress "Resolving $($Row.Domain) ..." - $Ignore = nslookup $Row.Domain + if ($IsLinux) { + $Ignore = nslookup $Row.Domain + } else { + $Ignore = resolve-dnsName $Row.Domain + } } $Count = $Table.Length