DKIM selector1 record missing at 365

%3CLINGO-SUB%20id%3D%22lingo-sub-1120003%22%20slang%3D%22en-US%22%3EDKIM%20selector1%20record%20missing%20at%20365%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1120003%22%20slang%3D%22en-US%22%3E%3CP%3EAnyone%20else%20seeing%20DNS%20failures%20resolving%20the%20selector1%20TXT%20record%20supplied%20by%20EXO%20for%20each%20domain%3F%26nbsp%3B%20selector2%20is%20fine.%20I'm%20seeing%20that%20across%20my%20fleet%20of%20customer%20tenants.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CPRE%20class%3D%22lia-code-sample%20language-markup%22%3E%3CCODE%3E%40%40PS%20C%3A%5CUsers%5CAlanMcFarlane%5CDocuments%5CTemp%26gt%3B%20Resolve-DnsName%20-Type%20cname%20-Name%20selector1._domainkey.XXundeesen.org%20%7C%20fl%0A%0AName%20%20%20%20%20%3A%20selector1._domainkey.XXundeesen.org%0AType%20%20%20%20%20%3A%20CNAME%0ATTL%20%20%20%20%20%20%3A%2014371%0ASection%20%20%3A%20Answer%0ANameHost%20%3A%20selector1-XXundeesen-org._domainkey.Xsen.onmicrosoft.com%0A%0A%0A%40%40PS%20C%3A%5CUsers%5CAlanMcFarlane%5CDocuments%5CTemp%26gt%3B%20Resolve-DnsName%20-Type%20TXT%20-Name%20selector1-XXundeesen-org._domainkey.Xsen.onmicrosoft.com%0AResolve-DnsName%20%3A%20selector1-XXundeesen-org._domainkey.Xsen.onmicrosoft.com%20%3A%20DNS%20name%20does%20not%20exist%0AAt%20line%3A1%20char%3A1%0A%2B%20Resolve-DnsName%20-Type%20TXT%20-Name%20selector1-XXndeesen-org._domainkey.DS%20...%0A%2B%20~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~%0A%20%20%20%20%2B%20CategoryInfo%20%20%20%20%20%20%20%20%20%20%3A%20ResourceUnavailable%3A%20(selector1-dunde...onmicrosoft.com%3AString)%20%5BResolve-DnsName%5D%2C%20Win32%0A%20%20%20Exception%0A%20%20%20%20%2B%20FullyQualifiedErrorId%20%3A%20DNS_ERROR_RCODE_NAME_ERROR%2CMicrosoft.DnsClient.Commands.ResolveDnsName%0A%0A%0A%40%40PS%20C%3A%5CUsers%5CAlanMcFarlane%5CDocuments%5CTemp%26gt%3B%20Resolve-DnsName%20-Type%20TXT%20-Name%20selector2-XXndeesen-org._domainkey.XSEN.onmicrosoft.com%20%7CFl%0A%0AName%20%20%20%20%3A%20selector2-XXndeesen-org._domainkey.XSEN.onmicrosoft.com%0AType%20%20%20%20%3A%20TXT%0ATTL%20%20%20%20%20%3A%203594%0AStrings%20%3A%20%7Bv%3DDKIM1%3B%20k%3Drsa%3B%20p%3DMIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQDWc7LSbVYlbIU5iacAKqoglZISad9rZBna%2BO8rc9j5iOMyzvgGuoEtFx8MXyuq2nVQXkVWgjPxbOB4Ov3FYaFDPTJtP4Gc9PcAc%2Bncu0UTfGgsVlcAU5ahISHr%2B0xKLJ7EzNtTxvjTeeQV5CtndtAMSfFCMixHzfIn0sRgv1tnlQIDAQAB%3B%7D%3C%2FCODE%3E%3C%2FPRE%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EDomain%20names%20slightly%20modified%20for%20privacy!%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-1120003%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EExchange%20Online%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EOffice%20365%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1120264%22%20slang%3D%22en-US%22%3ERe%3A%20DKIM%20selector1%20record%20missing%20at%20365%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1120264%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F351305%22%20target%3D%22_blank%22%3E%40Alanjmcf%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3Euse%26nbsp%3B%3CSPAN%20style%3D%22display%3A%20inline%20!important%3B%20float%3A%20none%3B%20background-color%3A%20%23fafafa%3B%20color%3A%20%230101fd%3B%20font-family%3A%20SFMono-Regular%2CConsolas%2CLiberation%20Mono%2CMenlo%2CCourier%2Cmonospace%3B%20font-size%3A%2013.93px%3B%20font-style%3A%20normal%3B%20font-variant%3A%20normal%3B%20font-weight%3A%20400%3B%20letter-spacing%3A%20normal%3B%20orphans%3A%202%3B%20text-align%3A%20left%3B%20text-decoration%3A%20none%3B%20text-indent%3A%200px%3B%20text-transform%3A%20none%3B%20-webkit-text-stroke-width%3A%200px%3B%20white-space%3A%20pre-wrap%3B%20word-spacing%3A%200px%3B%22%3ESet-DkimSigningConfig%3C%2FSPAN%3E%20with%20-%3CSPAN%20style%3D%22display%3A%20inline%20!important%3B%20float%3A%20none%3B%20background-color%3A%20%23fafafa%3B%20color%3A%20%23171717%3B%20direction%3A%20ltr%3B%20font-family%3A%20SFMono-Regular%2CConsolas%2CLiberation%20Mono%2CMenlo%2CCourier%2Cmonospace%3B%20font-size%3A%201em%3B%20font-style%3A%20normal%3B%20font-variant%3A%20normal%3B%20font-weight%3A%20400%3B%20letter-spacing%3A%20normal%3B%20line-height%3A%2019px%3B%20orphans%3A%202%3B%20text-align%3A%20left%3B%20text-decoration%3A%20none%3B%20text-indent%3A%200px%3B%20text-transform%3A%20none%3B%20-webkit-text-stroke-width%3A%200px%3B%20white-space%3A%20pre-wrap%3B%20word-spacing%3A%200px%3B%22%3EPublishTxtRecords%3C%2FSPAN%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1120284%22%20slang%3D%22en-US%22%3ERe%3A%20DKIM%20selector1%20record%20missing%20at%20365%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1120284%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F527081%22%20target%3D%22_blank%22%3E%40Pierfish%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20didn't%20mention%20that%20I've%20changed%20nothing%20and%20this%20has%20suddenly%20affected%20twenty%20tenants%20in%20the%20last%20week%20(or%20thereabouts).%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThat%20seems%20set%20already%20as%20I'd%20expect.%20(Doesn't%20appear%20in%20Get-'s%20output.)%3C%2FP%3E%3CPRE%20class%3D%22lia-code-sample%20language-markup%22%3E%3CCODE%3E%40%40PS%20C%3A%5CUsers%5CAlanMcFarlane%5CDocuments%5CTemp%26gt%3B%20set-DkimSigningConfig%20-Identity%20XXndeesen.org%20-PublishTxtRecords%0AWARNING%3A%20The%20command%20completed%20successfully%20but%20no%20settings%20of%20'XXndeesen.org'%20have%20been%20modified.%3C%2FCODE%3E%3C%2FPRE%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1120575%22%20slang%3D%22en-US%22%3ERe%3A%20DKIM%20selector1%20record%20missing%20at%20365%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1120575%22%20slang%3D%22en-US%22%3E%3CP%3EI'm%20seeing%20the%20same%20behavior%2C%20and%20yeah%20haven't%20changed%20a%20thing%20here%20either.%20Best%20open%20a%20support%20case%2C%20I%20will%20ping%20few%20folks%20just%20as%20well.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EFor%20the%20record%2C%20I%20fixed%20it%20by%20running%3A%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CFONT%20style%3D%22background-color%3A%20%23ffffff%3B%22%3ERotate-DkimSigningConfig%20-Identity%20domain.com%3C%2FFONT%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1120609%22%20slang%3D%22en-US%22%3ERe%3A%20DKIM%20selector1%20record%20missing%20at%20365%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1120609%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F58%22%20target%3D%22_blank%22%3E%40Vasil%20Michev%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3Ebut%20you%20have%20changed%20the%20certificate%20with%20this.%20that's%20why%20you%20have%20a%20new%20record%20published.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1121337%22%20slang%3D%22en-US%22%3ERe%3A%20DKIM%20selector1%20record%20missing%20at%20365%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1121337%22%20slang%3D%22en-US%22%3EFrom%20a%20quick%20check%20(from%20my%20iPhone)%20looks%20like%20the%20records%20are%20back%20%E2%80%94%20well%20for%20that%20one%20domain%20at%20least.%3CBR%20%2F%3E%3CBR%20%2F%3EJust%20a%20wee%20blip%20I%20guess.%20But%20I%20also%20wonder%20why%20key%20rotation%20apparently%20happened%20for%20all%20domains%20at%20the%20same%20time.%20Maybe%20to%20do%20with%20%3CA%20href%3D%22https%3A%2F%2Fwww.microsoft.com%2Fen-us%2Fmicrosoft-365%2Froadmap%3Ffeatureid%3D56752%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fwww.microsoft.com%2Fen-us%2Fmicrosoft-365%2Froadmap%3Ffeatureid%3D56752%3C%2FA%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1120649%22%20slang%3D%22en-US%22%3ERe%3A%20DKIM%20selector1%20record%20missing%20at%20365%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1120649%22%20slang%3D%22en-US%22%3EI%E2%80%99ve%20sent%20a%20grand%20total%20of%20two%20emails%20from%20two%20tenants%20and%20both%20were%20sent%20with%20selector2.%20So%20after%20that%20huge%20test%E2%80%A6hopefully%20the%20lack%20of%20selector1%20isn%E2%80%99t%20breaking%20email%20delivery.%3CBR%20%2F%3E%3CBR%20%2F%3EMaybe%20all%20tenants%20did%20a%20key%20rotation%20to%20selector2%20and%20something%20stopped%20them%20creating%20selector1.%3CBR%20%2F%3E%3CBR%20%2F%3EMy%20experiences%20with%20support%20recently%20have%20been%20somewhat%20lacking%20(they%20don%E2%80%99t%20escalate%20clear%20issues%20etc)%20so%20reporting%20it%20here%20was%20my%20alternative.%20%3A-%2C)%3C%2FLINGO-BODY%3E
Highlighted
Occasional Contributor

Anyone else seeing DNS failures resolving the selector1 TXT record supplied by EXO for each domain?  selector2 is fine. I'm seeing that across my fleet of customer tenants.

 

 

 

@@PS C:\Users\AlanMcFarlane\Documents\Temp> Resolve-DnsName -Type cname -Name selector1._domainkey.XXundeesen.org | fl

Name     : selector1._domainkey.XXundeesen.org
Type     : CNAME
TTL      : 14371
Section  : Answer
NameHost : selector1-XXundeesen-org._domainkey.Xsen.onmicrosoft.com


@@PS C:\Users\AlanMcFarlane\Documents\Temp> Resolve-DnsName -Type TXT -Name selector1-XXundeesen-org._domainkey.Xsen.onmicrosoft.com
Resolve-DnsName : selector1-XXundeesen-org._domainkey.Xsen.onmicrosoft.com : DNS name does not exist
At line:1 char:1
+ Resolve-DnsName -Type TXT -Name selector1-XXndeesen-org._domainkey.DS ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : ResourceUnavailable: (selector1-dunde...onmicrosoft.com:String) [Resolve-DnsName], Win32
   Exception
    + FullyQualifiedErrorId : DNS_ERROR_RCODE_NAME_ERROR,Microsoft.DnsClient.Commands.ResolveDnsName


@@PS C:\Users\AlanMcFarlane\Documents\Temp> Resolve-DnsName -Type TXT -Name selector2-XXndeesen-org._domainkey.XSEN.onmicrosoft.com |Fl

Name    : selector2-XXndeesen-org._domainkey.XSEN.onmicrosoft.com
Type    : TXT
TTL     : 3594
Strings : {v=DKIM1; k=rsa; p=MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQDWc7LSbVYlbIU5iacAKqoglZISad9rZBna+O8rc9j5iOMyzvgGuoEtFx8MXyuq2nVQXkVWgjPxbOB4Ov3FYaFDPTJtP4Gc9PcAc+ncu0UTfGgsVlcAU5ahISHr+0xKLJ7EzNtTxvjTeeQV5CtndtAMSfFCMixHzfIn0sRgv1tnlQIDAQAB;}

 

 

 

Domain names slightly modified for privacy!

20 Replies
Highlighted

@Alanjmcf 

 

use Set-DkimSigningConfig with -PublishTxtRecords

Highlighted

@Pierfish 

I didn't mention that I've changed nothing and this has suddenly affected twenty tenants in the last week (or thereabouts).

 

That seems set already as I'd expect. (Doesn't appear in Get-'s output.)

@@PS C:\Users\AlanMcFarlane\Documents\Temp> set-DkimSigningConfig -Identity XXndeesen.org -PublishTxtRecords
WARNING: The command completed successfully but no settings of 'XXndeesen.org' have been modified.

 

Highlighted

I'm seeing the same behavior, and yeah haven't changed a thing here either. Best open a support case, I will ping few folks just as well.

 

For the record, I fixed it by running:

 

Rotate-DkimSigningConfig -Identity domain.com

Highlighted

@Vasil Michev 

 

but you have changed the certificate with this. that's why you have a new record published.

Highlighted
I’ve sent a grand total of two emails from two tenants and both were sent with selector2. So after that huge test…hopefully the lack of selector1 isn’t breaking email delivery.

Maybe all tenants did a key rotation to selector2 and something stopped them creating selector1.

My experiences with support recently have been somewhat lacking (they don’t escalate clear issues etc) so reporting it here was my alternative. :-,)
Highlighted
From a quick check (from my iPhone) looks like the records are back — well for that one domain at least.

Just a wee blip I guess. But I also wonder why key rotation apparently happened for all domains at the same time. Maybe to do with https://www.microsoft.com/en-us/microsoft-365/roadmap?featureid=56752
Highlighted
I checked an hour or three ago and it is NOT fixed. The selector1 record is still missing except for those domains where I did the PowerShell command suggested by @Pierfish That brings the record back to life — even though that option is already set to true.
Highlighted

@Alanjmcf 

Exact same issue here. Microsoft hosed my selector1 but selector2 was fine. I was also able to fix it with Set-DkimSingingConfig -Identity <mydomain.com> -PublishTxtRecords

 

I then ran the Dmarcian DKIm inspector on selector1 and it's working again. I was getting a "missing data" error before I fixed it.

 

Thanks to this thread!

Highlighted

Looks as if both records are back for all my tenants.

Highlighted
Same problem, selector1 is no more existing at the DNS of onmicrosoft.com.
So I've made a switch over. I think something has gone wrong on the DNS of onmicrosoft.com
I hope that DMARC shows now aligned DKIM
Highlighted
I've created also a support case
Highlighted

From O365 support I got the following reaction:

As discussed over the call, only 1 selector will be visible globally since one selector works at a time to digitally sign the email. It is the new update from Microsoft that the selector which is active to encrypt the header of the email will be visible globally as public key of that selector only will be available globally on DNS.

But the rotation was not ready after 12 hours, so DKIM was not ok.
So I had followed the option to reinsert the TXT key's with
 
Set-DkimSigningConfig -PublishTxtRecords -Identity %domainname%
 
And both the selector key's are in the DNS.
Highlighted

Additional to work is that you do a rotate. 
I've seen that making first a rotate, the key's where faster available than without a rotate

Rotate-DkimSigningConfig -Identity %domainname%

Highlighted

I’m guessing this is normal intentional behaviour now ie: after a key rotation (and after sufficient time for emails using the old key to be delivered), they remove the old key, and don’t bring a new key back to that selector until the next key rotation.

 

I can’t see any issues that creates for email delivery — a bit annoying for diagnostics tools though!

Highlighted

@Alanjmcf The strange is that from halve the domains the seclector1 was not available in de DNS from Microsoft office 365. But there was no switchover for this domains inplace.
Only when you make a switch over and reinserting the DKIM key's into de DNS from Microsoft Office 365 it works again, and DMARC gives a valid DKIM signature when sending e-mail.
More domains, not only the one of us, has this problem I think there has been an incident.
When dkimconfig of office 365 says, use Selector1 and the key is not available, then I think there was an issue on microsoft side.
But our dkim issue has been solved after switching command and reinserting the key's into the Office 365 DNS.
I don't know that for every one is this the solution.

To know in the future that the dkim records are away, I have scheduled a powershell script that check every day the presents off this records. Because no good working dkim can impact the delivery of mails

 

Highlighted

@Pascal Wenders 

Could you please share the PowerShell scripts to check every day the presents off this records. I am having same issue.

Highlighted

@Vasil Michev have noticed the same thing with our tenant.  Lots of our domains Selector1 stopped resovling, but selector2 works.  Seems to be a big problem on the Microsoft side.  I have a support case, and if I can get past Tier 2 and talk to somebody who actually understands the problem, hopefully Microsoft will fix it because I don't want to script having to do this for the high number of domains I have.

Highlighted

Any updates on this issue?  I've had this same issue for several months now.  I haven't tried rotating yet.

Highlighted

@Omayaki  It is straight true, for us it works.

$mailfrom = "#####@####.###"
$mailto = "#####@####.###"
$subject = "DKIM text record check for domain "
$body = "Selector"
$body2 = "is empty"
$domain = ""
$extdomain = ""
$microsoft365 = ""
$space = " "
$dot = "."


$domain = "<domainname without extension, example microsoft"
$extdomain = "com"
$microsoft365 = "<domainname>.onmicrosoft.com"

 

$selector_nr = 1
$nslookup = nslookup -type=txt selector$selector_nr-$domain-$extdomain._domainkey.$microsoft365
$subjectmail = "$subject $domain.$extdomain"
$bodymail = "$body$selector_nr $body2
Please perform the procedure to correctly set the selector records for this domain"
If ($nslookup.count -lt 4) { Send-MailMessage -From $mailfrom -to $mailto -SmtpServer <mailserver> -Body $bodymail -Subject $subjectmail }

 

$selector_nr = 2
$nslookup = nslookup -type=txt selector$selector_nr-$domain-$extdomain._domainkey.$microsoft365
$subjectmail = "$subject $domain.$extdomain"
$bodymail = "$body$selector_nr $body2
Please perform the procedure to correctly set the selector records for this domain"
If ($nslookup.count -lt 4) { Send-MailMessage -From $mailfrom -to $mailto -SmtpServer <mailserver> -Body $bodymail -Subject $subjectmail }