Before Google Workspace or Microsoft 365 will let you use your domain for email, you need to prove that you actually own it. The most common way to do this is by adding a special TXT record to your domain's DNS settings. This is usually the first step, before you even get to setting up MX records for mail delivery.
Step 1: Get your verification TXT record value
Log in to your Google Workspace admin console or Microsoft 365 admin center and start the domain setup process. When asked how you want to verify your domain, choose the TXT record method (sometimes labelled "Domain Name Provider" or "Add a TXT record"). You'll be shown a value that looks something like google-site-verification=xxxxxxxx for Google Workspace, or a long string starting with MS= for Microsoft 365.
Copy this value exactly. Don't add quotation marks, extra spaces, or change the capitalization.
Step 2: Add the TXT record in your DNS settings
You'll add this TXT record against your bare domain (not a subdomain like www), with the Host or Name field left as @ or your domain name, depending on how your control panel labels it.
In cPanel
- Log in to cPanel and click Zone Editor under the Domains section.
- Find your domain and click Manage.
- Click Add Record, then choose TXT Record.
- Leave the Name field as your domain (or @).
- Paste the verification value into the Record field exactly as given.
- Click Save Record.
In DirectAdmin
- Log in to DirectAdmin and open DNS Management.
- Select the domain you're verifying.
- Choose TXT as the record type and leave the name as your domain.
- Paste the verification value into the value field exactly as given.
- Click Add Record, then Save.
Don't remove the TXT record once verification succeeds. Google and Microsoft sometimes re-check it periodically, and removing it too soon can cause your domain to lose its verified status.
Step 3: Confirm verification
DNS changes aren't instant. Go back to the Google Workspace or Microsoft 365 setup wizard and click Verify. If it doesn't pass right away, wait a few hours for the record to propagate and try again. It can occasionally take up to 24-48 hours.
If verification keeps failing, double-check that you added the record to the correct domain (not a subdomain), that there are no typos in the value, and that you haven't accidentally added it twice with slightly different values.
Once your domain is verified, the next step is usually pointing your MX records so mail actually gets delivered to Google Workspace or Microsoft 365. See How to Set Up MX Records for Google Workspace or Microsoft 365 for that step.