Quantcast
Channel: Hey, Scripting Guy! Blog
Viewing all articles
Browse latest Browse all 3333

PowerTip: Use PowerShell to Get DNS Settings

$
0
0

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


Viewing all articles
Browse latest Browse all 3333

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>