Custom domain
You can use a custom domain, e.g., example.com
, to publish your website.
To use a custom domain:
-
Create a bucket. Name it the same as your domain, e.g.,
example.com
. -
Configure the bucket as hosting.
-
On the DNS server, create a public DNS zone and a resource record to link your domain name to the bucket.
This option is available for buckets with a dot in their name, e.g.,
example.com
.Yandex Cloud DNSThird-party DNS serverWarning
Cloud DNS usage is chargeable; for more information, see Cloud DNS pricing policy.
-
In the management console
, select Object Storage from the list of services and go to the bucket you want to use your custom domain for. -
In the left-hand panel, select
Settings and go to the Website tab. -
In Hosting, under Domains in Cloud DNS, click Create record.
Note
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 will not be shown.
-
In the window that opens, click Create zone and select the domain zone that matches the bucket name, e.g.,
example.com.
. Click Create. -
Expand Additional settings.
-
In the TTL (in seconds) field, specify the resource record time to live or select a value from the list.
-
Click Create.
-
Click Save.
To gain access to public zone domain names, delegate the domain by specifying the
ns1.yandexcloud.net
andns2.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 and resource record.
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 records enable using second-level domains for hosting. Unlike CNAME records, they do not restrict the use of other record types in the same zone.
Here is an example of DNS zone parameters:
- Zone:
example.com.
- Type:
Public
An example of a CNAME resource record looks like this:
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
, section 2.4.Updating resource records may take a while.
-
-
To make your website available over HTTPS:
-
(Optional) Add your own certificate to Certificate Manager or issue a free-of-charge Let's Encrypt certificate.
Note
Certificate Manager usage is free of charge; for more information, see Pricing for Yandex Certificate Manager.
-
Configure HTTPS by linking a certificate from Certificate Manager 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.
Alert
Starting July 1, 2025, Object Storage will discontinue support for TLS protocol versions 1.0 and 1.1.
For more information, see TLS protocol.
-
Once you have successfully completed all steps, the objects will be accessible through links in <domain_name>/<object_key>
format.