{"id":1302,"date":"2009-07-24T09:49:15","date_gmt":"2009-07-24T17:49:15","guid":{"rendered":"https:\/\/www.zubairalexander.com\/stage\/?p=1302"},"modified":"2010-09-29T12:39:49","modified_gmt":"2010-09-29T20:39:49","slug":"configuring-tcpip-and-dns-on-ws08-server-core","status":"publish","type":"post","link":"https:\/\/www.zubairalexander.com\/blog\/configuring-tcpip-and-dns-on-ws08-server-core\/","title":{"rendered":"Configuring TCP\/IP and DNS on WS08 Server Core"},"content":{"rendered":"<p>Windows Server 2008 (WS08) Server Core doesn&#8217;t have a GUI. Therefore, when you install the Server Core you need to configure some of the basic parameters to get the server ready for remote administration. For example, you need to configure the IP parameters and open the appropriate ports before you can manage the Server Core from another computer. If you want to run DNS on the Server Core, you need to configure that too at the command prompt. These are some, but not all, of the basic steps that most administrators need to accomplish to get their server ready for remote administration. In this article,  I will explain how to configure TCP\/IP, configure the firewall to open the necessary ports and then install DNS server on a WS08 Server Core.<\/p>\n<h3><strong>Configure TCP\/IP Parameters<\/strong><\/h3>\n<p>At the command prompt, type <span style=\"color: #000000;\"><strong>SET<\/strong><\/span> to see the current parameters.<\/p>\n<p>To configure a static IP address, type the following command. Replace the IP address, subnet mask and gateway with your own parameters.<\/p>\n<blockquote><p><span style=\"color: #000000;\">netsh interface ipv4 set address name=&#8221;local area connection&#8221; source=static address=172.16.1.200 mask=255.255.0.0 gateway=172.16.1.1<\/span><\/p><\/blockquote>\n<h3><strong>Specify a DNS Server<\/strong><\/h3>\n<p>To configure a primary DNS server type the following command. Replace the IP address with your own DNS server&#8217;s IP address.<\/p>\n<blockquote><p><span style=\"color: #000000;\">netsh interface ip set dns &#8220;local area connection&#8221; static 172.16.1.15<\/span><\/p><\/blockquote>\n<h3><strong>Open DNS Ports<\/strong><\/h3>\n<p>Once you have the TCP\/IP parameters configured, you can configure the firewall. To verify the current firewall configuration, type the following command:<\/p>\n<blockquote><p><span style=\"color: #000000;\">netsh firewall show state<\/span><\/p><\/blockquote>\n<p>Notice that the firewall is enabled but specific ports are not open. You need to open the DNS ports as shown below. Type each one of the following commands and press enter. You will be opening ports for DNS server, remote administration, NetBIOS name service, NetBIOS datagram service, and NetBIOS session service.<\/p>\n<blockquote><p><span style=\"color: #000000;\">netsh firewall add portopening ALL 53 DNS-server<\/span><\/p>\n<p><span style=\"color: #000000;\">netsh firewall add portopening TCP 135 remote-admin<\/span><\/p>\n<p><span style=\"color: #000000;\">netsh firewall add portopening UDP 137 netbios-ns<\/span><\/p>\n<p><span style=\"color: #000000;\">netsh firewall add portopening UDP 138 netbios&#8211;dgm<\/span><\/p>\n<p><span style=\"color: #000000;\">netsh firewall add portopening TCP 139 netbios&#8211;ssn<\/span><\/p>\n<p><span style=\"color: #000000;\">netsh firewall add portopening TCP 445 netbios&#8211;ns<\/span><\/p><\/blockquote>\n<p>To see the current configuration and to verify that the ports you just configured are open, type the following at the command prompt.<\/p>\n<blockquote><p><span style=\"color: #000000;\">netsh firewall show config<\/span><\/p><\/blockquote>\n<p>You will notice various configuration options displayed for  Domain and Standard profile. If you scroll down to the section Service Configuration for Domain Profile, you will notice that the <em>File and Printer Sharing<\/em> and <em>Remote Desktop<\/em> services are both set to enable. Also notice that the TCP and UDP port 53  for DNS are also open. If you would like to refer back to the information later, you can save the configuration to a text file (e.g. fwconfig.txt) by using the following command.<\/p>\n<blockquote><p><span style=\"color: #000000;\">netsh firewall show config &gt; fwconfig.txt<\/span><\/p><\/blockquote>\n<h3><span style=\"color: #000000;\"><strong>Ins<span style=\"color: #000000;\">tall the DNS Server Role<br \/>\n<\/span><\/strong><\/span><\/h3>\n<p><span style=\"color: #000000;\">Initially you won&#8217;t have any server roles installed on your WS08 Server Core. You can verify that by using the <strong><span style=\"color: #000000;\">ocslist <\/span><\/strong>command. After you&#8217;ve installed DNS role, you might want to run ocslist again to make sure DNS role was installed successfully. <\/span><\/p>\n<p><span style=\"color: #000000;\">To install the DNS Server role,<span style=\"color: #000000;\"> <\/span><\/span><span style=\"color: #993366;\"><span style=\"color: #000000;\">use the following command.<\/span><\/span><\/p>\n<blockquote><p><span style=\"color: #993366;\"><span style=\"color: #000000;\">start \/w ocsetup DNS-Server-Core-Role<\/span><\/span><\/p><\/blockquote>\n<p><span style=\"color: #993366;\"><span style=\"color: #000000;\"><span style=\"color: #ff0000;\"><strong>WARNING<\/strong><\/span>! The role name (DNS-Server-Core-Role) is case-sensitive.<\/span><\/span><\/p>\n<p><span style=\"color: #993366;\"><span style=\"color: #000000;\">At this point you will be able to administer DNS on the WS08 Server Core from another computer because you have configured the TCP\/IP, opened the necessary ports and installed the DNS server role.<br \/>\n<\/span><\/span><\/p>\n<p><span style=\"color: #993366;\"><span style=\"color: #000000;\"><strong><span style=\"color: #ff0000;\">NOTE<\/span><\/strong>: You can use Remote Desktop Protocol (RDP), Windows Remote Shell, Terminal Server, Microsoft Management Console (MMC), and Command Prompt to manage a Server Core remotely.<br \/>\n<\/span><\/span><\/p>\n<hr \/>\n<p><span style=\"font-size: xx-small; font-family: Verdana;\">Copyright \u00a92009 Zubair Alexander. All rights reserved.<\/span><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Windows Server 2008 (WS08) Server Core doesn&#8217;t have a GUI. Therefore, when you install the Server Core you need to configure some of the basic parameters to get the server ready for remote administration. For example, you need to configure the IP parameters and open the appropriate ports before you can manage the Server Core [&hellip;]<\/p>\n","protected":false},"author":7,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"footnotes":""},"categories":[11,30],"tags":[],"class_list":["post-1302","post","type-post","status-publish","format-standard","hentry","category-tips-tricks","category-longhorn-server"],"aioseo_notices":[],"jetpack_featured_media_url":"","_links":{"self":[{"href":"https:\/\/www.zubairalexander.com\/blog\/wp-json\/wp\/v2\/posts\/1302","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.zubairalexander.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.zubairalexander.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.zubairalexander.com\/blog\/wp-json\/wp\/v2\/users\/7"}],"replies":[{"embeddable":true,"href":"https:\/\/www.zubairalexander.com\/blog\/wp-json\/wp\/v2\/comments?post=1302"}],"version-history":[{"count":0,"href":"https:\/\/www.zubairalexander.com\/blog\/wp-json\/wp\/v2\/posts\/1302\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.zubairalexander.com\/blog\/wp-json\/wp\/v2\/media?parent=1302"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.zubairalexander.com\/blog\/wp-json\/wp\/v2\/categories?post=1302"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.zubairalexander.com\/blog\/wp-json\/wp\/v2\/tags?post=1302"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}