How to map a domain name to a load balancer in google cloud platform?

7,364

It seems to take time for gcp to know how to handle the new domain name. About some 15 minutes after the additional of the new A record, the domain name www.mycompany.com starts to work. The 404 screen is gone

Share:
7,364

Related videos on Youtube

Jason Lee
Author by

Jason Lee

Updated on September 18, 2022

Comments

  • Jason Lee
    Jason Lee over 1 year

    I have successfully set up a load balancer in google cloud platform

    enter image description here

    If I use the IP as shown in the image, I can test and verify that the set up is working as I planned.

    Now I would like to map a domain name to the IP. I want to use www.mycompany.com. I have already created a A record in my DNS to point www to 1.2.3.4. However the domain name gives a 404 error.

    enter image description here

    I am sure I need to associate this new domain name to the IP address.

    There is no obvious place to do it in load balanceing or external IP addresses screen.

    Where can I do it?

  • Carlos
    Carlos over 7 years
    Since GCP is a distributed system, certainly some changes might take some time to propagate. Nevertheless, when dealing with DNS records there is also a propagation delay