-
-
Notifications
You must be signed in to change notification settings - Fork 1
Open
Labels
enhancementNew feature or requestNew feature or request
Description
I'm not going to submit a PR for this one, as you may have other ideas on how to handle it.
The issue I'm having is that Microsoft (as one example) will issue a CNAME record for you to point your domain to your 365 tenant sub-domain (eg: example.onmicrosoft.com).
Once you create the CNAME record, they give you a nice green checkmark in the M365 admin center portal even when your DKIM is disabled in Microsoft Defender resulting in an empty TXT record.
Sample code:
+ If ($DnsLookup.PSObject.Properties.Name -Contains 'Answer' -and $DnsLookup.Status -eq 3)
+ {
+ Write-BadNews "DKIM selector${Name}: CNAME record exists, but resultant TXT record is empty."
+ Return
+ }
If ($DnsLookup.PSObject.Properties.Name -NotContains 'Answer' -or $DnsLookup.Status -eq 3)
{
Write-BadNews "DKIM selector${Name}: This selector was not found."
Return
}
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request
