Point Domain to Google Sites: Step-by-Step
This guide walks you through connecting your own domain (like www.yourname.com) to a Google Sites website. By the end, visitors will see your custom domain in the address bar instead of the default sites.google.com/view/… URL. You’ll need access to your domain registrar’s DNS settings and a Google Sites site that is already published.
What You’ll Need
- A Google Sites website (published, not draft).
- A domain name registered with a registrar (e.g., GoDaddy, Namecheap, Google Domains, Cloudflare, etc.).
- Access to the DNS management panel of your domain registrar.
- Google Workspace account (optional but recommended for custom domain email).
Step-by-Step
- Publish your Google Site. Open your site in Google Sites, click the “Publish” button in the top right. If you haven’t published yet, do that first. Note the default URL (e.g., sites.google.com/view/your-site).
- Verify domain ownership with Google. Go to Google Search Console and sign in with the Google account you use for Sites. Click “Add property,” choose “Domain,” enter your domain (e.g., yourname.com), and click “Continue.” Google will give you a TXT record to add to your DNS. Copy that TXT value.
- Add the TXT record at your registrar. Log in to your domain registrar’s DNS management page. Find the section for “DNS Records,” “Zone Editor,” or “Advanced DNS.” Create a new record of type TXT with the host/name set to
@(or leave blank if that’s the default) and the value set to the TXT string from Search Console. Save it. - Wait for verification. DNS changes can take from a few minutes to 48 hours. Go back to Search Console and click “Verify.” If it doesn’t verify immediately, wait a few hours and try again.
- Add a CNAME record for “www”. In your registrar’s DNS settings, add a CNAME record with host/name
wwwand valueghs.googlehosted.com. This tells the web where to send www.yourname.com. - Add a CNAME record for the root domain (if needed). Some registrars allow a CNAME on the root (
@) – if yours does, add a CNAME with host@and valueghs.googlehosted.com. If not, you’ll need to use a service like Cloudflare to create a CNAME flattening record, or use an A record pointing to Google’s IPs (see Troubleshooting). - Add your custom domain in Google Sites. Go back to your Google Site. Click the “Publish” button again, then click the “Manage” link next to the published URL. Under “Custom domains,” click “Start setup.” Enter your domain (e.g., yourname.com or www.yourname.com). Follow the prompts – Google will check that the DNS records are correct.
- Finish publishing. Once Google verifies the domain, click “Publish” to apply the custom domain. Your site will now be accessible at your own domain.
Common Mistakes
- Using the wrong record type. Make sure you’re adding a CNAME, not an A record, for the www subdomain.
- Forgetting the trailing dot. Some registrars require the value to end with a dot, e.g.,
ghs.googlehosted.com.Check your registrar’s help if it doesn’t accept it without. - Adding the TXT record to the wrong host. The TXT record for verification should be on the root domain (
@), not onwww. - Not waiting for DNS propagation. DNS changes are not instant. Be patient for at least a few hours, sometimes up to 48.
- Using the site’s default URL in the CNAME. The CNAME value must be
ghs.googlehosted.com, not your site’s default URL.
Tips
- If your registrar doesn’t support CNAME for the root domain, use Cloudflare’s free plan to manage your DNS. You’ll point your nameservers to Cloudflare, then add a CNAME “flattening” record for the root.
- Set up a 301 redirect from the non-www to the www version (or vice versa) in Google Sites’ custom domain settings to avoid duplicate content.
- If you have an existing website, back up its content before changing DNS.
- Use a subdomain like www or home if you’re having trouble with the root domain – it’s often easier.
Troubleshooting
My domain isn’t working after 24 hours. Check that the CNAME record is exactly ghs.googlehosted.com (with or without trailing dot, depending on registrar). Use a tool like Google DNS to query your domain’s CNAME record – it should show the value. If it’s not there, re-add it.
I get “Domain not verified” in Google Sites. Make sure the TXT record is still in place and that you verified in Search Console first. If you changed DNS after verification, re-verify.
My root domain (example.com) doesn’t work, but www does. This is common because many registrars don’t allow CNAME on the root. Use Cloudflare’s CNAME flattening or set an A record to Google’s IP addresses (see below).
What A record should I use for the root? Google has not published a single IP for Google Sites. Instead, use Cloudflare’s CNAME flattening or a service like DNSimple that supports ALIAS records. Avoid using arbitrary IPs – they may change.
My site shows a “404” or “Site not found” error. That often means the DNS is correct but the custom domain hasn’t been added to Google Sites yet. Go to Publish > Manage > Custom domains and add it.
Frequently Asked Questions
Can I use a subdomain like blog.example.com?
Yes. Just create a CNAME record with host blog pointing to ghs.googlehosted.com, then add that subdomain in Google Sites.
Do I need Google Workspace to use a custom domain?
No, you can use a custom domain with a free Google account. Workspace is only required if you want email at your domain.
How long does DNS propagation take?
Typically 1-24 hours, but it can take up to 48 hours in rare cases. Most changes propagate within a few hours.
Can I point multiple domains to the same Google Site?
Yes, you can add up to 20 custom domains per site in Google Sites. Just repeat the DNS steps for each domain.
What if my registrar doesn’t allow CNAME on the root domain?
Use Cloudflare’s free DNS service. You’ll change your nameservers to Cloudflare, then add a CNAME record with host @ and enable “CNAME flattening.”
Will my old site’s URL redirect to the new one?
No, you need to set up a redirect manually. In Google Sites, you can choose which URL is the primary, and the other will redirect to it.
Related
Method: the standard formula for this calculation, rounded as each result states. See how the calculators work or report an error.