Which DNS records for Google Workspace do you need?
| Type | Name | Value | Priority |
|---|---|---|---|
| TXT | @ |
google-site-verification=… (from Google) |
— |
| MX | @ |
smtp.google.com |
1 |
| TXT | @ |
v=spf1 include:_spf.google.com ~all |
— |
| TXT | google._domainkey |
v=DKIM1; k=rsa; p=… (from the Admin console) |
— |
| TXT | _dmarc |
v=DMARC1; p=none; rua=mailto:dmarc@example.com |
— |
Accounts created before April 2023 were told to use five MX records: aspmx.l.google.com at priority 1, then alt1 and alt2 at 5, then alt3 and alt4 at 10, all under aspmx.l.google.com. Google says those still work, so there's no need to change a working setup. New sign-ups get the single smtp.google.com record.
Before you start
- Admin access in Google. You need a super admin account to see the verification string and generate DKIM.
- The current zone. Run
dig example.com MX +shortanddig example.com TXT +short. Note any old MX records and any existing SPF policy. - A quiet moment for the MX switch. When the MX changes, new mail starts arriving at Google. Mail already delivered to your old provider stays there, so plan the cutover with whoever manages mailboxes.
Never proxy mail records. In Bridge DNS, the proxy switch belongs to A and AAAA records for websites. Mail hosts, verification strings and DKIM keys stay DNS-only.
Google Workspace DNS setup in Bridge, step by step
- Verify the domain. In the Admin console, copy the
google-site-verificationstring. In Bridge, add a TXT record named@with that value and save. Back in Google, click verify. - Point mail at Google. Delete the MX records of your previous provider. Add an MX record named
@with the valuesmtp.google.comand priority 1. Keep TTL on Auto, which is 120 seconds for MX records in Bridge DNS. - Publish SPF. If the zone already has a
v=spf1record, edit it and addinclude:_spf.google.com. Otherwise create one. Two SPF records on one name break SPF for all mail. Details are in how to add and verify an SPF record. - Generate the DKIM key. In the Admin console, go to Apps › Google Workspace › Gmail › Authenticate email, pick the domain and generate a 2048-bit key. The default selector is
google. - Publish DKIM. Add a TXT record named
google._domainkeyand paste the whole value Google shows. A 2048-bit key is longer than 255 characters, so it has to be stored as several quoted strings. - Start authentication. Wait until the DKIM record resolves, then click "Start authentication" in the Admin console.
- Add DMARC. Create a TXT record named
_dmarcwithp=noneand a report address. Tighten the policy later, as described in adding a DMARC record and choosing a policy.
How to check the Google Workspace DNS settings
Ask a Bridge nameserver directly, so you see the zone itself rather than a cached copy:
dig @ns1.bb-ns.com example.com MX +short
dig @ns1.bb-ns.com example.com TXT +short
dig @ns1.bb-ns.com google._domainkey.example.com TXT +short
dig @ns1.bb-ns.com _dmarc.example.com TXT +short
Expected results:
- one MX line,
1 smtp.google.com.; - one
v=spf1string; - the DKIM key;
- the DMARC policy.
Then send a message from Gmail to an outside mailbox and open the original. The Authentication-Results header should show spf=pass, dkim=pass with d=example.com, and dmarc=pass. Google's Admin Toolbox Check MX is a useful second opinion.
Common problems with Google Workspace DNS records
| Symptom | Likely cause | Fix |
|---|---|---|
| Mail still arrives at the old provider | Old MX records left in place, or resolvers holding the old MX | Delete old MX records. Wait out the old TTL. |
| "Domain already in use" when verifying | The domain is attached to another Google account | A Google-side issue: the previous admin removes it, or you file a domain claim |
| DKIM shows "not authenticating" | Key truncated or split badly, or authentication started too early | Re-paste the full key, check it with dig, then start authentication again |
spf=permerror |
Two SPF records on the domain | Merge them into one v=spf1 record |
| Bounces mention the MX host | Typo in smtp.google.com, or an IP address entered instead of a hostname |
MX must name a host. See the MX record reference. |
Moving from old values or rolling back
If your Google Workspace DNS records still use the five aspmx hosts, you can leave them. If you switch to smtp.google.com, replace all five in one edit, so no stale host lingers at a lower priority. To roll back an MX change, restore the previous MX records: with a 120-second TTL, senders follow within minutes. Keep the DKIM record even if you pause authentication, because removing it while Google still signs mail makes DKIM fail.
Google Workspace DNS questions
What DNS records does Google Workspace need?
Google Workspace DNS records are a verification TXT record, an MX record pointing to smtp.google.com at priority 1, a TXT record with an SPF policy including _spf.google.com, a DKIM TXT record at google._domainkey, and a DMARC TXT record at _dmarc.
Do I need all five Google Workspace MX records?
No. Since April 2023, Google gives new accounts a single MX record, smtp.google.com. The older five-record set still works, so domains that already use it don't need to change anything.
How long until new Google Workspace DNS settings work?
The records are live on Bridge nameservers within seconds. Senders that cached your old MX keep using it until its TTL expires, which depends on your previous provider's setting.
Where do I find my Google Workspace DKIM key?
In the Admin console, under Apps › Google Workspace › Gmail › Authenticate email. Generate a 2048-bit key, publish it as a TXT record, then click "Start authentication".
Can I keep my website on Bridge proxy and mail on Google?
Yes. Proxy the A and AAAA records for the site, and keep MX, SPF, DKIM and DMARC records DNS-only. The two don't interfere.
For how the four mail records fit together, go back to the email DNS overview. Key formatting rules are in adding and verifying a DKIM record and the TXT record reference.