Managing DNS in Windows Server 2012

DNSIn “How to install DNS on Windows Server 2012 ?” post, I explained DNS installation, and now I talk about managing a DNS server.

If you have installed DNS on a Domain Controller, the administrative job will become so less, because DNS is integrated into Active Directory.

DNS client will update its DNS record automatically if “Register the connection’s addresses in DNS” is selected (by default it is), or your DHCP server can register DNS records on behalf of DNS clients too. So, in most of the time managing DNS is easy. Otherwise, if you want to manually configure it, pay attention to these procedures.

GUI:

  1. Press Windows Key + R, execute dnsmgmt.msc
  2. On DNS Manager window, right-click your server and click New Zone
  3. On wizard, click on Next. On Zone Type window, select Primary zone (because the first zone must be primary), and check Store the zone in Active Directory (it is selected by default). Then click Next
  4. On Active Directory Zone Replication Scope page, select the default option of To all DNS servers running on domain controllers on this domain : CyrusBesharat.local, click Next then
  5. Be sure to select Forward lookup zone as the default option, and click Next
  6. Type CyrusBesharat for zone name, then click on Next
  7. Check the radio button of Allow only secure dynamic updates (recommended for Active Directory), click on Next, then Finish to close the wizard
  8. Now you should add records to DNS server, so on DNS manager, expand SERVER1, Forward Lookup Zones, then right click  CyrusBesharat, and select New Host (A or AAAA)…
  9. On New Host window, type the name of one of your computers, for example Server2, and below IP address type its IP address like 10.10.10.2. And click Add Host, then confirm OK and close the window

PowerShell:

  1. Open PowerShell console
  2. Type and hit enter the below command:

Add-DnsServerPrimaryZone -Name CyrusBesharat -ZoneFile CyrusBesharat.dns
Add-DnsServerResourceRecordA -ZoneName CyrusBesharat –Name Server2 -IPv4Address 10.10.10.2

Advertisements

How to install DNS on Windows Server 2012 ?

DNSDomain Name System (DNS) is one of the fundamentals of every network specially on the Internet. It translates computers and domain names into IP addresses and vice versa.

First of all, know the changes of DNS in Windows Server 2012 on TechNet page by the name of “What’s New in DNS”, and if you have not installed it during the Active Directory installation, follow me to install it on Windows Server 2012.

GUI method:

  1. Open Server Manager, on Dashboard, click Add roles and features
  2. On Before you begin window, click Next
  3. On Installation Type window, select Role-based or featured-based installation, and click Next
  4. On Server Selection window, check Select a server from a server pool, select the desired server and click Next
  5. On Server Roles page, select DNS Server, confirm Add Features, and click Next twice
  6. On DNS Server window, click Next
  7. On Confirmation window, click Install
  8. On Results page, ensure that DNS installed successfully without any errors, then click Close to finish the wizard

PowerShell method:

  1. Open PowerShell and run this command:

Install-WindowsFeature DNS –IncludeManagementTools

In future posts, I’ll explain how to manage DNS.

%d bloggers like this: