Summary: Use Windows PowerShell to retrieve local DNS server addresses.
With IPconfig, I used to pipe output to the FIND command to filter only DNS information.
Is there a better way to do this in Windows Server 2012 R2?
Use the Get-DnsClientServerAddress cmdlet:
Get-DnsClientServerAddress | Select-Object –ExpandProperty ServerAddresses
0 comments