[Yandex Cloud documentation](../../../index.md) > [Yandex Compute Cloud](../../index.md) > [Tutorials](../index.md) > Assigning a domain name to a web server VM > Overview

# Assigning a domain name to a web server VM


In this tutorial, you will assign your own domain name to a [Yandex Compute Cloud](../../index.md) web server [VM](../../concepts/vm.md).

To create a VM, you will use a public [LAMP](https://yandex.cloud/en/marketplace/products/yc/lamp) image with a pre-installed [Apache HTTP server](https://httpd.apache.org/). Alternatively, you can use a public [LEMP](https://yandex.cloud/en/marketplace/products/yc/lemp) image with an [NGINX](https://www.nginx.com/) web server.

As an example, we will use the `example.com` domain name mapped to your VM IP address through [DNS records](../../../dns/concepts/resource-record.md) in [Yandex Cloud DNS](../../../dns/index.md). 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:

* [Yandex Cloud management console, CLI, API](console.md): Use one of these methods to create your infrastructure step by step.
* [Terraform](terraform.md): Streamline creating and managing your resources with the _infrastructure as code_ (IaC) approach. Download a Terraform configuration example from GitHub and deploy your infrastructure using the [Yandex Cloud Terraform provider](../../../terraform/index.md).

#### See also {#see-also}

* [Cloud DNS integration with Compute Cloud](../../../dns/concepts/compute-integration.md)