DigitalApplications

Connecting a Domain to a Website in Yandex Cloud

Delegating a domain from Reg.ru to Yandex Cloud DNS, configuring Object Storage, HTTPS, and redirecting from www.

In this guide, we will explain how to configure your website domain and delegate it from your registrar. We will use the Reg.ru control panel as an example, but you can apply the same steps with other registrars as well. We will move the domain to Yandex Cloud and configure it in the DNS service.

Goal

  • Delegate the domain through NS records
  • Configure the domain in Yandex Cloud DNS
  • Create an SSL certificate
  • Verify domain ownership
  • Connect the domain to S3 static hosting
  • Configure redirection from the www domain

Delegating the Domain Through NS Records

  1. Sign in to your registrar account, for example, Reg.ru if you registered the domain there.
  2. Select the DNS servers and zone management section, then click change.
  3. Select custom DNS server list and specify the following Yandex NS servers:
ns1.yandexcloud.net
ns2.yandexcloud.net

Save the changes and wait for the information to update. This usually takes about an hour.

Configuring the Domain in Yandex Cloud DNS

Open your cloud and select the Cloud DNS service. Then click Create zone and add your domain.

Creating an SSL Certificate

In Yandex Cloud, find the Certificate manager service and click Add certificate. Select Let's Encrypt certificate. Enter the domain for which the certificate will be issued, for example:

www.dappics.com
dappics.com

Note that a domain with www and a domain without www are treated as two different domains. That is why you need to specify both so that the SSL certificate is issued for both domains at once.

Verifying Domain Ownership

To complete the certificate issuance process, you need to verify domain ownership using TXT records in the domain. In Yandex Cloud, simply click Create record.

Connecting the Domain to S3 Static Hosting

After you have successfully configured the domain and received the certificate, you can connect static hosting. First, select the Object Storage service and create two new buckets with names matching your domain, for example:

www.dappics.com
dappics.com

You should now have two separate buckets.

Open the settings and allow read access to objects for all users. When you specify names that match your domain in Cloud DNS, Yandex Cloud links them automatically.

  1. Select the first bucket and open Settings, then go to Website, then Hosting. Select the corresponding domain from Cloud DNS.
    • Repeat the procedure for the second domain with www.
  2. Then select the first bucket and go to Security, then HTTPS, then Configure. Select the required certificate.
    • Repeat the same steps for the second domain with www.

Configuring Redirection from the www Domain

Now you need to make sure users can visit your website both with and without www. Your website will be available in two versions: with www and without www. You can choose the version you prefer. Usually, the version without www is selected.

For example, in the address bar of any browser, you will see only the website name without www.

As mentioned earlier, a domain with www and a domain without www are two different names. It is important that they lead to the same version of the website. In the following steps, we will use the version without www. To configure redirection:

  1. Select the bucket with www.yourdomain.
  2. Open settings, hosting, redirection.
  3. Select the HTTPS protocol and enter your domain without www in the domain field.

Result

As a result, you will have a static website with a configured domain name, correct redirection, and a secure HTTPS connection.

Author: Dmitry Girsky-Updated: June 20, 2026