Link domain name to compute engine instance ip address

1. Find the external ip address of your compute engine instance, once you are on the compute engine console page, you should see a list of compute engine instances, the external ip address should be on each of the instance item.
2. Go to your domain registrar’s account console, and go to the DNS manager page.
3. On the DNS manager page and add 2 A record. For example, if your ip address is 123.456.78.9, it would be like the following. If you have IPv6 address, it would be AAAA instead of A.

Type Host Value TTL
A @ 123.456.78.9 60min
A www 123.456.78.9 60min

4. Note the compute engine external ip address is ephemeral which means it changes. For a production site, a reserved static external ip address should be used instead. It can be reserved in gcloud and then assign the address to the compute engine instance.

Search within Codexpedia

Custom Search

Search the entire web

Custom Search