How to Verify Your Domain for Google Workspace (TXT Record, Any Registrar)
Google won’t switch on Gmail until you prove you own your domain, and the proof is a single DNS record. Here is where to get your google-site-verification code, exactly where to paste it at Porkbun, GoDaddy, Namecheap, Cloudflare, Squarespace, Hostinger, Bluehost and Wix, how to check it is live, and how to unstick a verification that stays pending.
Why Google makes you verify your domain
Anyone can type any domain into the signup form. Verification is how Google checks that the person creating the account actually controls the domain, so a stranger can’t open mailboxes on it or receive your mail.
Google only accepts proof that lives in your DNS: a TXT record (the default), a CNAME record, or occasionally an MX record. Its domain verification help page explains why: other methods “such as HTML strings or meta tags, can be used by malicious actors to create fraudulent Google Workspace accounts.” A site you verified in Search Console with an HTML file doesn’t count here.
The record changes nothing on your website or existing email; only Google reads it. There is, however, a clock running.
Heads-up: Google says you must verify within the first 9 days of your free trial (or when you start a paid contract). Otherwise the account is automatically deleted within 21 days of signup.
Before you start
Have three things ready:
- Your admin login at
admin.google.com: a super admin, or at least an account with the Domain settings administrator privilege. - The login for wherever your DNS is hosted. Usually that is your registrar, but if your nameservers point to Cloudflare, Wix, Squarespace or your web host, the record goes there instead. Google’s Identify your domain registrar page suggests checking your invoice or an ICANN lookup; the Dig tool in Step 3 shows your real nameservers.
- A little patience. DNS changes can take up to 72 hours to spread, though most registrars publish them in minutes.
Bought the domain through Google during signup (Google uses partner registrars for this), or have an account managed by a reseller? Google says it is probably already verified: check the Status column under Menu → Account → Domains → Manage domains first.
Not signed up yet? Start with How to Set Up Google Workspace: Complete Guide and return when the setup tool asks you to verify. Every plan, from Business Starter at $8.28 per user per month upward, verifies the same way; see our pricing page.
14-day free trial · 10% off your first year with our referral link
Google Workspace domain verification methods compared
| Method | How it works | Use it when |
|---|---|---|
| TXT record (recommended) | A TXT record at the root of your domain whose value is google-site-verification=… | Default; works at every registrar and DNS host |
| CNAME record | A random label pointing to …domainverify.googlehosted.com, TTL 3600 | Your host can’t add a TXT at the root; also used for admin password recovery |
| Sign in to your host (automatic) | The setup tool opens your host’s login and Google adds the record (usually MX too) | Only when offered: Squarespace documents it and GoDaddy has long had it; Google publishes no list |
| MX record | Verification piggybacks on the mail record | Only if the tool proposes it for your domain |
| HTML file / meta tag | Search Console methods | Not accepted for Google Workspace |
Use the TXT record unless you have a reason not to. The automatic route is handy when it appears, but it means handing Google a registrar login, and it isn’t offered for Porkbun and many other hosts.
Step 1: Get your Google Workspace verification code
- Sign in at
admin.google.com. A brand-new account opens the setup tool with a “Set up Admin console” prompt. Otherwise go toMenu → Account → Domains → Manage domainsand click Verify domain next to the domain marked Not verified. - Click Get started, pick your registrar and click Continue. Google has tailored instructions for Amazon Route 53, Bluehost, Cloudflare, GoDaddy, Hostinger, IONOS, Namecheap, Shopify, Squarespace, Wix and WordPress. If yours isn’t listed (Porkbun, for example), choose My domain uses a different host.
- In the TXT record section copy the Value with the copy icon. It looks like
google-site-verification=abcdef123_456wx789yz, only longer. Copy the whole thing, prefix included. - Leave this tab open for Step 4.
How to check it worked: paste the value somewhere plain. It must start with google-site-verification= and contain no spaces or line breaks.
If the tool shows a “Sign in to …” button for your host instead, that is the automatic method: sign in, approve, done. If it fails, switch to the manual record. Google’s CNAME record guide covers the alternative if your host can’t hold a TXT record at the root.
Step 2: Add the TXT record at your registrar
Whatever your registrar calls the fields, you enter the same four things:
| Field | What to enter |
|---|---|
| Type | TXT |
| Name / Host / Alias | @ or leave blank (the root domain). For a subdomain enter only that part, e.g. mail |
| Value / Answer / Data / Content | The full value, e.g. google-site-verification=abcdef123_456wx789yz |
| TTL | Leave the default; 3600 (one hour) is fine if you must choose |
Two rules apply everywhere: add it to the root domain, never to www, and leave it in place. Google’s TXT record instructions say removing it before verification completes makes the check fail. Now find your registrar.
Porkbun
Porkbun isn’t in Google’s list, so choose My domain uses a different host in Step 1. Then:
- Log in; you land on Domain Management (otherwise
Account → Domain Management). - Click Details next to the domain, find DNS RECORDS and click its edit (pencil) icon.
- Click Add record (top right) and stay on the Manual tab.
- Set Type to
TXT - Text record, leave Host blank (the root domain), paste the value into Answer / Value and click Add. - Click Back; the new TXT row is in the list.
Porkbun’s Quick Setup → Google Workspace shortcut adds the MX record (smtp.google.com) and SPF in one click, which you will want later, but not the verification TXT, so step 4 stays manual. Porkbun publishes within a couple of minutes, so you can usually confirm in Google straight away. Porkbun’s own article shows the same clicks with screenshots.
GoDaddy
Sign in to your Domain Portfolio, open the domain and click DNS. Click Add New Record, set Type to TXT, Name to @, paste the value, leave TTL at the default 1 hour and Save. GoDaddy says most changes apply within an hour, up to 48 hours worldwide. With Domain Protection on, GoDaddy asks you to verify your identity before saving. GoDaddy is also a host for which the setup tool may offer the sign-in shortcut.
Namecheap
Go to Domain List → Manage → Advanced DNS. Under Host Records click Add New Record, choose TXT Record, Host @, paste the value, TTL Automatic, and click the green tick. This works only while the domain uses Namecheap BasicDNS or PremiumDNS; Namecheap’s guide notes that with third-party nameservers the record must be created at that DNS provider.
Cloudflare
If your nameservers are on Cloudflare, nothing added at the registrar is seen. Select the domain, go to DNS → Records, click Add record, choose TXT, Name @, paste into Content, TTL Auto, Save. TXT records are never proxied (the orange cloud only applies to A, AAAA and CNAME records) and changes go live within a minute or two.
Squarespace (including domains moved from Google Domains)
Go to account.squarespace.com/domains, click the domain, then DNS. Under Custom records click Add record, Type TXT, Name @, paste the value into Data and save (Squarespace may ask for your password). Custom records default to a 4-hour TTL; Squarespace says changes can take 24 to 48 hours, though they are usually far quicker.
If your domain came from Google Domains, this is where it lives now: Google sold Google Domains to Squarespace and the migration finished in 2024. Sign in with the same Google account and your old records, including any earlier google-site-verification entry, are in this panel. Squarespace’s Google Workspace page adds that when you activate Gmail from the Admin console you are prompted to log in to Squarespace and it adds the verification CNAME and MX records automatically; there is also an Add preset → Google Workspace MX option for later.
Hostinger
In hPanel go to Domains, click the domain, then DNS / Nameservers. Choose Type TXT, Name @, paste the TXT value, keep the default TTL of 14400 and click Add Record. Hostinger says to allow up to 24 hours, and the editor only applies while the domain uses Hostinger’s nameservers.
Bluehost
Open Domains, select the domain and open its DNS tab; on older hosting accounts use cPanel → Domains → Zone Editor. Click Add Record, choose TXT, enter @ as the Host / Name (or your full domain if existing records are listed that way), paste the value into Value / Points To, keep the default TTL and click Save Record. Bluehost says record changes can take up to 8 hours.
Wix
Go to Domains, click the Domain Actions icon next to the domain and choose Manage DNS Records. In the TXT (Text) section click + Add Record, leave Host Name blank (Wix’s equivalent of @), paste the value and Save. Wix’s TXT article warns that if the domain is connected by pointing (nameservers still at your registrar), the record must be added at the registrar, not in Wix.
14-day free trial · 10% off your first year with our referral link
Step 3: Check the record is live before you click Confirm
Don’t guess; look it up. Three free tools show what the world sees:
- Google Admin Toolbox Dig at toolbox.googleapps.com/apps/dig/. Type
txt: yourdomain.comand run it; your value should appear in the answer. Typens: yourdomain.comto see where your DNS really lives. - MXToolbox TXT Lookup at mxtoolbox.com/TXTLookup.aspx, which queries your authoritative nameservers directly, so new records appear almost immediately.
- nslookup on your own computer:
nslookup -q=txt yourdomain.com 8.8.8.8asks Google Public DNS, the check Google itself suggests on its Troubleshoot TXT records page.
How to check it worked: the value matches your Admin console tab character for character. Nothing yet? Wait 15 minutes. A different google-site-verification value is a leftover from an earlier attempt and is harmless.
Step 4: Confirm verification in the Admin console
Back in the tab you left open (same user), tick the “Come back here and confirm…” box and click Confirm. On success the tool offers Activate Gmail, which continues to the MX step covered in Google Workspace MX Records: Setup by Registrar, or Explore Google Workspace, and Manage domains shows Verified.
If Google says it couldn’t verify the domain, don’t re-add the record; it is usually just early. Wait, re-check with Dig, and click Confirm again.
How long does it take? Adding the record takes about 10 minutes. Once it is visible in DNS, Google says confirmation usually happens within minutes and at most an hour. The 72-hour ceiling exists because resolvers cache records for their TTL, so an edited record can lag that long. “Pending” just means Google hasn’t seen the record yet. Google’s verification failed page says to allow up to 48 hours before contacting support.
How to check it worked: Manage domains shows Verified and the “Set up Admin console” banner disappears. You may delete the TXT record afterwards, but leaving it means never repeating this.
Troubleshooting: verification failed or stuck on pending
- The record is in the wrong place. You added it at the registrar while the nameservers point to Cloudflare, Wix, a web host or an old provider. Run
ns: yourdomain.comin Dig and add it where those nameservers belong. If your host can’t add records at all, Google’s fix is to move DNS to a third-party DNS host. - www instead of the root. A TXT record on www.example.com doesn’t verify example.com. The Host must be
@, blank, or at some older panels your bare domain name. If Dig showsexample.com.example.com, the panel appended your domain to a Host you typed in full: change it to@. - The value got mangled. No added quotes (many panels add their own), no stray spaces, nothing missing from the front. The Dig output and your Admin console tab must match exactly.
- It just hasn’t propagated. Edited records honour their old TTL, so allow up to 72 hours. Google’s advice: wait 48 hours, re-enter the record if it still fails, then contact support.
- You removed or changed the record too early. It must be visible at the moment you click Confirm. Put it back and confirm again; the code doesn’t change.
- Verified, but mail still arrives at the old provider. Not a verification problem. Routing is the separate MX step, followed by SPF, DKIM & DMARC for Google Workspace.
“This domain is already in use” or verified by another account
If signup stops with “This domain is already in use”, or the Admin console says “This domain name has already been used as an alias or domain”, another Workspace account owns it. Google’s troubleshooting page lists the usual causes: a colleague or former contractor signed up years ago, the domain is an alias on another account you control, or an account on it was deleted recently (wait 24 hours, or 7 days if it was bought through a reseller).
To find the Google Workspace account behind your domain name:
- Ask around. Google’s first suggestion is to find whoever signed up and work with them.
- For a blocked signup, use Google’s sign-up issues form: enter the domain, get a reference number, prove ownership with a DNS record and submit. Support then helps you reclaim it.
- If you have a user account on the domain but can’t reach its admin, open the recovery form, click Lookup Recovery Options and choose “I am a user and cannot contact my administrator”. After you prove ownership with a CNAME or TXT record, Google contacts the current admins and, if they are unresponsive, promotes you to super admin. Details are on Google’s recovering administrator access page.
Once inside, Add Multiple Domains to Google Workspace explains moving a domain between accounts.
14-day free trial · 10% off your first year with our referral link
Related setup guides
- All Google Workspace setup guides
- How to Set Up Google Workspace: Complete Guide
- Google Workspace MX Records: Setup by Registrar
- SPF, DKIM & DMARC for Google Workspace
- Google Workspace Admin Console: Beginner’s Guide
- How to Add Users to Google Workspace
- Custom domain email with Google Workspace
Frequently asked questions
What is the google-site-verification TXT record?
It is a DNS text record whose value starts with google-site-verification= followed by a unique code Google generates for your domain. Google looks for it when you click Confirm; finding it proves you control the domain’s DNS. It doesn’t affect your website or email, and other TXT records such as SPF can sit alongside it.
Where do I find my Google Workspace verification code?
Sign in at admin.google.com, go to Menu, then Account, Domains and Manage domains, and click Verify domain next to the unverified domain. Click Get started, choose your registrar or My domain uses a different host, and the TXT record section shows the value to copy. On a brand-new account the setup tool opens this screen automatically.
Can I verify my domain for Google Workspace with an HTML file or meta tag?
No. Google says Workspace verification must use a DNS record (TXT, CNAME or sometimes MX) because HTML files and meta tags can be abused to create fraudulent accounts. Those are Search Console methods. If your host blocks DNS edits, Google’s suggested fix is to move your DNS to a third-party DNS host.
Why is my Google Workspace domain verification still pending after a day?
Usually the record is in the wrong zone (your nameservers point somewhere other than where you added it), the host is www or your full domain instead of @, or the value was pasted with quotes or spaces. Check what the internet sees with Google Admin Toolbox Dig. If the record looks right, Google says to allow up to 48 hours and then contact support.
My domain is already in use by another Google Workspace account. What now?
Someone in your organisation or a former contractor probably signed up with it. Ask around first. If no one can help, use Google’s sign-up issues form at toolbox.googleapps.com to claim the domain by proving ownership with a DNS record, or, if you have a user account on the domain, the recovery form to request promotion to super admin.
How do I verify a domain for Google Workspace on Porkbun?
In Google’s setup tool choose My domain uses a different host and copy the TXT value. At Porkbun open Domain Management, click Details next to the domain, click the edit icon on DNS Records, then Add record. On the Manual tab set Type to TXT, leave Host blank, paste the value into Answer and click Add. Porkbun updates within minutes, so you can confirm in Google almost immediately.
MyOwnGoogle is reader-supported. If you start a Google Workspace trial through our links we may earn a commission, at no extra cost to you. This never affects what we recommend.