I'm looking for a way to access the web server by my domain. Is there a way to get access by add a hostname to my vm or have to use DNS? Please give me short tips, where i have to edit/setup my configuration.
my situation
my web server (apache2) running on a compute engine (name: insatnce-one) in GCP. I'm able to access the website by the external IP address from my instance, so everything works fine.
PS: I owned a domain incl. subdomains (example: instance-one.mydomain.com).
Thank each of you, for helping :)
EDIT: my external IP Adress is dynamic, so where i can setup the DynDNS?
To give your web server a permanent IP address, reserve a static external IP address and point to it from your DNS registrar (GoDaddy, hostinger).
Steps:
Reserve a static external IP address for your Compute Engine instance.
Create an A record in your DNS registrar for your subdomain and point it to the reserved external IP address.
More... Cloud DNS Reserve a static external IP address