After installing Windows Server 2008 Core you may wish to configure a static IP address and DNS servers. Microsoft guides you through this process using the Netsh command.
Configuring a Static IP Address in Windows Server 2008 Core
Use Netsh to configure the static IP address:
netsh interface ipv4 set address name="Local Area Connection" source=static address=192.168.100.48 mask=255.255.255.0 gateway=192.168.100.254
Configuring the Primary DNS Server in Windows Server 2008 Core
Use Netsh again to configure the primary DNS server address:
netsh interface ipv4 set dns name="Local Area Connection" source=static address=192.168.100.49 primary
Configuring Additional DNS Servers in Windows Server 2008 Core
Use Netsh to configure a secondary DNS server address:
netsh interface ipv4 add dnsserver name="Local Area Connection" address=192.168.100.48 index=2
The static IP and DNS server configuration will now be shown in IPConfig:
Ethernet adapter Local Area Connection:
Connection-specific DNS Suffix . :
Description . . . . . . . . . . . : Intel(R) PRO/1000 MT Network Connection
Physical Address. . . . . . . . . : 00-0C-29-31-9E-AC
DHCP Enabled. . . . . . . . . . . : No
Autoconfiguration Enabled . . . . : Yes
Link-local IPv6 Address . . . . . : fe80::1884:ed1b:1548:43be%2(Preferred)
IPv4 Address. . . . . . . . . . . : 192.168.100.48(Preferred)
Subnet Mask . . . . . . . . . . . : 255.255.255.0
Default Gateway . . . . . . . . . : 192.168.100.254
DNS Servers . . . . . . . . . . . : 192.168.100.49
192.168.100.48
NetBIOS over Tcpip. . . . . . . . : Enabled




well done bro,
whole hour i was looking this commands….
good job
I usually never post comments, but look through the web to try and find adding secondary DNS, and this is the only one that work. Thanks.