AD-DCOMP-07 - Computer DNS host name count should be retrievable
Overviewโ
- DNS host names (the
dNSHostNameattribute) are essential for proper Active Directory functionality, particularly for Kerberos authentication and service principal name (SPN) registration.
Security Implications:
- Kerberos Authentication: Required for proper Kerberos ticket requests
- SPN Registration: Service Principal Names depend on valid DNS host names
- Name Resolution: Critical for service discovery and connectivity
- Certificate Management: SSL/TLS certificates often depend on DNS names
Missing DNS Host Names May Indicate:
- Improper computer provisioning
- Legacy systems from older AD versions
- Configuration errors during domain join
- Incomplete computer account setup
Security Recommendationโ
-
Ensure Proper Configuration:
- All computers should have valid DNS host names
- DNS names should match the computer's actual network name
- Regular validation of DNS registration
-
DNS Integration:
- Enable dynamic DNS updates for domain members
- Verify DNS records match AD computer accounts
- Monitor for DNS registration failures
-
Remediation:
- Update computers missing DNS host names
- Delete stale computer accounts without DNS names
- Investigate provisioning process if widespread issue
How the Test Worksโ
This test counts computers with and without the dNSHostName attribute populated and reports:
- Total computers
- Computers with DNS host names
- Computers without DNS host names
- Percentage coverage
Related Testsโ
Test-MtAdComputerDnsZoneCount- DNS zone distributionTest-MtAdComputerDnsZoneDetails- Detailed DNS zone analysisTest-MtAdComputerSpnSetCount- SPN configuration check
Test Metadataโ
| Field | Value |
|---|---|
| Test ID | AD-DCOMP-07 |
| Severity | Info |
| Suite | Active Directory |
| Category | AD.Security |
| PowerShell test | Test-MtAdComputerDnsHostNameCount |
| Tags | AD, AD-DCOMP-07, AD.Security |
Sourceโ
- Pester test:
tests/ad/security/Test-MtAdComputerDnsHostNameCount.Tests.ps1 - PowerShell source:
powershell/public/ad/security/Test-MtAdComputerDnsHostNameCount.ps1

