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

4 Responses to Managing DNS in Windows Server 2012

  1. p2000 info says:

    It’s actualy a great site thanks for this stuff!

  2. gratissexcam says:

    I wanna thank you for posting this fantastic information. Keep up this great job. I’ll subscribe to your weblog also. thnx!

  3. Very shortly this web site will be famous among all blogging and site-building visitors, due to it’s pleasant posts

  4. Yes! Finally something about traning.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: