How to Install and Configure DNS Server on Windows Server

Loading

DNS is an addressing system that allows you to find a computer on the network by calling its friendly name rather than the IP address and vice versa. DNS role can deployed along with the Active directory role or it can be deployed separately.

This tutorial is on how to install and configure a DNS Server on a Windows Server using PowerShell.

Prerequisites for a DNS

  • A fresh installation of Windows OS – Server 2019. 2016.
  • Configure the system with Static IP.
  • PowerShell DNS module

Install DNS role

DNS server role in Windows Server can be installed using the following PowerShell command

There are several types of DNS records.

  • A-Record – set to match the hostname and IP address
  • CNAME – record used to forward to another name
  • MX – mail server such as exchange
  • NS – Name server

Adding Address and PTR Records

A and PTR record can be added using PowerShell:

Display Address and PTR Records

Remove Address and PTR Records

(Visited 167 times, 1 visits today)

By C A Thomas

Chinchu A. Thomas is an Infrastructure Analyst specializing in Microsoft Azure, the Microsoft 365 suite, AWS, and Windows infrastructure management products.

Leave a Reply