Set DNS Servers IP Addresses On Windows Nano Server 2016

After showing you how to Deploy A DNS Server on A Windows Nano Server 2016, Today I’ll show you how to set DNS Servers IP addresses on a Nano Server using PowerShell.

If you haven’t setup your Nano Server use my article on how Install And Run Nano Server Technical Preview 5.

Once your Nano Server Is Configured Connect to It using PowerShell Direct, Connect To A Nano Server Using PowerShell Direct or using PowerShell Remoting How To Connect To A Windows Nano Server Using PowerShell.

Next, Logon to the Server and type Get-DnsClient to get the NIC Interfaces IDs

To set two DNS Server on NIC Interface 5 type the cmdlet below:

Set-DnsClientServerAddress -InterfaceIndex 5 -ServerAddresses ("192.168.100.10","192.168.100.12")

To check config type:

Ipconfig /all

Below, You will find the most common steps needed to configure Window Nano Server 2016.

Please visit our Nano Server 2016 page for more than 80+ articles about Nano Server.

2 Replies to “Set DNS Servers IP Addresses On Windows Nano Server 2016”

  1. When I try to connect I get the error “Enter-PSSession : A parameter cannot be found that matches parameter name ‘VMName’

    Do you know how to fix that?

  2. Nevermind, I figured it out after a ridiculous amount of googling. The nano server’s name and IP have to be added to the hosts file. Once that’s been done, powershell can connect properly using the ‘enter-pssession -computer “serverName” -credential serverName\administrator’ command.

    I never could get the direct connection to work.

Comments are closed.