Manage user domains
You can distribute objects in a public bucket under the guise of your (user) domain. The user domain is added at the bucket level. You can get an object through a custom domain by following the link.
You can add custom third-level domains and above.
You can add external DNS hosted domains or domains delegated to Selectel DNS hosting.
You must add TLS (SSL) certificates for all user domains.
Add a custom domain from Selectel DNS hosting
You can add a domain to an existing DNS hosting domain zone that is delegated to Selectel DNS hosting, or create a new zone during the domain addition process.
After adding a domain, a resource record for S3 communication (CNAME record) will be automatically created pointing to the public domain of the bucket.A domain can only have one CNAME record.If you already have a CNAME record, it will be applied, no duplicate record will be created.
If the automatically created CNAME record conflicts with other records, you will need to resolve the conflict yourself on your DNS hosting side.
- Optional: create a new domain zone in DNS hosting.
- Add a domain to the bucket.
- Add a TLS (SSL) certificate.
1. Optional: create a new domain zone
- In the control panel, on the top menu, click Products and select S3.
- Go to the Buckets section.
- Open the baketa page → Domains tab.
- In the Your Domains line, click Add.
- In the Domain Binding block, in the Zone field, select New domain zone.
- Enter the name of the domain zone that is the parent for your domain. For example, if you bind the domain
first.example.com
, the domain zone will beexample.com
. - Click Add.
- Delegate the domain.
2. Add a domain to the bucket
-
Make sure you have a domain zone created and a domain delegated.
-
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 baketa page → Domains tab.
-
In the Your Domains line, click Add.
-
In the Domain Binding block:
7.1 Select a domain zone in the Zone field.
7.2 In the Bucket Address field, enter a subdomain in the domain zone.
7.3 Click Bind.
3. Add a TLS (SSL) certificate
Use the TLS (SSL) Certificates for User Domains instruction.
Add custom domain from external DNS hosting
-
Open your DNS hosting control panel.
-
Create a DNS record and specify:
- record type is
CNAME
; - record name — user domain;
- value — domain for DNS records, depends on the pool in which S3 resides.
A domain can have only one CNAME record.
- record type is
-
In the control panel, on the top menu, click Products and select S3.
-
Go to the Buckets section.
-
Open the baketa page → Domains tab.
-
In the Your Domains line, click Add.
-
In the Domain Binding block:
7.1.In the Zone field, select Domain Zone from other DNS hosting.
7.2.In the Bucket Address field, enter the user's domain.
7.3.Click Bind.
Disable custom domain
The custom domain is disabled when you change the bucket type to private or when you delete a domain.
Delete custom domain
- In the control panel, on the top menu, click Products and select S3.
- Go to the Buckets section.
- Open the baketa page → Domains tab.
- In the line with the domain, click .