Tag: Get-DnsServerResourceRecord

List All DNS Records with Powershell

UPDATED 6/16/2016 Thanks for the comments! Here’s a nice quick script to list all DNS records in each zone on the DNS server(includes sub-zones): From the DNS Server $Zones = @(Get-DnsServerZone) ForEach ($Zone in $Zones) { Write-Host “`n$($Zone.ZoneName)” -ForegroundColor “Green” $Zone | Get-DnsServerResourceRecord } From a Remote DNS Server $DNSServer = “servernameOrIp” $Zones = @(Get-DnsServerZone …

Continue reading