Skip to content
Sponsor
3.0 preview2.3.0 stable

These docs describe the preview. Pick the version you run and every page marks what it doesn't have yet. Get the preview →
Maester 2.x docs (archived) →

DNS zone count should be retrievable

AD-DNS-01InfoActive DirectoryDNS

Part of Active Directory · Active Directory · DNS · All checks

Run this check
Invoke-Maester -TestId AD-DNS-01

DNS zones are the primary organizational units for DNS data. Understanding how many zones contain resource records helps assess:

  • Infrastructure complexity: More zones indicate a more complex DNS environment
  • Administrative boundaries: Zones often represent different administrative domains
  • Service distribution: Multiple zones may indicate delegated or distributed services
  • Security posture: Unused or empty zones may represent configuration drift

Operational

Regularly audit DNS zones to ensure they are all necessary and properly configured. Remove unused zones and verify that zone delegation follows your organization’s security policies.

This test retrieves all DNS zones and counts those that contain resource records. It provides:

  • Total number of DNS zones
  • Count of zones with records
  • Count of empty zones
  • Test-MtAdDnsEmptyZoneCount - Identifies zones with no records
  • Test-MtAdDnsZonesWithOnlySoaNs - Finds zones with only default records
Every attribute of this check
FieldValue
Test IDAD-DNS-01
SeverityInfo
SuiteActive Directory
ProductActive Directory
FeatureDNS
AreaInfrastructure hardening
Resource typeDnsZone
MITRE ATT&CKNone
PowerShell testTest-MtAdDnsZoneCount
ServicesActiveDirectory
PermissionsActiveDirectory:Remoting:Microsoft.PowerShell, ActiveDirectory:Cim:root\MicrosoftDNS:MicrosoftDNS_Zone:Read, ActiveDirectory:Cim:root\MicrosoftDNS:MicrosoftDNS_ResourceRecord:Read, ActiveDirectory:Cim:root\MicrosoftDNS:MicrosoftDNS_RootHints:Read