Using PowerShell to view a list of DNS zones

by Mitch Tulloch [Published on 29 Aug. 2013 / Last Updated on 29 Aug. 2013]

A tip on how you can use Windows PowerShell to view a list of DNS zones.

You can manage Windows Server 2012 DNS servers using Windows PowerShell. Common DNS server-management tasks include adding resource records to zones, configuring forwarders, configuring root hints, and so on.

For example, let’s view a list of zones on a DNS server that is also a domain controller for the corp.contoso.com domain:

PS C:\> Get-DnsServerZone
 
ZoneName                 ZoneType  IsAutoCreated   IsDsIntegrated  IsRever...  IsSigned
---------------                 --------------  -------------------   ---------------------  ----------     --------
_msdcs.corp.contoso.com  Primary   False           True            False       True
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
corp.contoso.com       Primary   False           True            False       False
TrustAnchors               Primary   False           True            False       False

Mitch Tulloch is a nine-time recipient of the Microsoft Most Valuable Professional (MVP) award and a widely recognized expert on Windows administration, deployment and virtualization.  For more information see http://www.mtit.com. This tip was excerpted from his latest book Training Guide: Installing and Configuring Windows Server 2012 from Microsoft Press.

See Also

Featured Links