# Windows DNS Server In Windows Server, DNS is a server role that you can install by using Server Manager or Windows PowerShell commands. If you are installing a new Active Directory forest and domain, DNS is automatically installed with Active Directory as the Global Catalogue server for the forest and domain. --- ## Install Windows DNS Server role ```powershell Install-WindowsFeature -Name DNS -IncludeManagementTools ``` --- ## Manage DNS Server via PowerShell **List available DNS Servers** ```powershell Get-Module DNSServer -ListAvailable ``` **Show current DNS Records in Zone** ```powershell Get-DnsServerResourceRecord -ZoneName ``` ### Get/Create/Modify DNS Record **Show DNS Record** ```powershell Get-DnsServerResourceRecord -ZoneName -Name ``` **Delete DNS Record** ```powershell Get-DnsServerResourceRecord -ZoneName -Name | Remove-DnsServerResourceRecord -ZoneName ``` **Add DNS Record** ``` Add-DnsServerResourceRecordA -Name -ZoneName -AllowUpdateAny -IPv4Address -TimeToLive ```