π― Whatβs the goal? Assign your domain to your GCP Hosting account. | β οΈ Why does it matter? So your domain name redirects to the server hosting your website. |
π Whatβs the result? Your domain name points to your GCP account. | β When do you do this? Ideally as soon you put your website online, only once. |
β
Any special requirements? You need to have your own domain name (SOP005) and GCP Server. | πββοΈWho should do it? Owner of the website or the person in charge of managing it. |
π Where this is done: On godaddy.com and in Google Cloud Platform Admin Console.
β³ How long will this take? about 10 minutes
Letβs get started, in 15-min you will be able to access your website not using its IP address but with its unique domain name.
Environment setup:
- We recommend that you use Google Chrome browser to navigate the web.
- Access to your Google Cloud Admin Panel,
- Access to your GoDaddy account.
Creating a DNS Zone for your Google Cloud
- Go to Google Cloud.
- Click on βGo to consoleβ.
- Log In with your Google Account.
- Click on the burger βmenu buttonβ in the upper left corner.
- From the menu, choose βNetwork servicesβ, then βCloud DNSβ.
- Click on βCreate zoneβ.
- Make sure that βZone typeβ is set to βPublicβ.
- Create a βZone nameβ. It should be unique for any project. We recommend βyourdomainname-dns-zoneβ name as it is self-explaining.
- In the βDNS nameβ box you should type βyourdomainname.comβ.
- βDNSSECβ should be βOffβ.
- Then click on βCreateβ.
- You will be presented with a list of βRecord setsβ you have just created.
- Now you need to create an βAβ record. Click on βAdd a record setβ.
- Set βResource Record Typeβ(1) to βAβ, βTTLβ(2) to β5β and βTTL Unitβ(3) to βminutesβ. In the βIPv4 Addressβ box you need to put your Google Cloud website IP address. We will show you where to find it in the next step.
Getting your IP address from Google Cloud
- Open another tab in your web browser.
- Go to your Google Claud Panel.
- Click on the burger βmenu buttonβ in the top left corner.
- In the menu navigate to βCompute Engineβ, then click on βVM instancesβ.
- And there is your IP address. Copy it and go back to the tab with the record sets editor opened.
- After you retrieve your IP address, paste it in the βIPv4 Addressβ box and click on βCreateβ.
- And there are your βNameserversβ. You can recognise it by the βNSβ Type in the βTypeβ column. Write them down as you will need them in the next steps.
Changing GoDaddy nameservers
- Go to GoDaddy.com and log in to your account.
- Click on βSign Inβ.
- Enter your account data and press on βSign Inβ or choose to sign in with βGoogleβ if you used it to create an account on GoDaddy.com.
- After you sign in you should see the domain that you bought. Click on βDNSβ to access DNS settings.
- Now you should see the βNameserversβ page. Click on βChangeβ.
- Then βEnter my own nameservers (advanced)β.
- Choose βIβll use my own nameserversβ.
- Now you should see two boxes called βNameserver 1β and βNameserver 2β.
- Now you need to enter βNameserversβ, you write down from your Google Cloud. Simply put first of them in the βNameserver 1β box and the second one in the βNameserver 2β box.
- If there is no box for the rest of βNameserversβ click on βAdd Nameserverβ and it will add another box.
- Click on βSaveβ after you add all βNameserversβ.
- Reload the page.
- Now try to go to your domain by typing it on the internet browser.
Youβre all set now and your audience can finally access your website using its own unique domain name. This is a major step in building your online brand.