Advanced Windows PowerShell Scripting Video Training

Advanced Windows PowerShell Scripting Video Training
Advanced Windows PowerShell Scripting Video Training

Wednesday, August 4, 2010

How to add a DNS Server to Server Core Network Configuration

This is not as hard as what you might think. From a previous blog, I showed you how to add a Static IP address to server core.

netsh interface show interfaces
Record the index number of the interface you want to work with. In this case, let's say it is 3.
netsh interface ipv4 set address name=3 source=static address=10.10.1.10 mask=255.255.0.0

To add an address for your DNS server:
netsh interface ipv4 set dnsservers name=3 source=static address=10.10.1.1 primary.

The above example assumes that you set your network interface card to an IP address of 10.10.1.10 and then set interface to use the address of a DNS server at 10.10.1.1

No comments: