How to Add Multiple DNS Servers to Windows Server 2008 Core

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
About Paul Cunningham

Paul is a Microsoft Exchange Server specialist for one of Australia's largest companies, and is the Publisher of ExchangeServerPro.com. He is also an MCP, MCSA, MCSE, MCTS, and an MCITP for Exchange Server 2007/2010. Connect with Paul on Twitter, LinkedIn and Google+.

Comments

  1. Con Stantine says:

    well done bro,
    whole hour i was looking this commands….

    good job

  2. Mike says:

    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.

Leave a Comment

*