top of page

How to Update DNS Settings using Powershell

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.

1 view0 comments
bottom of page