This is what I have so far...
Import-Module ActiveDirectory, DnsServer
$DNSserver = "server01"
$zoneNamesArray = Get-DnsServerZone -ComputerName $dnsserver | select -ExpandProperty Zonenameforeach ($zone in $zoneNamesArray) {
Write-Host "===========================" -BackgroundColor DarkMagenta
Write-host $zone -ForegroundColor Yellow
Get-DnsServerResourceRecord -ZoneName $zone -ComputerName $DNSserver -RRType "NS" -Node
}
I'm struggling with the concept/idea on how to access the Name Servers and find out which ones are "unknown"