Install and Configure DNS on Windows Server 2019

In this article, I will show you how to install and configure  DNS on windows server 2019 with PowerShell and the GUI method. The GUI method is slightly longer. I will start this installation with GUI and later will see it with Powershell.


  1. Server OS (Windows server 2019)
  2. Administrator Account
  3. A Static IP address is configured
  4. Latest windows updates installed

Install Windows  DNS Server

Step1: Open the server manager dashboard and Click add roles and features.


Step 2: Click on Next


Step 3: Choose Role-based or feature-based installation and click Next.

Step 4: Choose destination server for DNS role and click Next

Add Role and features

Step 5: Put the Check on the DNS server for DNS Server Role Installation


Step 6: Add features that are required for the DNS server including management tools.

dns managment

Step 7: After adding of required features it installs the DNS server with a succeeded message.


Step 8: After DNS Server Installation you can access the DNS server from Server Manager or from Administrative Tools option in windows Program.

DNS Server Role

Install DNS Server with PowerShell

Step 1: Run the below Powershell command with local admin rights and restart your server.


Creating Forward Lookup Zone

Step 1. Open DNS management console.

Step 3. In DNS manager console,  expand DNS server. Right-click Forward Lookup Zones.

Step 4. Click New Zone.

Step 5. Default Primary zone is selected, but you can change it accordingly and click on Next.

Step 6. Assign the zone name. In my case, I have assigned

Step 7. A New Zone file for zone is going to be created. Click on Next.

Step 8. Select the Zone update type. In this case by default is selected.

Step 9. Now A new Zone with below options has been created.

After Creating of zone you can add or remove records accordingly.

Post A Comment

Your email address will not be published. Required fields are marked *