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.
Get Started
If you haven’t set up 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.
- How To Connect To A Windows Nano Server Using PowerShell
- Set Static IP Address Windows Nano Server 2016
- Set DNS Servers IP Addresses On Windows Nano Server 2016
- Join Windows Server 2016 Nano Server To A Domain
- Disable The Firewall On A Windows Nano Server Using PowerShell
- Manage Disk Space Windows Nano Server 2016
- Install Windows Defender AntiVirus On Windows Nano Server 2016
- Install Hyper-V On Windows Nano Server 2016
Please visit our Nano Server 2016 page for more than 80+ articles about Nano Server.
Comments
2 responses to “Set DNS Servers IP Addresses On Windows Nano Server 2016”
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?
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.