[Yandex Cloud documentation](../../../index.md) > [Yandex Cloud DNS](../../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](../../../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](../../concepts/resource-record.md) in [Yandex Cloud 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, 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 deploy your infrastructure using the [Yandex Cloud Terraform provider](../../../terraform/index.md).

#### Useful links {#see-also}

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