Black Friday New domains at 5% below our own cost first year · until December 6 · up to 10 domains per account See prices

Set up Google Workspace email on your domain: MX, SPF, DKIM and DMARC

The DNS records Google Workspace email needs (verification TXT, MX, SPF, DKIM, DMARC) per Google's docs, how to add them in our DNS editor, and timing.

Updated By GetNameDot team 6 min read

On this page
  1. The records at a glance
  2. Step 1: Verify the domain
  3. Step 2: Add MX and SPF with the preset
  4. Other services that send mail for you
  5. Step 3: Turn on DKIM
  6. Step 4: Add DMARC
  7. Why it matters for deliverability
  8. Step 5: Check everything
  9. Timing and propagation
  10. Common problems
  11. Using Microsoft 365 instead?
  12. Related setups

Short answer: Google Workspace email needs five DNS records on your domain: a TXT record to verify that you own the domain, an MX record (smtp.google.com, priority 1) to receive mail, an SPF TXT record (v=spf1 include:_spf.google.com ~all), a DKIM TXT record at google._domainkey that you generate in the Admin console, and a DMARC TXT record at _dmarc, starting with p=none. In GetNameDot's DNS editor, the Google Workspace preset adds the MX and SPF records in one click. You add verification, DKIM and DMARC by hand.

The values below come from Google Workspace Help, checked on 29 October 2026: Set up MX records, Set up SPF, Set up DKIM, Set up DMARC and Verify your domain with a TXT record.

The records at a glance

PurposeName (host)TypeValueWhere the value comes from
Domain verification@TXTgoogle-site-verification=…Admin console, unique to you
Receive mail@MX, priority 1smtp.google.comFixed (Google Help)
SPF@TXTv=spf1 include:_spf.google.com ~allFixed, if Google is your only sender
DKIMgoogle._domainkeyTXTv=DKIM1; k=rsa; p=…Admin console, unique to you
DMARC_dmarcTXTv=DMARC1; p=none; rua=mailto:…You choose the policy and report address

Before you start, open the domain in GetNameDot: My domains → your domain → Manage DNS records. The editor works when the domain uses our nameservers ("Our DNS"), the default for domains registered here. If you use custom nameservers, add the same records at that DNS provider.

Step 1: Verify the domain

When you sign up for Google Workspace or add a domain, Google gives you a unique TXT value starting with google-site-verification=. In Google's Admin console it's under Account → Domains → Manage domains, using the verify option for the domain.

In our editor:

  1. Click + Add record.
  2. Name @, type TXT, and paste the full value, including google-site-verification=.
  3. Click Save DNS records, then go back to Google and start the check.

Google's guidance is to leave the record in place until Google confirms verification. Removing it early makes verification fail.

Step 2: Add MX and SPF with the preset

Click "Preset: Google Workspace mail". It adds two rows:

NameTypePriorityValue
@MX1smtp.google.com
@TXT—v=spf1 include:_spf.google.com ~all

These match Google's current instructions for MX and SPF. Before you save:

  • Delete any other MX records. Google says to "Remove any other MX records", because old or incorrect records can stop mail from arriving.
  • Keep only one SPF record. If the domain already has a TXT record starting with v=spf1, merge the two instead of keeping both. A domain must not have multiple SPF records (RFC 7208 §3.2).

Then click Save DNS records.

Other services that send mail for you

If a newsletter tool, help desk or invoicing service also sends mail as your domain, add its include: to the same SPF record. Google's example for Google Workspace plus Microsoft 365 is:

v=spf1 include:_spf.google.com include:spf.protection.outlook.com ~all

Keep the total small. SPF stops evaluating after 10 DNS lookups (RFC 7208 §4.6.4), and every include: counts.

Already have older Google MX records? Accounts set up before 2023 may have records that start with aspmx. Google says they're still supported, so if mail works, you don't need to change them.

Step 3: Turn on DKIM

DKIM signs your outgoing mail so receivers can confirm it really came from your domain.

In the Google Admin console:

  1. Go to Apps → Google Workspace → Gmail and click Authenticate email. You need super-admin rights or the Gmail Settings privilege.
  2. Select your domain and click Generate New Record.
  3. Choose the key length. Google recommends 2048 if your DNS host supports it and 1024 otherwise. Keep the default prefix selector google.
  4. Copy the TXT record name and value.

In our editor:

  1. Click + Add record. Name google._domainkey, type TXT, and paste the whole value (it starts with v=DKIM1;).
  2. Click Save DNS records.

Our editor accepts TXT values up to 4,096 characters, so you can paste a 2048-bit key as a single value. Paste it exactly as Google shows it, without extra spaces or line breaks, and afterwards check with a DNS lookup (step 5) that the full key is published.

Then go back to the Admin console and click Start authentication. Don't click it before the record is in DNS. Google's timing notes:

  • After you turn on Gmail for a new account, it can take 24–72 hours before you can generate a DKIM key.
  • After you add the key, DKIM can take up to 48 hours to start working.
  • When it works, the status changes to "Authenticating email with DKIM".

Step 4: Add DMARC

DMARC tells receiving servers what to do with mail that fails SPF and DKIM checks, and where to send reports. Google's guidance is to set up SPF and/or DKIM first and allow 48 hours before adding DMARC, and to start with the policy set to none.

In our editor, add a TXT record:

NameTypeValue
_dmarcTXTv=DMARC1; p=none; rua=mailto:<your reporting address>

For the reporting address, use a mailbox you actually read. Google's own example also adds pct=100; adkim=s; aspf=s, which makes the alignment checks strict.

Once the reports show that all your legitimate mail passes, tighten the policy step by step: p=quarantine, then p=reject. Google suggests a gradual rollout, optionally using pct= to apply the policy to a share of messages first.

Why it matters for deliverability

Gmail's sender guidelines (Google Workspace Help, checked 29 Oct 2026) require every sender to "Set up SPF or DKIM". Senders of more than 5,000 messages a day to Gmail must have SPF, DKIM and DMARC, where the DMARC policy "can be set to none". Setting up all three from day one means you never have to retrofit them.

Step 5: Check everything

CheckHow
Domain verifiedAdmin console shows the domain as verified
MXdig example.com MX shows 1 smtp.google.com only
SPFdig example.com TXT shows exactly one v=spf1 record
DKIMAdmin console says "Authenticating email with DKIM"; dig google._domainkey.example.com TXT returns your key
DMARCdig _dmarc.example.com TXT returns your record
End-to-endSend a message to a Gmail address, open it, choose "Show original", and look for SPF, DKIM and DMARC "PASS"

Timing and propagation

ChangeGoogle's stated time
New MX records recognisedUp to 72 hours
DKIM working after adding the keyUp to 48 hours
Before adding DMARCWait 48 hours after SPF/DKIM

In GetNameDot, saved records are usually live within minutes. Resolvers that cached the old records keep them until their TTL runs out, which is why switching email providers can look "half done" for a while. Lowering the TTL of the old MX record to 5 minutes a day before the switch shortens that window. Our help article on DNS propagation explains why.

Common problems

ProblemLikely causeFix
Mail still goes to the old providerOld MX records still present, or cachedDelete every MX except smtp.google.com; wait for the old TTL
SPF "permerror"Two SPF records, or more than 10 lookupsMerge into one record; remove includes you no longer use
DKIM never startsRecord added under the wrong name, or the key got broken when pastedThe name must be google._domainkey; paste the value again in one piece
Verification failsValue pasted without google-site-verification=, or the record was removed too soonPaste the full value and keep it until Google confirms
Editor shows "uses custom nameservers"DNS is hosted elsewhereAdd the records at that provider, or choose "Restore our DNS" on the domain page

Using Microsoft 365 instead?

Our editor also has a "Preset: Microsoft 365 mail" button. It adds the MX record (your domain with dots replaced by dashes, followed by .mail.protection.outlook.com), the SPF record v=spf1 include:spf.protection.outlook.com -all and the autodiscover CNAME. Check them against the values in your Microsoft 365 admin center before saving.

Frequently asked questions

What is the MX record for Google Workspace?

Google's current instructions are a single MX record with priority 1 and the value smtp.google.com, on the root of the domain (@). Google says to remove any other MX records. Accounts set up before 2023 may use older values that start with aspmx, which Google still supports.

What SPF record does Google Workspace use?

If you send mail only through Google Workspace, Google's record is v=spf1 include:_spf.google.com ~all. If other services also send mail for your domain, add an include: for each of them to the same record. A domain must have only one SPF record.

Where do I get the DKIM key for Google Workspace?

In the Google Admin console under Apps > Google Workspace > Gmail > Authenticate email. Generate the record (2048-bit if your DNS host supports it), add it as a TXT record at google._domainkey, then click Start authentication.

What DMARC policy should I start with?

Google recommends starting with p=none and a reporting address, then moving to quarantine or reject gradually once you have checked the reports. Set up SPF and DKIM first and allow 48 hours before adding DMARC.

How long do Google Workspace DNS changes take?

Google says new MX records can take up to 72 hours to be recognised, and DKIM up to 48 hours to start working after you add the key. In GetNameDot's DNS editor, saved records usually propagate within minutes, up to the TTL of the previous records.