Map Domain Name To Hosting. You should have received these via email when you signed up for hosting. Every registrar has a different way of doing this.
Setting up a custom domain name instead of a localhost will help you when testing of many things such as redirecting a non-www to a www website or vice-versa or redirecting from http to https before publishing a website to the productionhosting environment. This can be done in two ways. A Record maps a domain name to its appropriate IP address.
Use your domain name as a custom domain for Google App Engine Blogger or Google Sites.
Login to your domain name registrar. Use one of the third-party web hosting providers you can link to seamlessly from Google Domains to create a new account or use one you already have set up. A Record maps a domain name to its appropriate IP address. Connecting your domain to your hosting Step 1.