Microsoft Windows Server 2012 is a powerful server operating system capable of many different roles and functions. However, to prevent overloading production servers with features and options that are never used, Windows Server provides a modular approach in which the administrator manually installs the services needed.
To set up and configure DNS, you'll need to install the DNS Server Role on Windows Server 2012. This article will guide you through the DNS installation and configuration process in Windows Server 2012. Please note that you'll need to be logged into your Windows server. When you're ready to proceed, please refer to the following steps.
Installing the DNS Server Role in Server 2012
To add a new role to Windows Server 2012, you use the Server Manager.
- Start Server Manager
- Click the Manage menu
- Select Add Roles and Features
- Click Next on the Add Roles and Features Wizard Before you begin the window that pops up (If you checked to Skip this page by default at any point in the past, the page should not appear)
- Select Role-based or feature-based installation
- Select the server that you'd like to install the DNS function to from the server pool and click next
- At this point, you'll see a pop-up window informing you that some additional tools are required to manage the DNS Server.
- We recommend going ahead and install these tools unless your company policy explicitly forbids this practice.
- You shouldn't need to make any changes in the Features window, and you can click Next.
- Click next on the information window that appears
- You should now be at the final confirmation screen before installation
- You can choose to restart the server once the installation is complete, although this is not necessary
Congratulations! The DNS Server role should now be installed and ready for use! You should now see a new DNS Role tile in your Server Manager.
Configuring the DNS Server Role in Server 2012
If you're an old pro with DNS server files, Windows Server 2012 does let you edit the files directly. However, Microsoft recommends using the interface tools to avoid errors, especially if you're integrating DNS with Active Directory. If you want to use the command line to configure your DNS, use the dnscmd command. For those who don't memorize TechNet for fun, a few clicks are all it takes.
- Within the Server Manager, click the Tools menu and select DNS
- This brings up the DNS Manager window, which should look something like the following screenshot
- Select the DNS Server to manage
- Click the Action Menu
- Select Configure a DNS Server
- You should now see the Configure a DNS Server wizard
- There are three options
- Configure a forward lookup zone
- Create forward and reverse lookup zones
- Configure root hints only
- Select the option which best suits your needs. Generally, creating forward and reverse lookup zones is the best approach.
- Click Next
- Choose whether this server will maintain the zone or if this server will have a read-only copy of the DNS records from another server.
- Enter your zone name
- Click Next
- Choose the file name where the DNS records will be stored
- Select how this server will respond to Dynamic Updates
- Select the first option to allow only secure dynamic updates if you're integrating your DNS with Active Directory
- Select do not allow dynamic updates if your DNS is not integrated with Active Directory and you don't want to allow dynamic updates
- Select if you'd like the DNS server to forward queries
- Click Next
Your DNS Server should now be configured and ready to use!