Assigning a domain name to a web server VM
Written by
Updated at February 27, 2025
In this tutorial, you will assign your own domain name to a Yandex Compute Cloud web server VM.
To create a VM, you will use a public LAMP image with a pre-installed Apache HTTP server
As an example, we will use the example.com
domain name mapped to your VM IP address through DNS records in Yandex Cloud DNS. You can register your domain name at any domain name registrar.
You can use one of the following tools to create an infrastructure for assigning a domain name to your web server VM:
- Management console, CLI, or API: Use the Yandex Cloud management console, CLI, or API to create your infrastructure step by step.
- Terraform: Streamline creating and managing your resources using the infrastructure as code (IaC) approach. Download a Terraform configuration example from the GitHub repository and then deploy the infrastructure using the Yandex Cloud Terraform provider
.