Gets resource records from a specified DNS zone.


Example 1: Get all resource records in a specified zone

Get-DnsServerResourceRecord -ZoneName "rs.local"

Example 1: Get all resource records in a zone by specified host name

Get-DnsServerResourceRecord -ZoneName "rs.local" -Name "SERVER001"

Example 2: Get all A records in a zone by specified host and specified type

Get-DnsServerResourceRecord -ZoneName "rs.local" -Name "SERVER001" -RRType "A"

Example 3: Get all A records in a specified zone

Get-DnsServerResourceRecord -ZoneName "rs.local" -RRType "A"


Get-DnsServerResourceRecord -ZoneName "rs.local" -RRType "PTR"


Get-DnsServerResourceRecord -ZoneName "rs.local" -RRType "A" | Export-Csv .\DNS_Record_A.csv