Issue with DNS Configuration for Mapping Domain to Google Cloud Run

Hi,

I am trying to map my domain which is currently managed on Vercel, to a deployment on Google Cloud Run. Google Cloud Run has provided me with the following A records for its load balancer:

  • 216.239.32.21
  • 216.239.34.21
  • 216.239.36.21
  • 216.239.38.21

However, when I try to add these DNS records to my domain’s DNS settings, Vercel refuses the changes and inform that I should use the default A 76.76.21.21 instead which keep mapping my domain on Vercel.

Could you please advise on how I can correctly configure my DNS to point the domain name to my Google Cloud Run deployment? Do I need to make any specific adjustments or remove existing DNS entries to resolve this conflict? The Vercel default A 76.76.21.21 cannot be removed.

Thank you for your help!

The domain troubleshooting guide can help with most custom domain configuration issues. You might be able to use that guide to solve it before a human is available to help you. Then you can come back here and share the answer for bonus points.

You can also use v0 to narrow down the possibilities.

I have read the domain troubleshooting guide but could not find any help for my issue.

Hello,

Can you tell us more about your setup? Sounds like you are trying to setup same domain ocdserenity.com to run application on both GCR and Vercel. or are you trying to configure API or something?

Hello,

Thank you for your reply!

I was previously using Vercel as both my development and production environments, with my domain name (ocdserenity.com and www.) linked to the generic Vercel URL. Recently, I moved my production environment to Google Cloud Run but wish to keep my development environment on Vercel, as it remains the best option for my needs.

Now, I need to link my domain (ocdserenity.com and www.) to the generic URL provided by Google Cloud Run and unlink it from the generic URL on Vercel. To achieve this, I added the four IP addresses requested by Google Cloud Run to my DNS settings in Vercel’s dashboard. However, it seems Vercel is rejecting these changes, preventing Google Cloud Run from completing the domain mapping.

Thanks. You should be able to setup staging.ocdserenity.com or any subdomain and link with preview domain. this way, you can use ocdserenity.com and point to Google Cloud run server. Is it not working?

Hi,

I followed your suggestion and linked staging.ocdserenity.com to a different GitHub branch than my production branch, but this did not resolve the issue.

When I add even a single Google Load Balancer IP address to the DNS, Vercel rejects it. I also attempted to add a CNAME record for the www subdomain, but that was also rejected.

It does not allow me to remove this 2 Vercel records :

And replace them by those ones:

Here is how the errors looks like:

Could you clarify if Vercel has any specific limitations or restrictions on adding IP addresses or CNAME records to the DNS configuration? Any further guidance would be appreciated.

Thank you.
Olivier

I don’t see staging.ocdserenity.com added to your project or deployment. Can you share the deploymenr / project where you linked?

Could you elaborate? I can see that your www (www.ocdserenity.com) and apex domain (ocdserenity.com ) still pointing to Vercel server not google server:

Note you need to wait few hours to reflect due to DNS propagation

It seems the issue has been resolved, even though the Vercel DNS page continued to display “invalid configuration.”

The delay was due to the SSL certificate taking several hours to be applied by Google. I realize now I was just a bit too impatient.

Thank you for your assistance!
Olivier

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.