How to connect your domain to Google Sites
Want to connect your Porkbun domain to your Google Sites page? No problem!
According to this article from Google, you will need to verify ownership of your domain and connect to it with a CNAME record. You'll need to decide ahead of time whether or not you'll want to use a custom subdomain (subdomain.domain.tld) instead of "www" (www.domain.tld).
Let's get started!
Log in to your Google Site and click the "Publish" button in the upper-right corner. If you have already published the site, click the arrow button next to "Publish" and click "Publish Settings..." in the drop-down menu. Click MANAGE in the Custom URL settings section to add a Custom URL.
Enter your domain name using the sub-domain you would like to use. Google Sites does not support use of the root domain. You will be prompted to verify your ownership of the domain. Click the "verify your ownership" link to proceed. This will open up the verification page in a new tab.
You will be prompted to choose a domain provider. Choose "Other" from the dropdown menu to continue to a manual setup page. You will be shown instructions to create a TXT record, however this option will not work. Select the option to "Add a CNAME record" under the "Having trouble" section.
Make note of the CNAME Label/Host and CNAME Destination/Target you are provided with.
In a new browser tab, sign in to Porkbun and go to the Domain Management page. Click the "Details" button for the domain you would like to connect. Before you configure DNS you will want to setup URL forwarding. Click the "Edit" link under URL Forwarding.
WARNING: If you have already have setup A or CNAME records in DNS, this step will wipe them out. Please make a note of any A or CNAME records you will need to recreate before completing this step.
Enter the URL of your chosen subdomain and click the "Submit" button.
Click the "Edit" link under DNS records.
Select "CNAME" from the "Type" dropdown menu. Enter the first part of the CNAME Label/Host entry from Google for the Host (we add the domain name on automatically). Enter the full CNAME Destination/Target entry from Google for the Answer. Click the "Add" button to add the record. While you are here you may also add the CNAME record for Google Sites. Enter the subdomain you are using for the hostname (e.g. www) and "ghs.googlehosted.com" for the answer.
Return to the Google verification page and click the "Verify" button at the bottom. If the CNAME record was setup correctly you should receive a message that verification was successful.
Return to the Google Sites tab. You Custom URL should now show a checkmark indicating the domain has been verified. Click the "Assign" button.
Finally, if you haven't already, click the "Publish" button to publish your site.
That's it! If you did everything correctly, your subdomain should begin resolving to your Google Sites page.