Add Google verification and Google Workspace DNS records to a domain through Cloudflare
- Command:
/go/google - Category: DNS
- Required option:
<domain>(first argument) - Output: Plain text, from the
cloudflarecommand - Last updated: 2026-11-20
On this page: Overview · Quick start · Syntax · Options · Output · Examples · Troubleshooting · Details · See also
Overview
/go/google is a shortcut for setting up a domain for Google services. It adds the Google verification and Google Workspace DNS records to the domain's zone in Cloudflare, so you don't have to enter them by hand.
The command does no DNS work itself. It passes the domain to cloudflare with the google action, and that command makes the changes through Cloudflare's API. The exact records are defined there.
Quick start
/go/google example.com
Syntax
/go/google <domain>
The command is equivalent to:
/go/cloudflare --domain <domain> --action google
Options
| Argument | Required | Default | Notes |
|---|---|---|---|
<domain> |
Yes | — | The domain to update. It must already be in Cloudflare. |
The command has no other options. Extra arguments are logged but not passed on.
Output
The command prints whatever cloudflare prints for the google action. It adds no output of its own.
The exit status is the one returned by cloudflare, so scripts can use it to detect failure.
Every run is logged to /var/log/go/google.log with a timestamp and the arguments used.
Examples
# Add the Google records to example.com
/go/google example.com
# The same thing, calling cloudflare directly
/go/cloudflare --domain example.com --action google
Troubleshooting
| Symptom | Likely cause | Fix |
|---|---|---|
| Error about a missing domain | No argument was passed. | Pass the domain: /go/google example.com. |
| Domain not found in Cloudflare | The domain hasn't been added to your Cloudflare account. | Add it first with dns. |
| Authentication or API error | Cloudflare credentials aren't configured or have expired. | Check the setup described on the cloudflare page. |
| Google doesn't see the records | DNS changes haven't propagated yet. | Wait a few minutes, then verify again in Google. |
Details
The script does two things:
- Appends a line to
/var/log/go/google.log. - Runs
sudo /go/cloudflare --domain <domain> --action google.
The domain is passed without validation. A mistyped domain is handled by cloudflare.
To add other records, use the matching commands: mx, txt, spf, dkim, and dmarc.
See also
| Command | Description |
|---|---|
cloudflare |
Manage DNS records using Cloudflare's API |
dns |
Add your domain to Cloudflare and edit the DNS zone |
mx |
Add an MX record to a domain through Cloudflare |
txt |
Add a TXT record to a domain through Cloudflare |
zoho |
Configure Zoho mail integration (MX, SPF, DKIM) |
googletop |
Report, filter, and block IPs from Google Ads clicks in the access log |