Jacqueline

There are many ways to get all DNS records for a domain in PowerShell. One way is to use the Get-DnsRecord cmdlet. You can specify the domain name or the IP address of the domain.

The following command gets all DNS records for the domain mydomain.com.

Get-DnsRecord -Name “mydomain.com”.