Applies to: Google Workspace (Business Starter, Standard and Plus) with a domain at any registrar or DNS host
To use your own domain with Google Workspace, you sign up with the domain, prove you own it by adding a TXT record that Google gives you, create your users, and then point the domain's MX record to Google (smtp.google.com). Add SPF, DKIM and DMARC records afterwards so your mail is trusted. Your website is not affected: only DNS records for verification and email change.
All records are added at your domain's DNS host, which is the service your nameservers point to. That is not always the company where you bought the domain.
Before you start
- A login for the place where your domain's DNS is managed (registrar, web hosting control panel or DNS service).
- Find that place by looking up the nameservers, for example
dig +short NS example.comon Linux or macOS, ornslookup -type=NS example.comon Windows. If they belong to your web hosting, edit the records in its control panel. On cPanel hosting that is the Zone Editor: add Google Workspace DNS records in cPanel. - If the domain already receives email elsewhere, plan the switch: once the MX record changes, new mail arrives in Gmail.
Step 1: Sign up with your existing domain
When the Google Workspace sign-up asks about a domain, choose the option to use a domain you already own and enter it without www (for example example.com). This becomes the primary domain, and the account you create during sign-up is your administrator account for the Admin console. You can buy Google Workspace directly from Google or from a reseller; the domain steps below are the same.
No domain yet? You can register one anywhere and continue with step 2, or buy one during the Workspace sign-up. According to Google, a domain bought during sign-up is registered through its partner Squarespace, Google sets up the DNS records for email automatically, the first registration is for one year and renewals are billed by Squarespace. Google also says you must confirm the registrant email address within 15 days, or the domain is not registered.
Step 2: Verify your domain with a TXT record
- Sign in to the Google Admin console with the administrator account and go to Menu > Account > Domains > Manage domains.
- Click Verify domain next to your domain. In the TXT record section, copy the whole value, including
google-site-verification=. - At your DNS host, add a new record:
- Type: TXT
- Name / Host: leave it blank or enter
@(the domain itself). Some panels, such as cPanel's Zone Editor, show the full name instead (example.com.). - Value: the text you copied, for example
google-site-verification=abcdef123_456wx789yz(Google's sample value).
- Save the record, go back to the Admin console and confirm. Google then looks up the record.
A TXT record for verification does not replace your SPF record or any other TXT record: a domain can have many. Lab example (Debian 13, dig 9.20.29), Google's own domain looked up through Google Public DNS:
$ dig @8.8.8.8 +short TXT google.com | grep google-site "google-site-verification=TV9-DBe4R80X4v0M4U_bd_J9cpOJM0nikft0jAgjmsQ" "google-site-verification=4ibFUgB-wXLQ_S7vsXVomSTVamuOXBiVAzpR5IZ87D0" "google-site-verification=wD8N7i1JTNTkezJ49swvWW48f8_9xveREV4oB-0Hf5o"
Check your own domain the same way: dig +short TXT example.com, or on Windows nslookup -type=TXT example.com 8.8.8.8. When your google-site-verification= line appears, Google can see it too.
Google says it can take up to 72 hours for a new TXT record to be recognised; it is usually much quicker. Do not remove the record before the domain shows as verified, or verification fails. According to Google, it can be removed after that.
Step 3: Create users before you move email
Each person who needs a mailbox needs a Google Workspace user account (Admin console: Menu > Directory > Users > Add new user). Google asks you to change the MX record only after creating the accounts, so mail to those addresses has somewhere to go. For shared addresses such as info@ or sales@, you can add up to 30 email aliases per user at no extra cost instead of buying more licences. If you want your old mail in Gmail, import it before the switch; Google Workspace vs cPanel email hosting explains Google's data import tool.
Step 4: Point the MX record to Google
- At your DNS host, delete the existing MX records. Google warns that email might not work correctly if old or incorrect MX records stay.
- Add one MX record: Name
@(or blank), Priority1, Valuesmtp.google.com. - In the Admin console, go to Menu > Account > Domains > Manage domains and click Activate Gmail for the domain if it is not active yet.
- Check the result with
dig +short MX example.com. It should show only Google. Lab lookup of google.com:10 smtp.google.com.(Google's own domain uses priority 10; yours shows the1you entered).
Google allows up to 72 hours for the new MX record to be recognised. Older Workspace accounts may still use the five aspmx records; Google says they are still supported. Full details: set up Google Workspace MX records.
Website on cPanel hosting? Also set Email > Email Routing to Remote Mail Exchanger for the domain. Otherwise mail that your own website sends to your addresses is delivered to the old mailboxes on the hosting server and never reaches Gmail.
Step 5: Add SPF, DKIM and DMARC
- SPF (TXT on the domain):
v=spf1 include:_spf.google.com ~all. Edit an existingv=spf1record instead of adding a second one: SPF for Google Workspace. - DKIM: generate the key in the Admin console, publish it as a TXT record at
google._domainkey, then start authentication: DKIM for Google Workspace. - DMARC (TXT at
_dmarc): start withp=noneand a report address: DMARC for Google Workspace.
Then send a test message from an outside address to a new mailbox, and one back.
Verification does not work
- The record is at the wrong DNS host. If you added it at your registrar but the nameservers point to your hosting or another DNS service, nobody sees it. Compare
dig +short NS example.comwith the place you edited. - The name was doubled. Many panels add the domain to whatever you type, so
example.comin the Name field can becomeexample.com.example.com. Use@or leave it blank, then check the saved record. - Part of the value is missing. Copy the full value including
google-site-verification=, without extra spaces. - Not enough time. If
digshows the record but Google does not, wait. Google's troubleshooting page suggests contacting Google Workspace support if the record is in place and the domain is still not verified after 48 hours.
Adding more domains later
In Manage domains you can add a second domain in two ways, according to Google:
- User alias domain: every user also gets an address at the second domain, with no extra cost per user (up to 20 alias domains).
- Secondary domain: separate users with their own mailboxes on that domain, each paid as a user account.
Each added domain is verified and gets MX records in the same way as above.
Ucartz sells Google Workspace (Business Starter, Standard and Plus) and domain registration. For a one-off hand with the DNS records, our engineers are available through Hire an Expert.
Related articles: add Google Workspace DNS records (MX, SPF, DKIM, DMARC) in cPanel, set up Google Workspace MX records, Gmail for your domain email: setup options.
Official documentation: Google: Verify your domain with a TXT record, Google: Set up MX records for Google Workspace.