December 22nd, 2012

PowerTip: Use PowerShell to Update DNS IP Address

Doctor Scripto
Scripter

Summary: Use Windows PowerShell 3.0 on either Windows 8 or Windows Server 2012 to update the DNS server IP addresses on a client.

Hey, Scripting Guy! Question How can I update my DNS server IP addresses on my Windows 8 client?

Hey, Scripting Guy! Answer According to Brian Wilhite, Charlotte Windows PowerShell user group member: Luckily, there is a Windows PowerShell cmdlet that does this very thing. The Set-DnsClientServerAddress is just the ticket to perform this task. It’s in the DnsClient module. We’ll also use the InterfaceAlias and ServerAddresses parameters.

Set-DnsClientServerAddress -InterfaceAlias Wi-Fi -ServerAddresses 10.1.1.10, 10.1.1.11

Author

The "Scripting Guys" is a historical title passed from scripter to scripter. The current revision has morphed into our good friend Doctor Scripto who has been with us since the very beginning.

0 comments

Discussion are closed.