Improve check-dns-resolution.ps1

This commit is contained in:
Markus Fleschutz 2021-03-30 09:34:52 +02:00
parent 3dddcf947b
commit 2a743d6e63

View File

@ -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