I am trying to connect a domain name I got from Google Domains to a Google Cloud Platform VM instance. My domain is .dev and when I tried nslookup and dig trace, they are already pointing to the right IP address. Accessing the website using this IP works fine. I just cannot access the same website via the domain name.
The following is the configuration I did:
In my VM instance (Compute Engine API):
- Enabled http and https traffic
- Has network tags http-server and https-server
In VPC newtorks API:
- Made my external IP static
- Firewall at tcp:443 allows traffic (default-allow-https rule)
- When I tried running "netstat -tulpn | grep LISTEN", port 443 is not shown in the list.
Webserver may not be listening to port 443
In Network Services API:
- Added record sets for A and CNAME matching the DNS from Google Domains and external IP from VM instance
In Google Domains:
- Modified the name servers to be the same as those from Network Services API Registrar Setup values (added under the custom name server tab)
Screenshots:
Firewall screenshot
Network Zone screenshot
VM setup concerning firewall
Please understand that I do not have a networking background. Thank you so much for helping!