PowerTip: Use PowerShell to Get DNS Settings

Doctor Scripto

Summary: Use Windows PowerShell to retrieve local DNS server addresses.

Hey, Scripting Guy! Question 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?

Hey, Scripting Guy! Answer Use the Get-DnsClientServerAddress cmdlet:

Get-DnsClientServerAddress | Select-Object –ExpandProperty ServerAddresses

0 comments

Discussion is closed.

Feedback usabilla icon