7

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?

1
  • 1
    GFE will return an default 404 page if you are trying to access your frontend using port you didn't assigned to it. In your case you probably trying to access http://www.mycompany.com. (port 80). Instead you should access https://www.mycompany.com.
    – Tom Lime
    Nov 18, 2019 at 9:31

1 Answer 1

7

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

1
  • 1
    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
    – Carlos
    Jan 27, 2017 at 18:27

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .