I have installed a LAMP on a VM on Compute Engine.
I want to redirect my domain to that VM, and for this I have created a DNS zone following Google's instructions. I have created the A
and CNAME
records.
My problem is that it doesn't work. Inspecting the domain in Google Admin Toolbox I can see that the A
record points to the IP address of the Google Cloud VM, but the CNAME
record shows Record not found!.
If I try to navigate to the domain it doesn't work. The LAMP installation is correct, because if I put the IP address of the VM I can see the Apache welcome page.
Do I need to do anything else to point my domain to my VM's IP in Google Cloud?
The domain was purchased at Google Domains, and there I have entered the DNS indicated by Google Console:
ns-cloud-b1.googledomains.com
ns-cloud-b2.googledomains.com
ns-cloud-b3.googledomains.com
ns-cloud-b4.googledomains.com