Long before I switched to VPS, I was a rookie thinking that C panel is the only thing in the whole world capable of doing what I want and need from a hosting environment.
Yes, I was wrong. 80% of its capabilities I never, never ever used. It’s literally just for playing and introducing yourself to the hosting environment, which is great and necessary in the very beginning.
Lets get right to the core:
To add a domain to you VM instance (and website), go to
Network Services > Cloud DNS
2. ..then click on +Create Zone
You will be asked to fill 3 fields.
In the Zone name Just type something like ” mysites domain zone”
DNS name is your domain: yoursite.com
Then, add an A record to point your domain to your server’s IP, and
add a CNAME record to point your www.yoursite.com to yoursite.com
To add any sub-domains, just add an A record, write your sub-domain name and point it to your server’s IP.
Do not forget to reserve your domain/server IP, to make it static. The thing is that Google holds the right to change your server’s IP if the system finds it necessary, which probably ain’t gonna happen, but to be sure it is better to reserve the IP.
To do that you have to navigate to VPC network > External IP addresses. From there change (under ‘Type‘) Ephemeral to Static. That’s it.