1
votes

I've recently converted from using traditional registrars and started using Google for website hosting and domain registration. I've followed various guides and am currently infuriated at how hard it is to connect my domain owned by google to the google cloud instance while retaining email forwarding.

In order to point the domain to my VM in requires changing the nameservers. Once the name servers are changed then email forwarding stops working. I'm stuck in an infuriating loop. There has to be a better way.

Here's the process I followed

Google Domain > ExampleSite.com Google Domain > [email protected] (email forwarding to default gmail account)

Google Cloud > Create Wordpress VM instance Google Cloud > Add DNS Records

Google Domains > Update Nameservers with info from Google Cloud DNS

Works, but email forwarding is immediately disabled unless I revert to default google nameservers, which stops the domain from pointing to the VM.

Please. Anyone. Help with a better way of doing this. Please. I'm so frustrated.

Thank you.

1
Are you using Cloud DNS to point your domain to your Google instance? I think this is the easiest way to do it - grimmjow_sms

1 Answers

1
votes

The reason why email forwarding breaks that your Cloud DNS is not configured with the necessary MX records. Here are the two possible solutions:

  1. Add the MX records described here to your Cloud DNS configuration.

  2. Revert back to Google Domain's name servers, which has the MX records built in. You can then set up your website by creating an A Record for the @ record and www subdomain record to point to your GCE's IP address.

If all you want to do is to host a website I recommend (2), as it saves you the cost and complexity of having Cloud DNS as well as Google Domains.