Windowstechpro.com

Thinking beyond the Limits..

PowerShellWindows Operating SystemsWindows Server

In this article, we will see how to modify the DNSSettings using PowerShell.
it will help for the core server modifications as well.

To get the Existing DNS Settings run the below command,

Get-DnsClientServerAddress

1

To modify the DNS Settings, use the below command,

Set-DnsClientServerAddress -InterfaceIndex 12 -ServerAddresses (“10.99.3.50″,”10.1.13.178”)

Note: Need to get Interface Index for which you need to modify and New DNS Server followed with (,).

2

You can see the at DNS Settings for the Ethernet –Interface Index — 12.

Tagged:

LEAVE A RESPONSE

Your email address will not be published. Required fields are marked *

Related Posts