I have deployed my application in google cloud, and exposed it to access it outside, but I can only access it using IP address and port number.
So, I purchased a domain in www.ionos.co.uk, and created a public zone in the google cloud. After adding the record set, I got the name server details, which I have added at www.ionos.co.uk.
Before the DNS setup, I was getting a different page, and once I set the name server in the domain site, I started getting an error krmanish.com’s server IP address could not be found.
I contacted ionos, they said the name server is configured correctly, and the request is going to that server. I don't know how to resolve the error.
After you have set up your server, you should map your own domain name to your site. It seems like your domain name is not pointing to the IP address of the VM. If you want complete control of your own DNS system, you can use Google Cloud DNS to serve as your domain name service (DNS) provider. If you need instructions that are specific to Cloud DNS, please see this link.
If you use separate providers for registration and DNS, make sure that your domain name registrar, has the correct name servers associated with your domain. Please see this [link] for steps to configure your Domain name.