I recently helped someone setup DNS scavenging. We wanted to know what we are getting into and needed to confirm that all Servers are configured with static IPs in DNS. We found just that using below script. It not only exports all DNS details of servers but also logs the one which are missing in DNS.
$servers= (Import-Csv "C:\temp\ServerDetails.csv").name
foreach ($server in $servers)
Get-DnsServerResourceRecord -ZoneName domain.net -ComputerName DNS-Server-Name.domain.net -Name $server -ErrorAction stop | select hostname,RecordClass,RecordType,Timestamp,TimeToLive,Type | Export-Csv "c:\temp\DNS Details of Servers.csv" -Append -NoTypeInformation
Write-Output $server | out-file "c:\temp\Server records missing in DNS.txt" -Append