The DNS records
Copy the value from the Admin console; the key below is shortened. Each domain in your account gets its own key.
Google Workspace DKIM key
Type: TXT · Host: google._domainkey
v=DKIM1; k=rsa; p=MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEA…IDAQAB
Paste the whole value the Admin console shows, starting at v=DKIM1.
The same key split for a DNS host with a 255-character limit
Type: TXT · Host: google._domainkey
"v=DKIM1; k=rsa; p=MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEA…" "…IDAQAB"
Google says a 2048-bit key can't be entered as one text string at a host with a 255-character limit: split it into several strings, each in quotes. Receivers join the strings back together.
Set it up and turn on signing
- Sign in to the Google Admin console as a super administrator and go to Menu > Apps > Google Workspace > Gmail > Authenticate email. If you turned on Gmail recently, Google says to wait 24 to 72 hours before a key can be generated.
- Choose the domain under Selected domain and click Generate New Record. Pick the key length, keep the prefix selector
googleunless that name is already used at this domain, and click Generate. - Copy the DNS Host name (TXT record name) and the TXT record value. Don't click Start authentication yet.
- At your DNS host, add a TXT record with that name and value. If Squarespace hosts your domain's DNS, Google says the record is added for you.
- Back in the Admin console, click Start authentication. The status changes to "Authenticating email with DKIM". For up to 48 hours the console may still say you must update the DNS records while DNS catches up.
DMARC alignment
Mail is signed with d= your own domain only after the TXT record is live and authentication is started for that domain. Google asks for a separate key for every domain in the account, so a secondary domain isn't covered by the primary domain's record. The signature is added as Gmail sends, so an outbound gateway or relay that later adds a footer or rewrites the message breaks it, and DMARC then depends on SPF alone.
Key length and rotation
Google offers 2048-bit keys, recommended whenever your DNS host accepts them, and 1024-bit keys for hosts that don't. The key lives in your zone as a TXT record, so a new key means a new record. Generating it under a different prefix selector lets the old and new keys stay published side by side while you switch, which is what selectors are for (RFC 6376 section 3.1). Our DKIM key rotation guide covers the timing.
Common mistakes
- A 2048-bit key pasted as one string. Hosts that cap a TXT string at 255 characters save it cut short or refuse it. Split it into quoted strings, or use a 1024-bit key if the host can't.
- Clicking Start authentication too early. Publish the TXT record first; Google checks it when you click.
- A key for the primary domain only. Each domain you send from needs its own record from the Admin console.
- A record name that doesn't match the selector. If you changed the prefix from
google, the host must be<prefix>._domainkey.
Check your Google Workspace DKIM key
The selector is filled in for you; add your domain. Free, reads public DNS only.
Frequently asked questions
Why won't my DNS host accept the Google Workspace DKIM key?
A 2048-bit key is longer than the 255 characters most hosts allow in one TXT string. Split the value into several quoted strings in the same record, or generate a 1024-bit key if your host can't store split strings.
Why can't I generate a DKIM key in Google Workspace yet?
Google says to wait 24 to 72 hours after turning on Gmail before generating a key. You also need super administrator rights, or the Gmail settings privilege, to open the Authenticate email page.
Do secondary domains in Google Workspace need their own DKIM key?
Yes. Google asks for a unique key from the Admin console for each domain. Choose the domain under Selected domain, generate its record, publish it at that domain's DNS host and start authentication for it separately.
Sources
- Google Workspace Admin Help: Set up DKIM
- Google Workspace Admin Help: Troubleshoot DKIM issues
- RFC 6376: DomainKeys Identified Mail (DKIM) Signatures
- RFC 8301: Cryptographic Algorithm and Key Usage Update to DKIM
Checked against Google Workspace's documentation on October 9, 2026. Providers change their setup screens; if yours differs, follow the values your admin console shows.
DKIM records for other providers
- Microsoft 365CNAME: selector1, selector2
- Zoho MailTXT: you choose (e.g. zoho)
- GoDaddyCNAME: secureserver1, secureserver2
- FastmailCNAME: fm1, fm2, fm3
- Proton MailCNAME: protonmail, protonmail2, protonmail3
- Amazon SESCNAME or TXT: <token1>, <token2>, <token3> (Easy DKIM), your own (BYODKIM)
- SendGridCNAME or TXT: s1, s2
- MailgunTXT or CNAME: assigned by Mailgun (e.g. pic, krs, smtp), pdk1, pdk2 (Automatic Sender Security)
- PostmarkTXT: <timestamp>pm (e.g. 20131031155228pm)
- MailchimpCNAME: k2 and a second CNAME (Marketing), mte1, mte2 (Transactional)
- BrevoTXT or CNAME: mail (TXT), 2 CNAMEs from your account
- HubSpotCNAME: hs1-<number>, hs2-<number>
- KlaviyoCNAME: km1, km2 (marketing), kt1, kt2 (transactional), ks1, ks2 (service)
- SalesforceCNAME: you choose two (e.g. example-sf-a, example-sf-b)
- ZendeskCNAME: zendesk1, zendesk2
Compare every provider's selectors in one table · SPF record for Google Workspace
Related guides
How to find a domain's DKIM selector, and check its key
Find a DKIM selector from the s= tag in an email header, see the selectors Microsoft 365, Google Workspace and common senders use, then check the key.
8 min read SPF, DKIM & DMARCHow to rotate DKIM keys without breaking email
How often to rotate DKIM keys, which key length to use, how to name selectors, and how to rotate in Microsoft 365, Google Workspace and on your own server.
9 min read SPF, DKIM & DMARCDKIM "body hash did not verify" and other DKIM failures: causes and fixes
Fix DKIM failures: body hash did not verify, signature did not verify, no key for signature and short keys. Causes from mailing lists to broken TXT records.
9 min readLast updated