Sunteți pe pagina 1din 14

9/25/2019 How to Install and Configure DNS Server on Windows Server 2016/2012 R2?

– TheITBros

ABOUT THE AUTHORS CONTACT US SITEMAP PRIVACY POLICY

Search the site Search

WINDOWS HARDWARE MOBILE OFFICE DRIVERS BROWSERS REVIEWS OTHERS

Home » Miscellaneous » Windows » Windows Server » How to Install and Configure DNS Server on
Windows Server 2016/2012 R2?

How to Install and Configure DNS Server on


Windows Server 2016/2012 R2?
Like 3 Tweet November 19, 2018

This article is a step by step tutorial on how to install and configure a DNS Server on Windows Server
2016 /2012 R2. Also we will show you how to create forward and reverse lookup zones. For a start, we’ll also
take a look at what’s the DNS service and what it is used for.

DNS (Domain Name System) is a system that allows you to find the IP address of a host by a domain name
and vice versa. DNS server—this network service provides and supports DNS operation. The DNS server
may be responsible for the specific zone in which the corresponding computers are located. Since the DNS
system is hierarchical system, the DNS server can redirect the request to the upstream server if it cannot
determine the IP address of the host by the domain name.

Most often, the DNS server role is installed along with the installation of the Active Directory domain controller
role. If you don’t need AD, you can install the DNS server role separately.

SPONSORED SEARCHES

a domain name active directory

address directory lookup alternative networks

Important! Before install, make sure your DNS server has a static IP-address. Popular Posts
Now let’s begin. Destination Path Too Long Fix (when
Moving/Copying a File)
The fastest way is to install the DNS server role in Windows Server 2016 using the following PowerShell
command (run it with an administrator permissions):
Installing Active Directory Users and
Computers MMC Snap-in on Windows 10

Sysprep Windows 10 Machine: Step by Step


Guide

Add Calendar Permissions in Office 365 via


PowerShell

Fix Trust relationship failed issue without


domain rejoining

Install-WindowsFeature DNS -IncludeManagementTools How to Login with a Local Account instead of


Domain Account

You can also install the DNS server role from the Server Manager GUI. Open Server Manager and click on
AddThis site and
Roles usesFeatures.
cookies to analyze traffic, personalize your experience and serve ads. By continuing browsing this site, we will assume that you are agree with it. I agree!

Read more

https://theitbros.com/install-and-configure-dns-server-on-windows-server-2012/ 1/14
9/25/2019 How to Install and Configure DNS Server on Windows Server 2016/2012 R2? – TheITBros

Find us on Facebook
Select Role-based or feature-based installation option and click on Next.

TheITBros.com
1,058 likes

Like Page Send Message

Be the first of your friends to like this

Here you need to select desired server you’d like to install DNS Server (usually this is the current server).

From Server Roles lists select DNS server and click on Next. Click Add Features on the popup window—in
this This
case,site uses
the DNScookies to analyze
management traffic, personalize
console your experience
and PowerShell DNS moduleandwill
servebeads. By continuing
installed browsing
automatically. this site, we will assume that you are agree with it.
If you I agree!

want to manage this DNS server remotely, you can not install these tools. Read more

https://theitbros.com/install-and-configure-dns-server-on-windows-server-2012/ 2/14
9/25/2019 How to Install and Configure DNS Server on Windows Server 2016/2012 R2? – TheITBros

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 Administration > Role Administration Tools. Then click on
Next.

This site uses cookies to analyze traffic, personalize your experience and serve ads. By continuing browsing this site, we will assume that you are agree with it. I agree!

Read more

https://theitbros.com/install-and-configure-dns-server-on-windows-server-2012/ 3/14
9/25/2019 How to Install and Configure DNS Server on Windows Server 2016/2012 R2? – TheITBros

Here just click on Next.

To confirm installation press Install.

This site uses cookies to analyze traffic, personalize your experience and serve ads. By continuing browsing this site, we will assume that you are agree with it. I agree!

Read more

https://theitbros.com/install-and-configure-dns-server-on-windows-server-2012/ 4/14
9/25/2019 How to Install and Configure DNS Server on Windows Server 2016/2012 R2? – TheITBros

Installation process started, it may take few minutes.

DNS Server Installation is successfully completed, click on Close.

So, the server role of the DNS server is installed. Now you can configure your DNS Server. To run DNS server
management tools, click on Tools in the upper right corner of Server Manager and click on DNS in the drop-
down list.

This site uses cookies to analyze traffic, personalize your experience and serve ads. By continuing browsing this site, we will assume that you are agree with it. I agree!

Read more

https://theitbros.com/install-and-configure-dns-server-on-windows-server-2012/ 5/14
9/25/2019 How to Install and Configure DNS Server on Windows Server 2016/2012 R2? – TheITBros
Select your server on the left side of DNS Manager window to open zone list.

Currently there are no zones configured on your DNS server. This server is called caching. Zones are parts of
the namespace for which the server is responsible. Forward lookup zones are used to convert a name to an IP
address. The reverse lookup zone, on the contrary, matches the IP address with the hostname. The presence
of a reverse lookup zone on the DNS server is not necessary, but it is easy to configure and provides the full
functionality of the DNS service.

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.

This site uses cookies to analyze traffic, personalize your experience and serve ads. By continuing browsing this site, we will assume that you are agree with it. I agree!

Read more

https://theitbros.com/install-and-configure-dns-server-on-windows-server-2012/ 6/14
9/25/2019 How to Install and Configure DNS Server on Windows Server 2016/2012 R2? – TheITBros

Specify the name of the zone file.

Dynamic updates allow DNS clients register their resource records in DNS database automatically, but if the
network is small we can make updates of DNS database manually. It is recommended to allow dynamic
updates, but only if DNS will be used exclusively on your local network. Otherwise, this item may entail
security risks, as the “New Zone Wizard” will warn you about.

This site uses cookies to analyze traffic, personalize your experience and serve ads. By continuing browsing this site, we will assume that you are agree with it. I agree!

On the next window just click on Finish. Read more

https://theitbros.com/install-and-configure-dns-server-on-windows-server-2012/ 7/14
9/25/2019 How to Install and Configure DNS Server on Windows Server 2016/2012 R2? – TheITBros
That’s all, forward zone created. Setting the zone is done by adding DNS records to the zone. There are
several types of DNS records. Consider the main types of DNS records:

A-record (AAAA-record)—matches the hostname and IP address;


CNAME-record—used to forward to another name;
MX—mail entry, points to mail servers;
NS—points to DNS server.

If earlier you have chosen Do not to allow dynamic updates, you should add records to zone manually. 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.

A message appears stating that the node has been created.

The host record was successfully created.

You can also create an A record using PowerShell:

Add-DnsServerResourceRecordA -Name 'client1' -ZoneName 'test.contoso.com’ -IPv4Address

As you can see on the right side of the DNS Manager window, the new host is now created. You can create
records
This for
siteclient computers
uses cookies in exactly
to analyze thepersonalize
traffic, same way.your experience and serve ads. By continuing browsing this site, we will assume that you are agree with it. I agree!

Read more

https://theitbros.com/install-and-configure-dns-server-on-windows-server-2012/ 8/14
9/25/2019 How to Install and Configure DNS Server on Windows Server 2016/2012 R2? – TheITBros

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.

This site uses cookies to analyze traffic, personalize your experience and serve ads. By continuing browsing this site, we will assume that you are agree with it. I agree!

Read more

https://theitbros.com/install-and-configure-dns-server-on-windows-server-2012/ 9/14
9/25/2019 How to Install and Configure DNS Server on Windows Server 2016/2012 R2? – TheITBros

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
Thiscan
site see
useson the right
cookies side of traffic,
to analyze DNS Manager window,
personalize Reverse Lookup
your experience Zone
and serve ads.is
Bynow created.
continuing browsing this site, we will assume that you are agree with it. I agree!

Read more

https://theitbros.com/install-and-configure-dns-server-on-windows-server-2012/ 10/14
9/25/2019 How to Install and Configure DNS Server on Windows Server 2016/2012 R2? – TheITBros

In order to obtain domain name or IP address mapping using the command nslookup:

Nslookup client1.test.contoso.com

Tip. Don’t forget to check which DNS server is specified in the settings of the network interface (it should be,
respectively, the IP address of the current server).

In order for a DNS server to resolve addresses in other zones, you need to configure DNS Forwarders. To do
this, in the DNS Manager console, open the properties of your server.

Go to the Forwarders tab, click the Edit button and add the address of the external DNS server to which you
want to forward requests (for example, 8.8.8.8).

This site uses cookies to analyze traffic, personalize your experience and serve ads. By continuing browsing this site, we will assume that you are agree with it. I agree!

Read more

https://theitbros.com/install-and-configure-dns-server-on-windows-server-2012/ 11/14
9/25/2019 How to Install and Configure DNS Server on Windows Server 2016/2012 R2? – TheITBros

You can also configure DNS Forwarders using the command:

Add-DnsServerForwarder -IPAddress 8.8.8.8 –PassThru

This site uses cookies to analyze traffic, personalize your experience and serve ads. By continuing browsing this site, we will assume that you are agree with it. I agree!

Read more

https://theitbros.com/install-and-configure-dns-server-on-windows-server-2012/ 12/14
9/25/2019 How to Install and Configure DNS Server on Windows Server 2016/2012 R2? – TheITBros

You may also like:


How to Migrate DHCP to Windows Server 2016
Migrating the DHCP service from the old server to the new Windows Server 2016 with saving of all the settings of the old server
is quite easy. If the ...

How to Truncate SQL Transaction Logs


Transaction logs in SQL Server 2012 tend to grow over time, which can sometimes fill all your available disk space. To avoid this
SQL Server has Trun...

Config Remote Desktop Easy Print on Windows Server...


TS Easy Print technology was first introduced in Windows Server 2008 as an alternative to the use of traditional printing
subsystem on Remote Desktop ...

How to Setup FTP Server in Windows 10?


FTP (File Transfer Protocol) is a popular Internet data transfer protocol. You can use FTP to transfer files between a remote
server and a local PC. F...

The RPC server is unavailable 0x800706BA


Most likely, a lot of you already faced with an error The RPC server is unavailable. (Exception from HRESULT: 0x800706BA),
when you tried to connect t...

Like 3 Tweet Posted By The IT Bros

Add Your Comment

Name (required)

Mail (will not be published) (required)

Website

Submit Comment

.. This site uses cookies to analyze traffic, personalize your experience and serve ads. By continuing browsing this site, we will assume that you are agree with it. I agree!

TheITBros © 2019. Read more Back to Top ↑

https://theitbros.com/install-and-configure-dns-server-on-windows-server-2012/ 13/14
9/25/2019 How to Install and Configure DNS Server on Windows Server 2016/2012 R2? – TheITBros

https://theitbros.com/install-and-configure-dns-server-on-windows-server-2012/ 14/14

S-ar putea să vă placă și