Blog
How to find Windows DNS Settings using Powershell
- October 16, 2022
- Posted by: ElastiCourse
- Category: How-To Windows
No Comments

This simple Powershell command will show you Windows DNS settings
Get-DnsClientServerAddress
Example output will show DNS server addresses for each interface on IPv4 and IPv6:

To show DNS settings for specific network interface, just affix the interface alias to the command. For Ethernet (Wired) DNS settings, use this command:
Get-DnsClientServerAddress Ethernet

For Wireless (Wi-FI) DNS settings, use this command:
Get-DnsClientServerAddress Wi-Fi

Further reads:
https://devblogs.microsoft.com/scripting/powertip-use-powershell-to-get-dns-settings/
https://devblogs.microsoft.com/scripting/tag/windows-powershell/
Leave a Reply Cancel reply
You must be logged in to post a comment.