List DNS zones

Get-DnsServerZone

Clear DNS cache

Clear-DnsServerCache

View DNS server statistics

Get-DnsServerStatistics

List DNS records

Get-DnsServerResourceRecord

Delete a DNS record

Remove-DnsServerResourceRecord

Add a DNS record

Add-DnsServerResourceRecordA, Add-DnsServerResourceRecordCName, etc.


Example 1: Get DNS server cache properties

Clear-DnsServerCache

Example 1: Clear resource records from the cache

Clear-DnsServerCache -ComputerName "Win12S-05.DNSServer-01.domain.com" -Force