# Domain name non-standard details should be retrievable

This test provides detailed information about non-compliant domain names, helping you:

Source: https://maester.dev/docs/tests/AD-DOM-06

<!-- This file is generated by website/scripts/generate-test-docs.mjs. Do not edit manually. -->

<div class="test-byline"><div class="test-byline-avatars"><a class="test-byline-avatar test-byline-avatar--author" href="/contributors/soulemike" title="Michael Soule · Original author"><img src="https://github.com/soulemike.png" alt="Michael Soule" width="28" height="28" loading="lazy" decoding="async" /></a></div><div class="test-byline-meta"><span class="test-byline-text">Contributed by <a href="/contributors/soulemike">Michael Soule</a></span><a class="test-byline-link" href="/contributors">All contributors →</a></div></div>

<p class="test-part">Part of <a href="/docs/tests/ad">Active Directory</a> · Active Directory · Domain and forest · <a href="/docs/tests">All checks</a></p>

```powershell title="Run this check"
Invoke-Maester -TestId AD-DOM-06
```

## Overview

This test provides detailed information about non-compliant domain names, helping you:

- **Identify Problem Domains**: Pinpoint exactly which domains have naming issues
- **Plan Remediation**: Understand the specific compliance violations
- **Document Exceptions**: Create records of non-compliant names for audit purposes
- **Prevent Future Issues**: Ensure new domains follow naming standards

#### Control Type

**Detective**

#### Security Recommendation

When non-compliant domain names are identified:

1. **Assess Impact**: Determine if the non-compliance causes actual operational issues
2. **Document**: Record the domain names and reasons for non-compliance
3. **Plan Migration**: If rename is necessary, plan carefully as it's a complex operation
4. **Prevent**: Establish naming standards for future domain additions

#### How the Test Works

This test checks each domain name label against RFC 1123 standards and provides detailed information about which specific labels are non-compliant and why.

#### Related Tests

- `Test-MtAdDomainNameStandardCompliance` - Counts non-compliant domain names
- `Test-MtAdNetbiosNameNonStandardDetails` - Lists non-compliant NetBIOS names

## Details

<details>
<summary>Every attribute of this check</summary>

| Field | Value |
| --- | --- |
| Test ID | AD-DOM-06 |
| Severity | Info |
| Suite | Active Directory |
| Product | Active Directory |
| Feature | Domain and forest |
| Area | Infrastructure hardening |
| Resource type | Tenant |
| MITRE ATT&CK | None |
| PowerShell test | [Test-MtAdDomainNameNonStandardDetails](https://github.com/maester365/maester/blob/main/tests/ad/domain/Test.AD-DOM-06.ps1) |
| Services | ActiveDirectory |
| Permissions | ActiveDirectory:Ldap:crossRef:ReadProperty |

</details>

## Source

- Test: [`tests/ad/domain/Test.AD-DOM-06.ps1`](https://github.com/maester365/maester/blob/main/tests/ad/domain/Test.AD-DOM-06.ps1)
- Documentation: [`tests/ad/domain/Test.AD-DOM-06.md`](https://github.com/maester365/maester/blob/main/tests/ad/domain/Test.AD-DOM-06.md)
