Linking Google Workspace to Your Own Domain
Google Workspace (formerly G Suite) allows you to use Gmail with your own domain name like info@yourcompany.nl. In this article, we explain how to link Google Workspace to your domain by setting the correct DNS records.
What is Google Workspace?
Google Workspace is the business version of Gmail and other Google services. With Google Workspace, you get:
- Professional email address with your own domain
- 30 GB to unlimited storage (depending on the package)
- Google Drive, Docs, Sheets, Meet and more
- Advanced security options
- Admin control over all users
Before You Start
Make sure you have the following:
- An active Google Workspace account (admin.google.com)
- Access to DNS management of your domain (DirectAdmin or other provider)
- Your domain is not linked to another email service
Step 1: Add Domain in Google Workspace
- Log in to admin.google.com
- Go to Account > Domains > Manage Domains
- Click on "Add Domain
- Enter your domain name (without www)
- Select "Primary Domain or "Domain Alias
Step 2: Verify Domain
Google needs to verify that you own the domain. You do this with a TXT record.
Add Verification TXT Record
- Google will show you a verification code like:
- In DirectAdmin:
- Go to DNS Management
- Add a new TXT record:
- Name: `@` or leave empty
- Type: TXT
- Value: The Google verification code
- TTL: 3600
- Wait 5-60 minutes for DNS propagation
- Click on "Verify in Google Admin
google-site-verification=abc123xyz...
Step 3: Set Up MX Records
MX records tell where email for your domain should go. For Google Workspace, you need specific MX records.
Google Workspace MX Records
First, remove all existing MX records and then add these:
| Priority | Mail Server |
|---|---|
| 1 | ASPMX.L.GOOGLE.COM |
| 5 | ALT1.ASPMX.L.GOOGLE.COM |
| 5 | ALT2.ASPMX.L.GOOGLE.COM |
| 10 | ALT3.ASPMX.L.GOOGLE.COM |
| 10 | ALT4.ASPMX.L.GOOGLE.COM |
Add MX Records in DirectAdmin
- Go to DNS Management
- Remove all existing MX records
- Add a new MX record for each line:
- Name: `@` or leave empty
- Type: MX
- Priority: As indicated above
- Value: The mail server (e.g., ASPMX.L.GOOGLE.COM)
- TTL: 3600
- Save all records
Important: Don’t forget the dot (.) at the end if your DNS system requires it.
Step 4: Set Up SPF Record
To prevent spam and improve deliverability, you set up an SPF record.
Google Workspace SPF Record
v=spf1 include:_spf.google.com ~all
If you also use other services that send email:
v=spf1 include:_spf.google.com include:_spf.theory7.net ~all
Add SPF in DirectAdmin
- Go to DNS Management
- Look for existing TXT records with "spf"
- Edit or Add:
- Name: `@` or leave empty
- Type: TXT
- Value: `v=spf1 include:_spf.google.com ~all`
Step 5: Set Up DKIM
DKIM adds a digital signature to your emails for extra verification.
Retrieve DKIM Key
- In Google Admin, go to Apps > Google Workspace > Gmail
- Click on "Authenticate email
- Click on "GENERATE NEW RECORD
- Select 2048 bits for maximum security
- Copy the generated DKIM key
Add DKIM Record
- In DirectAdmin, go to DNS Management
- Add a new TXT record:
- Name: `google._domainkey` (or what Google indicates)
- Type: TXT
- Value: The long DKIM key from Google
- Wait 48 hours (DKIM may take longer)
- Go back to Google Admin and click on "Start authentication
Step 6: Set Up DMARC (Recommended)
DMARC combines SPF and DKIM for maximum protection.
Basic DMARC Record
v=DMARC1; p=quarantine; rua=mailto:dmarc@yourdomain.nl
Add DMARC
- Add a new TXT record:
- Name: `_dmarc`
- Type: TXT
- Value: The DMARC record
Check if Everything Works
Test MX Records
- Go to mxtoolbox.com
- Enter your domain
- You should see the Google MX servers
Test SPF
- Go to mxtoolbox.com/spf.aspx
- Enter your domain
- Check for green checkmarks
Send Test Email
- Send an email from your Google Workspace account to a Gmail address
- Open the email and view "Show Original
- Look for: `spf=pass`, `dkim=pass`
Common Issues
"MX records not found"
- Wait longer - DNS propagation can take up to 48 hours
- Check for typos in the server names
- Ensure old MX records are removed
"Emails are not arriving"
- Check if MX records are set correctly
- Check the recipient's spam folder
- Test with mxtoolbox.com to see if your MX records are correct
"DKIM verification failed"
- DKIM can take up to 48-72 hours to propagate
- Check if the selector (google._domainkey) is exactly correct
- The DKIM key must not contain line breaks
"Cannot log in to Gmail"
- Use your @yourdomain.nl email address, not @gmail.com
- Log in via mail.google.com or Gmail app
- Check your password in Google Admin
Email Migration
If you want to transfer existing emails to Google Workspace:
- In Google Admin, go to Data Migration
- Select your source (IMAP, other provider)
- Follow the wizard to import emails
Related Articles
- Setting up email in Mozilla Thunderbird
- Setting up email in Apple Mail on Mac: Complete guide
- Setting up email on Android: Complete guide
- More information about email services at Theory7
Need Help?
We are here for you! Are you facing any issues or do you have questions? Our support team is happy to assist you personally. Send us a message via the ticket system - we usually respond within a few hours and are happy to help you.
0 van 0 vonden dit nuttig