Google Workspace is Google's cloud-based suite, including Gmail, Drive, Docs, Meet, and Calendar. To link your domain to Google Workspace, you need to verify domain ownership and update a few DNS records so your e-mail and services connect to Google's servers. Once saved and propagated, your domain will be fully connected to Google Workspace, allowing you to use Gmail and other Google apps with your own domain name.
This guide explains how to successfully link your domain to Google Workspace. You can also refer to our DNS guide if you need more information about editing DNS records.
Connect Google Workspace
1. To link your domain to Google Workspace, start by signing up at workspace.google.com and entering your existing domain during the setup process.
2. Once your account is created, you need to verify ownership of your domain, which is most commonly done by adding a TXT record provided by Google to your domain's DNS settings.
3. Log in to DirectAdmin.
4. In the menu, go to 'Account Management' → 'DNS Management'.
5. Check the following records and click 'Delete'.
mail A 123.456.789.111 example.com MX mail
6. Add the following records:
Name: @ Type: TXT Value: (A unique string provided by Google to verify that you are the domain owner) Name: @ Type: MX Values: ASPMX.L.GOOGLE.COM Priority: 1 Name: @ Type: MX Values: ALT1.ASPMX.L.GOOGLE.COM Priority: 5 Name: @ Type: MX Values: ALT2.ASPMX.L.GOOGLE.COM Priority: 5 Name: @ Type: MX Values: ALT3.ASPMX.L.GOOGLE.COM Priority: 10 Name: @ Type: MX Values: ALT4.ASPMX.L.GOOGLE.COM Priority: 10 Name: @ Type: TXT Value: "v=spf1 a mx ip4:195.211.72.0/22 ip4:141.138.168.0/21 ip6:2a03:3c00:a001::/48 ip6:2a03:3c00:a002::/48 include:_spf.google.com ~all" Name: google._domainkey Type: TXT Value: (A long string generated in the Google Admin Console) Name: mail Type: CNAME Value: ghs.googlehosted.com. (optional) Name: calendar Type: CNAME Value: ghs.googlehosted.com. (optional) Name: drive Type: CNAME value: ghs.googlehosted.com. (optional)
The CNAME records are optional and only necessary if you want branded URLs like mail.yourdomain.com.
7. Disable local mail handling by navigating to to 'E-mail Manager' → 'MX Records'.
8. Uncheck 'Use this server to handle my e-mails' and click 'Save'.