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