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.

The Author — Mitch Tulloch

Mitch Tulloch is a widely recognized expert on Windows administration, networking, and security. He has been repeatedly awarded Most Valuable Professional (MVP) status by Microsoft for his outstanding contributions in supporting users who deploy and use Microsoft platforms, products and solutions. Mitch has published over two hundred articles on different IT websites and magazines, and he has written or contributed to almost two dozen books and is lead author for the Windows 7 Resource Kit from Microsoft Press. For more information, see www.mtit.com .

Latest Contributions

Featured Links