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) →

Domain name standard compliance should be retrievable

AD-DOM-05InfoActive DirectoryDomain and forest

Part of Active Directory · Active Directory · Domain and forest · All checks

Run this check
Invoke-Maester -TestId AD-DOM-05

Domain names that don’t comply with RFC 1123 and RFC 952 standards can cause various problems:

  • DNS Resolution Issues: Non-compliant names may not resolve correctly in some DNS implementations
  • Certificate Problems: SSL/TLS certificates may not work properly with non-standard domain names
  • Application Compatibility: Some applications enforce strict domain name validation
  • Interoperability: Issues with cross-forest trusts and external integrations

RFC standards require domain names to:

  • Start with a letter or digit
  • Contain only letters, digits, and hyphens
  • Not exceed 63 characters per label
  • Not end with a hyphen

Preventive

  • Avoid Non-Standard Characters: Don’t use underscores, spaces, or special characters in domain names
  • Keep Labels Short: Each domain label should be 63 characters or less
  • Plan Renames Carefully: Domain rename is complex; plan during initial deployment
  • Document Exceptions: If non-compliant names exist, document the business justification

This test checks all domain names in the forest against RFC 1123 naming standards. It splits each domain into labels (separated by dots) and validates each label against the standard naming pattern.

  • Test-MtAdDomainNameNonStandardDetails - Lists details of non-compliant domain names
  • Test-MtAdNetbiosNameStandardCompliance - Checks NetBIOS name compliance
Every attribute of this check
FieldValue
Test IDAD-DOM-05
SeverityInfo
SuiteActive Directory
ProductActive Directory
FeatureDomain and forest
AreaInfrastructure hardening
Resource typeTenant
MITRE ATT&CKNone
PowerShell testTest-MtAdDomainNameStandardCompliance
ServicesActiveDirectory
PermissionsActiveDirectory:Ldap:crossRef:ReadProperty