Manage user domains
Objects in a public bucket can be distributed under your own (custom) domain. A custom domain is added at the bucket level. You can obtain an object via a custom domain using a link.
You can add custom third-level domains and higher.
You can add domains from external DNS hosting providers or domains delegated to Selectel DNS hosting.
For all custom domains, you must add TLS (SSL) certificates.
Add a user domain from Selectel DNS hosting
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 the domain, a resource record to connect to S3 (CNAME record) will be automatically created, pointing to the public domain of the bucket. A domain can have only one CNAME record. If you already have a CNAME record, it will be applied, 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. Optionally: create a new DNS zone
- In the control panel, on the top menu, click Products and select S3.
- Go to the Buckets section.
- Open the bucket page → Domains tab.
- In the Custom domains row, click Add.
- In the Domain binding block, in the Zone field, select New DNS zone.
- Enter the name of the DNS zone that is the parent for your domain. For example, if you are binding the domain
first.example.com, the DNS zone will beexample.com. - Click Add.
- Delegate the domain.
2. Add the domain to the bucket
-
Ensure that you have created a DNS zone and delegated the domain.
-
In the control panel, on the top menu, click Products and select S3.
-
Go to the Buckets section.
-
In the control panel, go to S3 → Buckets.
-
Open the bucket page → Domains tab.
-
In the Custom domains row, click Add.
-
In the Domain binding block:
7.1. In the Zone field, select a DNS zone.
7.2. In the Bucket address field, enter a subdomain in the DNS zone.
7.3. Click Bind.
3. Add a TLS (SSL) certificate
Use the TLS (SSL) Certificates for Custom Domains guide.
Add a user domain from external DNS hosting
-
Open the control panel of your DNS hosting.
-
Create a DNS record and specify:
- record type —
CNAME; - record name — the user domain;
- value — the domain for DNS records, depends on the pool where S3 is located.
A domain can have only one CNAME record.
- record type —
-
In the control panel, on the top menu, click Products and select S3.
-
Go to the Buckets section.
-
Open the bucket page → Domains tab.
-
In the Custom domains row, click Add.
-
In the Domain binding block:
7.1. In the Zone field, select DNS zone from another DNS hosting.
7.2. In the Bucket address field, enter the user domain.
7.3. Click Bind.
Disable a user domain
The user domain is disabled when the bucket type is changed to private or when the domain is deleted.
Delete a user domain
- In the control panel, on the top menu, click Products and select S3.
- Go to the Buckets section.
- Open the bucket page → Domains tab.
- In the row with the domain, click .