[Yandex Cloud documentation](../../../index.md) > [Yandex Object Storage](../../index.md) > [Step-by-step guides](../index.md) > Hosting static websites > Support for your own domain

# Custom domain

You can use a custom domain, e.g., `example.com`, to publish your website.

To use a custom domain:

1. [Create](../buckets/create.md) a bucket. 

    {% note warning %}

    The bucket name must be an exact match of your domain, e.g., `example.com`.

    {% endnote %}

1. [Configure](setup.md) the bucket as hosting.
1. On the DNS server, create a public [DNS zone](../../../dns/concepts/dns-zone.md) and a [resource record](../../../dns/concepts/resource-record.md) to link your domain name to the bucket.

   This option is available for buckets with a dot in their name, e.g., `example.com`.

    {% list tabs group=instructions %}

    - Yandex Cloud DNS {#dns}

      {% note warning %}

      Cloud DNS usage is chargeable; for more information, see [Cloud DNS pricing policy](../../../dns/pricing.md).

      {% endnote %}

      1. In the [management console](https://console.yandex.cloud), select a folder.
      1. Navigate to **Object Storage**.
      1. Select the bucket you want to use your own domain for.
      1. In the left-hand panel, select ![image](../../../_assets/console-icons/wrench.svg) **Settings** and go to the **Website** tab.
      1. In **Hosting**, under **Domains in Cloud DNS**, click **Create record**.

          {% note info %}

          Under **Domains in Cloud DNS** in the **Hosting** section, you can only see those domains that were created directly through this interface. Records created in [Cloud DNS](../../../dns/quickstart.md) will not be shown.

          {% endnote %}

      1. In the window that opens, click **Create zone** and select the domain zone that matches the bucket name, e.g., `example.com.`. Click **Create**.
      1. Expand **Additional settings**.
      1. In the **TTL (in seconds)** field, specify the resource record time to live or select a value from the list.
      1. Click **Create**.
      1. Click **Save**.
      
      To gain access to public zone domain names, delegate the domain by specifying the `ns1.yandexcloud.net` and `ns2.yandexcloud.net` server addresses in your domain registrar account.

      Delegating a domain and updating resource records may take a while.

      You can also use Cloud DNSto [create a DNS zone](../../../dns/operations/zone-create-public.md) and [resource record](../../../dns/operations/resource-record-create.md).
      
      {% cut "Example of DNS zone and resource record parameters" %}

      DNS zone parameters:
      * Zone: `example.com.`
      * Type: `Public`

      Resource record parameters:

      | Name          | Type   | TTL | Value                      |
      |--------------|-------|-----|-------------------------------|
      | example.com. | ANAME | 600 | example.com.website.yandexcloud.net |

      [ANAME](../../../dns/concepts/resource-record.md#aname) records enable using second-level domains for hosting. Unlike [CNAME](../../../dns/concepts/resource-record.md#cname) records, they do not restrict the use of other record types in the same zone. 

      {% endcut %}

    - Third-party DNS server {#third-party-dns-server}

      Here is an example of DNS zone parameters:
      * Zone: `example.com.`
      * Type: `Public`
      
      An example of a [CNAME](../../../dns/concepts/resource-record.md#cname) resource record looks like this: 

      ```text
      example.com CNAME example.com.website.yandexcloud.net
      ```

      To use a CNAME resource record, make sure your domain name belongs to at least a third-level domain. This restriction is due to the way CNAME records are handled on DNS hosting platforms. For more information, see [RFC 1912](https://www.ietf.org/rfc/rfc1912.txt), section 2.4.

      Updating resource records may take a while.

    {% endlist %}


1. To make your website available over HTTPS:

    1. (Optional) [Add](../../../certificate-manager/operations/index.md) your own certificate to Certificate Manager or [issue](../../../certificate-manager/operations/managed/cert-create.md) a free-of-charge Let's Encrypt certificate.
       
       {% note info %}

       Certificate Manager usage is free of charge; for more information, see [Yandex Certificate Manager pricing policy](../../../certificate-manager/pricing.md).
       
       {% endnote %}
       
    1. Configure HTTPS by linking a Certificate Manager certificate to your bucket or uploading your own.

    Request redirects from HTTP to HTTPS are enabled automatically once you set up HTTPS access to a bucket. No other settings are required.

    
    {% note alert %}
    
    Starting August 1, 2025, Object Storage no longer supports the TLS protocol versions 1.0 and 1.1.
    
    For more information, see [TLS protocol](../../concepts/tls.md).
    
    {% endnote %}



Once you successfully complete all the steps, you will have access to objects via links in `<domain_name>/<object_key>` format.

### See also {#see-also}

* [How do I fix an incorrect MIME type of objects when uploading them to a bucket?](../../qa.md#qa-mime-type)
* [Setting up hosting](setup.md)
* [Support for multiple domain names](multiple-domains/index.md)
* [Configuring HTTPS](certificate.md)