Skip to content

Instantly share code, notes, and snippets.

@ishan123456789
Created July 6, 2020 17:52
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ishan123456789/8e86dab2fce80be7985071f02627b20c to your computer and use it in GitHub Desktop.
Save ishan123456789/8e86dab2fce80be7985071f02627b20c to your computer and use it in GitHub Desktop.
GCP domain deployment

First go to compute engine and create an instance When created go to ssh and install nginx => sudo apt-get update && sudo apt-get install nginx When done you can now access through the IP mentioned along your instance through http://35.xx.x.xx Then we need to change the IP to a static one Go to VPC Network and change ephimeral to the static IP option THen Go to network services: Create a A record with your IP 35.xx.x.xx Create a CNAME with www.domain-name.com and value in alias domain-name.com

Go to your domain provider in my case it was godaddy THere go to the dns section of your domain there add all the 4 DNS records that were already there

ns-cloud-xx1.googledomains.com
ns-cloud-xx2.googledomains.com
ns-cloud-xx3.googledomains.com
ns-cloud-xx4.googledomains.com

🚀 your domain is accessible now

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment