How to install DNS Server on Windows Server 2019

From Microsoft, the Domain Name System (DNS) is one of the industry standard protocol sets that includes TCP / IP, along with DNS Client and DNS Server that provide name resolution services that map names to the IP addresses of computers. .

In today's article, TipsMake will explain how to install DNS Server on Windows Server 2019 and then perform other additional configuration. Before proceeding, make sure that you have configured a static IP address on your server.

Install DNS Server on Windows Server 2019

Configure DNS Server to provide hostname resolution or IP address!

On the CUI settings, set up as follows:

Step 1. Run PowerShell as admin and enter the following code to install DNS Server.

Windows PowerShell Copyright (C) Microsoft Corporation. All rights reserved. # install DNS with admin tools PS C:UsersAdministrator> Install-WindowsFeature DNS -IncludeManagementTools Success Restart Needed Exit Code Feature Result ------- -------------- --------- -------------- True Yes SuccessRest. {DNS Server, . WARNING: You must restart this server to finish the installation process. # restart computer to apply changes PS C:UsersAdministrator> Restart-Computer -Force 

On the GUI settings, set up as follows:

Step 2. Run Server Manager and click Add roles and features .

How to install DNS Server on Windows Server 2019 Picture 1How to install DNS Server on Windows Server 2019 Picture 1

Step 3. Click the Next button .

How to install DNS Server on Windows Server 2019 Picture 2How to install DNS Server on Windows Server 2019 Picture 2

Step 4. Select Role-based or feature-based installation .

How to install DNS Server on Windows Server 2019 Picture 3How to install DNS Server on Windows Server 2019 Picture 3

Step 5. Select a Host for which you want to add services.

How to install DNS Server on Windows Server 2019 Picture 4How to install DNS Server on Windows Server 2019 Picture 4

Step 6. Check the box DNS Server .

How to install DNS Server on Windows Server 2019 Picture 5How to install DNS Server on Windows Server 2019 Picture 5

Step 7. Additional features required to add DNS Server. Click the Add Features button and then click Next .

How to install DNS Server on Windows Server 2019 Picture 6How to install DNS Server on Windows Server 2019 Picture 6

Step 8. Click the Next button .

How to install DNS Server on Windows Server 2019 Picture 7How to install DNS Server on Windows Server 2019 Picture 7

Step 9. Click the Next button .

How to install DNS Server on Windows Server 2019 Picture 8How to install DNS Server on Windows Server 2019 Picture 8

Step 10. Click the Install button .

How to install DNS Server on Windows Server 2019 Picture 9How to install DNS Server on Windows Server 2019 Picture 9

Step 11. After finishing the installation process, click the Close button .

How to install DNS Server on Windows Server 2019 Picture 10How to install DNS Server on Windows Server 2019 Picture 10

Add the Forward Lookup Zone to the DNS Server

Step 1. Run Powershell as administrator and configure it as follows.

The following example adds a Forward Lookup Zone with the Zone-Name setting "srv.world" , Zone-File "srv.world.dns" . In general, give your domain name or part of your domain name to Zone-Name.

Windows PowerShell Copyright (C) Microsoft Corporation. All rights reserved. PS C:UsersAdministrator> Add-DnsServerPrimaryZone -Name "srv.world" -ZoneFile "srv.world.dns" -DynamicUpdate None -PassThru ZoneName ZoneType IsAutoCreated IsDsIntegrated IsReverseLookupZone IsSigned -------- -------- ------------- -------------- ------------------- -------- srv.world Primary False False False False PS C:UsersAdministrator> Get-DnsServerZone # [srv.world] has been added ZoneName ZoneType IsAutoCreated IsDsIntegrated IsReverseLookupZone IsSigned -------- -------- ------------- -------------- ------------------- -------- 0.in-addr.arpa Primary True False True False 127.in-addr.arpa Primary True False True False 255.in-addr.arpa Primary True False True False srv.world Primary False False False False TrustAnchors Primary False False False False # if remove it, run like follows PS C:UsersAdministrator> Remove-DnsServerZone "srv.world" -PassThru Confirm [Y] Yes [N] No [S] Suspend [?] Help (default is "Y"): Y ZoneName ZoneType IsAutoCreated IsDsIntegrated IsReverseLookupZone IsSigned -------- -------- ------------- -------------- ------------------- -------- srv.world Primary False False False False

Step 2. Run Server Manager and select Tools> DNS .

How to install DNS Server on Windows Server 2019 Picture 11How to install DNS Server on Windows Server 2019 Picture 11

Step 3. Select Hostname in the left panel and right click on Hostname to bring up the menu and select New Zone .

How to install DNS Server on Windows Server 2019 Picture 12How to install DNS Server on Windows Server 2019 Picture 12

Step 4. Click the Next button .

How to install DNS Server on Windows Server 2019 Picture 13How to install DNS Server on Windows Server 2019 Picture 13

Step 5. Check the Primary zone box and click the Next button .

How to install DNS Server on Windows Server 2019 Picture 14How to install DNS Server on Windows Server 2019 Picture 14

Step 6. Check the Forward Lookup Zone box and click the Next button .

How to install DNS Server on Windows Server 2019 Picture 15How to install DNS Server on Windows Server 2019 Picture 15

Step 7. Enter a name in the Zone name field . As described on the screenshot below, please give the domain name or part of the domain name to this Zone name.

How to install DNS Server on Windows Server 2019 Picture 16How to install DNS Server on Windows Server 2019 Picture 16

Step 8. Set zone-file-name and click Next button . You can keep the default name for zone-file-name.

How to install DNS Server on Windows Server 2019 Picture 17How to install DNS Server on Windows Server 2019 Picture 17

Step 9. Click the Next button and keep the default options.

How to install DNS Server on Windows Server 2019 Picture 18How to install DNS Server on Windows Server 2019 Picture 18

Step 10. Click the Finish button .

How to install DNS Server on Windows Server 2019 Picture 19How to install DNS Server on Windows Server 2019 Picture 19

Step 11. A new zone has been created in the Forward Lookup Zone.

How to install DNS Server on Windows Server 2019 Picture 20How to install DNS Server on Windows Server 2019 Picture 20

4 ★ | 58 Vote