This article is a step by step tutorial on how to install and configure a DNS Server on Windows Server 2012.
MS Windows Server 2012 is a great and powerful server OS capable of many different roles and functions. However, to prevent overloading production servers with features and options that are never used, Windows Server 2012 provides a great option for Administrator to manually install the service needed.
Important! Before install, make sure your DNS server has a static IP-address.
Now let’s begin.
At first we need to open Server Manager and click on Add Roles and Features.
Select Role-based or feature-based installation option and click on Next.
Here you need to select desired server you’d like to install DNS Server.
From Server Roles lists select DNS server and click on Next.
Click Add Features on the popup window.
Now you can see that item DNS is checked.
No additional features required for this step, but we want to be sure that DNS Server Tools is already selected. To check this, click on Remote Server Admnistraton => Role Administration Tools. Then click on Next.
Here just click on Next.
To confirm installation press Install.
Installation process started, it may take few minutes.
DNS Server Installation is successfully completed, click on Close.
Now we will configure our DNS Server. Click on Tools in the upper right corner of Server Manager and click on DNS in the drop-down list.
Select your server on the left side of DNS Manager window to open zone list.
Right-click on Forward Lookup Zones and click on New Zone from context menu to bring up the New Zone Wizard.
In this window click Next.
In this step you can select the type of DNS you want to use. The primary zone will be located on your server, the secondary zone will be located on another server. The secondary zone is used in large networks for load balancing. Choose Primary zone and click on Next to continue.
Enter any name for new zone file and click on Next button.
Dynamic updates allows DNS clients register their resource records in DNS database automatically, but if the network is small we can make updates of DNS database manually.
Here just click on Finish.
If earlier you have chosen Do not to allow dynamic updates, you should add records to zone manually. First, add record of the server itself. To do this right click on zone name and click on New Host (A or AAAA).
Here enter name and IP-address of your DNS Server in appropriate fields and then click Add Host.
As you can see on the right side of the DNS Manager window, the new host is now created. You can create records for client computers in exactly the same way.
Now you should add Reverse Lookup Zone. To do this right click on Reverse Lookup Zone and click on New Zone from the action menu to bring up the New Zone Wizard.
Next steps will be the same as for Forward Lookup Zone, click Next.
Choose Primary zone and click on Next to continue.
Here you need to select the type of IP-address, check on IPv4 and click on Next to continue.
In Network ID field enter the first three octets of your DNS Server IP-address.
Just click on Next.
Check Do not allow dynamic updates and press Next.
Click on Finish button and your DNS server is now configured and ready for use.
As you can see on the right side of DNS Manager window, Reverse Lookup Zone is now created.
In order to obtain domain name or IP address mapping run command line and type nslookup.