Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to use Google Compute engine with my own domain?

I found these instructions but they are not very clear:

https://developers.google.com/speed/public-dns/docs/using

  1. I am using Namecheap. Will I need to specify my own Host Record on namecheap? If so How do I determine the IP address to enter for my A recordy type?

  2. If setting up the host record on namecheap is not an option, where do I do this using google Public-DNS?

  3. I'm simply trying to get my domain http://www.example.com to resolve.


Responding to "Close" votes: This has 2 helpful votes below, and over 500 views. This question is relevant and helpful.

like image 800
JZ. Avatar asked Nov 04 '14 16:11

JZ.


People also ask

Can I use my own domain with Google?

You can use a custom domain for a site published on new Google Sites. Using a custom domain can make it easier for people to find and remember your site with a web address like www.yourdomain.com. To use a custom domain for your site, you can: Select a domain from your Google Domains account (if you have one).

How do I connect my domain to GCP?

From the Advanced DNS Settings pane, click Sign in to DNS console. Using the Sign-in name and Password noted previously, sign in to the DNS console. The My Domains page opens in a new tab. Select the DNS record option provided by your web host for instructions on adding it to your domain's DNS records.


1 Answers

  • Assign a static ip address to your compute engine VM instance (static IP address is free as long as it is in use)
  • Install apache on the instance.
  • At namecheap, create your 'A record' or host record for hostname 'www' that points to this static ip address.
  • Open the http port so that the instance can start serving

done.

like image 57
koma Avatar answered Nov 10 '22 23:11

koma