Using 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.

Leave a Comment

Your email address will not be published.

This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Scroll to Top