[Yandex Cloud documentation](../../../index.md) > [Tutorials](../../index.md) > Application solutions > Creating a website > 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](../../../compute/index.md) web server [VM](../../../compute/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:

* [Management console, CLI, or API](console.md): Use the Yandex Cloud management console, CLI, or API to create your infrastructure step by step.
* [Terraform](terraform.md): 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](../../../terraform/index.md).

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

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