Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Unable to setup DKIM TXT-Value as DNS-Record

Tags:

I have a domain name which DNS is edited via Google Cloud DNS. And I have a Google Apps for Work Account with that domain name.

I wanted to set up DKIM-authentication but when I try to save the corresponding TXT-Record I get the error that the Tag is invalid.

I did the same before and it worked perfectly. I checked the old setup and I saw that the old DKIM-record was about half the length. The new one seems to be too long for a TXT-record in the Google Cloud Platform.

Does anyone have a solution?

like image 752
tnr23 Avatar asked Apr 18 '16 07:04

tnr23


People also ask

Can we enable DKIM using TXT records on DNS?

Copy the SPF and DKIM TXT records from your Zoho Campaigns account. Add the SPF and DKIM TXT records to the DNS server. Verify your domain in your Zoho Campaigns account after adding the SPF and DKIM TXT records to the DNS server.

Why is my DKIM not working?

Common DKIM Record Problems If you have added your DKIM record, waited 48 hours, and you still aren't seeing that DKIM is verified, check to make sure you can see the record in your DNS using the dig command. The dig command will return the DKIM record value seen in the authentication page.

Is a DKIM record a TXT record?

A DKIM record is a specialized DNS TXT record that stores the public key used to verify an email's authenticity.


1 Answers

yeah, you have to split the record as described in this article:

https://support.google.com/a/answer/173535

If your domain provider limits the size of the TXT record value to 255 characters, you can't enter the DKIM key as a single entry in the DNS records. In this case, split the key into multiple quoted text strings and enter them together in the TXT record value field. For example, split the DKIM key into two parts as follows:

"v=DKIM1; k=rsa; p=MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAraC3pqvqTkAfXhUn7Kn3JUNMwDkZ65ftwXH58anno/bElnTDAd/idk8kWpslrQIMsvVKAe+mvmBEnpXzJL+0LgTNVTQctUujyilWvcONRd/z37I34y6WUIbFn4ytkzkdoVmeTt32f5LxegfYP4P/w7QGN1mOcnE2Qd5SKIZv3Ia1p9d6uCaVGI8brE/7zM5c/" "zMthVPE2WZKA28+QomQDH7ludLGhXGxpc7kZZCoB5lQiP0o07Ful33fcED73BS9Bt1SNhnrs5v7oq1pIab0LEtHsFHAZmGJDjybPA7OWWaV3L814r/JfU2NK1eNu9xYJwA8YW7WosL45CSkyp4QeQIDAQAB"

The two quoted strings have to stay on the same line - in the same box in the Cloud DNS interface rather than in two separate boxes.

like image 97
tnr23 Avatar answered Oct 04 '22 04:10

tnr23