---
title: "Manage user domains"
sidebar_label: "Manage user domains"
description: "How to manage user domains: add domains from Selectel DNS hosting and external DNS providers, disable, and delete domains"
sidebar_position: 3
---

import Formbricks from '@theme/MDXComponents/Formbricks'
import TrashIcon from '@selectel/docux/icons/trash'
import UserDomains from '@site/i18n/en/docusaurus-plugin-content-docs/current/_partials/s3/user-domains.mdx'

# Manage user domains

<UserDomains />

## Add a user domain from Selectel DNS hosting \{#add-selectel-dns-domain}

You can add a domain to an existing DNS hosting zone that is delegated to Selectel DNS hosting, or create a new zone while adding the domain.

After adding a domain, a resource record for S3 integration (CNAME record) will be automatically created, pointing to the public bucket domain. A domain can only have one CNAME record. If you already have a CNAME record, it will be used, and no duplicate record will be created.

If the automatically created CNAME record conflicts with other records, you will need to resolve the conflict yourself in your DNS hosting.

1. Optional: [create a new domain zone in DNS hosting](#create-new-domain-zone).
2. [Add a domain to the bucket](#add-domain-to-bucket).
3. [Add a TLS (SSL) certificate](#add-tls-certificate).

### 1. Optionally: create a new DNS zone \{#create-new-domain-zone}

1. In [the Control Panel](https://my.selectel.ru/storage/), from the top menu, click **Products** and select **S3**.
2. Go to the **Buckets** section.
3. Open the bucket page → the **Domains** tab.
4. In the **Custom domains** row, click **Add**.
5. In the **Domain linking** section, in the **Zone** field, select **New domain zone**.
6. Enter the name of the domain zone that is parent to your domain. For example, if you are linking the `first.example.com` domain, the domain zone will be `example.com`.
7. Click **Add**.
8. [Delegate the domain](/dns-hosting/zones/delegate-zone.mdx).

### 2. Add the domain to the bucket \{#add-domain-to-bucket}

1. Make sure you have [created a domain zone](/dns-hosting/zones/create-zone.mdx) and [delegated the domain](/dns-hosting/zones/delegate-zone.mdx).
2. In [the Control Panel](https://my.selectel.ru/storage/), from the top menu, click **Products** and select **S3**.
3. Go to the **Buckets** section.
4. In [the Control Panel](https://my.selectel.ru/storage/), go to **S3** → **Buckets**.
5. Open the bucket page → the **Domains** tab.
6. In the **Custom domains** row, click **Add**.
7. In the **Domain linking** section:

   7.1. In the **Zone** field, select a domain zone.

   7.2. In the **Bucket address** field, enter a subdomain in the domain zone.

   7.3. Click **Link**.

### 3. Add a TLS (SSL) certificate \{#add-tls-certificate}

Use the [TLS (SSL) certificates for custom domains](/s3/manage/tls-ssl-certificates.mdx) instructions.

## Add a user domain from external DNS hosting \{#add-external-dns-user-domain}

1. Open the control panel of your DNS hosting.

2. Create a DNS record and specify:

   * record type — `CNAME`;
   * record name — the user domain;
   * value — [domain for DNS records](/s3/manage/domains.mdx#dns-domains), depends on the [pool](/infrastructure/locations.mdx#pool) where S3 is located.

   A domain can have only one CNAME record.

3. In [the Control Panel](https://my.selectel.ru/storage/), from the top menu, click **Products** and select **S3**.

4. Go to the **Buckets** section.

5. Open the bucket page → the **Domains** tab.

6. In the **Custom domains** row, click **Add**.

7. In the **Domain linking** section:

   7.1. In the **Zone** field, select **Domain zone from another DNS hosting**.

   7.2. In the **Bucket address** field, enter the custom domain.

   7.3. Click **Link**.

8. [Add a TLS (SSL) certificate](/s3/manage/tls-ssl-certificates.mdx).

## Disable a user domain \{#disable-user-domain}

A custom domain is disabled when changing the bucket type to private or when [deleting the domain](#delete-user-domain).

## Delete a user domain \{#delete-user-domain}

1. In [the Control Panel](https://my.selectel.ru/storage/), from the top menu, click **Products** and select **S3**.
2. Go to the **Buckets** section.
3. Open the bucket page → the **Domains** tab.
4. In the domain row, click <TrashIcon />.

<Formbricks />
