mirror of
https://github.com/fleschutz/PowerShell.git
synced 2025-03-25 05:26:47 +01:00
Improve check-dns-resolution.ps1
This commit is contained in:
parent
3dddcf947b
commit
2a743d6e63
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user