Skip to content

Rokory/Verify-MS365DnsConfiguration

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Verify-MS365DnsConfiguration

Script to verify the DNS records for Microsoft 365 services.

Description

The script first retrieves the required DNS entries from Azure AD. Then it tries to resolve the entries and compares them to the DNS entries retrieved from Azure AD.

Parameters

Name

The name of the the domain to verify.

Server

The DNS server to use for verification. Default is the default DNS server of the system.

Example

.\Verify-MS365DnsConfiguration.ps1 -DomainId example.com | Format-List

Verifies the DNS entries for the domain example.com

Outputs

System.Collections.Generic.List\<MS365DnsConfigurationVerificationResult\>

A list of missing or mismatched DNS entries.

MS365DnsConfigurationVerificationResult is a type with the properties ShouldBe and Is. ShouldBe contains the object returned by Get-AzureADDomainServiceConfigurationRecord. Is contains the object returned by Resolve-DnsName. If the name cannot be resolved, it contains $null.

Notes

Authenticate to Graph first using Connect-MgGraph -Scopes Domain.Read.All.

Known issues

In some cases a blank line appears between warnings. Although authenticated first like described in the notes, you must authenticate a second time.

About

Script to verify the DNS records for Microsoft 365 services.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published