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.
- Server OS (Windows server 2019)
- Administrator Account
- A Static IP address is configured
- 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
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.
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.
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 wintelpro.com
Step 7. A New Zone file for wintelpro.com 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.