Wrinkles

Everyday skincare basics, explained plainly

How to Add Google Workspace DNS Records in cPanel

· 5 min read · Skincare Routines

This guide shows you how to add the DNS records Google Workspace requires (MX, SPF, DKIM, and DMARC) directly in cPanel. By the end, your domain will be configured to send and receive email through Google Workspace reliably, with proper authentication to avoid spam folders.

What You'll Need

  • Access to your cPanel account (usually via yourdomain.com/cpanel or a provided URL).
  • Your domain name (e.g., example.com).
  • Google Workspace admin access to generate the DKIM key.
  • Your domain's nameservers must be pointing to your hosting provider (where cPanel is hosted). If you use external DNS, you'll need to add these records there instead.

Step-by-Step

  1. Log into cPanel – Open your browser, go to your cPanel login URL, and enter your credentials.
  2. Open the Zone Editor – In cPanel, look for the “Domains” section and click on “Zone Editor”. This is where you manage DNS records.
  3. Find your domain – In the Zone Editor, locate the domain you want to configure (e.g., example.com) and click “Manage”.
  4. Add the MX records – Google Workspace requires specific MX records. Click “Add Record”. Set Type to MX, Name to your domain (or leave blank for the root), Priority to 1, and Destination to ASPMX.L.GOOGLE.COM. Repeat for the other five MX records with their respective priorities and destinations (see table below).
  5. Add the SPF record – Click “Add Record”. Set Type to TXT, Name to your domain (or leave blank), and Value to v=spf1 include:_spf.google.com ~all. This tells receiving servers that Google is authorized to send email for your domain.
  6. Generate DKIM in Google Workspace – Log into your Google Admin console (admin.google.com). Go to Apps → Google Workspace → Gmail → Authenticate Email. Select your domain and click “Generate New Record”. Copy the DKIM key shown (it starts with v=DKIM1; k=rsa; p=...).
  7. Add the DKIM record in cPanel – Back in the Zone Editor, click “Add Record”. Set Type to TXT, Name to google._domainkey (or the exact hostname shown in the Admin console, e.g., google._domainkey), and Value to the full DKIM key you copied. Click “Save”.
  8. Add the DMARC record – Click “Add Record”. Set Type to TXT, Name to _dmarc, and Value to v=DMARC1; p=none; rua=mailto:you@yourdomain.com. You can adjust the policy later (e.g., p=quarantine) after testing.
  9. Verify all records – After adding, review the list to ensure all records are present and correct. The MX records should show the Google destinations with the correct priorities.
  10. Activate DKIM in Google Workspace – Return to the Google Admin console, click “Authenticate Email” again, and click “Start authentication” next to the domain. Wait for propagation (up to 48 hours) and then click “Verify” – if the DNS is correct, it will confirm.

Google Workspace MX records (use these exact values):

  • Priority 1: ASPMX.L.GOOGLE.COM
  • Priority 5: ALT1.ASPMX.L.GOOGLE.COM
  • Priority 5: ALT2.ASPMX.L.GOOGLE.COM
  • Priority 10: ALT3.ASPMX.L.GOOGLE.COM
  • Priority 10: ALT4.ASPMX.L.GOOGLE.COM
  • Priority 10: ALT5.ASPMX.L.GOOGLE.COM

Common Mistakes

  • Wrong MX priority – Using the same priority for all MX records (e.g., all 1) can cause load balancing issues. Stick to Google's specified values.
  • SPF record with multiple “include” – If you already have an SPF record, don't add a second one. Merge them into a single record, e.g., v=spf1 include:_spf.google.com include:otherservice.com ~all. Multiple SPF records can cause failures.
  • DKIM name incorrect – The “Name” field for DKIM must be exactly google._domainkey (or the hostname shown in the Admin console). Adding an extra dot or a different prefix will break authentication.
  • DMARC policy too strict initially – Starting with p=reject before testing may cause legitimate email to be rejected. Use p=none first.
  • Forgetting to remove old MX records – If your domain previously used another mail provider, delete those old MX records to avoid conflicts.

Tips

  • Wait for propagation – DNS changes can take up to 48 hours to spread globally. Be patient before testing.
  • Use a DNS checker – Tools like Google's Dig or MXToolbox can help you verify records are live before activating DKIM.
  • Start with DMARC p=none – This allows you to monitor email flow without affecting delivery. After a week, you can tighten the policy.
  • Keep backups – Before deleting old records, screenshot your existing DNS settings in case you need to revert.
  • Add all three authentication methods – SPF, DKIM, and DMARC work together. Skipping one reduces your email deliverability.

Troubleshooting

  • Email not arriving – Check that MX records are correct and that there are no old MX records pointing elsewhere. Use a tool like MXToolbox to see if your MX records resolve correctly.
  • DKIM verification fails – Ensure the DKIM TXT record's name is exactly as shown in the Admin console (often google._domainkey). Also check that the value is copied completely, including the v=DKIM1 part.
  • SPF failure – If you have multiple SPF records, combine them into one. Also, ensure the SPF record is at the root domain (e.g., example.com), not a subdomain.
  • DMARC reports not received – Verify the rua email address is correct and that you have a mailbox for it. Also, ensure the DMARC record is at _dmarc.example.com.
  • Changes not showing – Clear your DNS cache or use a public DNS resolver (like 8.8.8.8) to check. Sometimes your local ISP caches old records.
  • Google Admin says “not authenticated” – Wait a few hours after adding the DKIM record, then click “Verify” again. If it still fails, double-check the record's name and value.

Frequently Asked Questions

Do I need to add all six MX records?

Yes, Google requires all six MX records for redundancy. If you omit some, email may still work but with reduced reliability.

Can I use a different SPF record if I already have one?

You must include include:_spf.google.com in your existing SPF record. Do not create a second SPF record; merge them.

What does DMARC do?

DMARC tells receiving servers what to do with emails that fail SPF or DKIM checks. It also provides reports so you can monitor spoofing attempts.

How long does DNS propagation take?

Usually under an hour, but it can take up to 48 hours in some cases. Check with online tools to see when your records are visible globally.

Do I need to delete my old email provider's DNS records?

Yes, especially old MX records. Leaving them can cause email to be routed to the wrong server.

What if I don't have cPanel access?

If your DNS is managed elsewhere (e.g., Cloudflare, GoDaddy), you'll need to add these records in that provider's dashboard instead. The record types and values are the same.

In this article
  1. What You'll Need
  2. Step-by-Step
  3. Common Mistakes
  4. Tips
  5. Troubleshooting
  6. Frequently Asked Questions