Your own domain
To publish a website, you can use your own domain, such as example.com
.
To support your own domain:
-
Create a bucket. Give it the same name as your domain, such as
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:
Yandex Cloud DNSThird-party DNS server- In the management console, go to the bucket you want to use your own domain for.
- Go to Website.
- In Hosting, under Domains in Cloud DNS, click Create record.
- In the window that opens, click Create zone and select a domain zone that corresponds to the bucket name, such as
example.com
. Click Create. - Open 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 get access to public zone domain names, delegate the domain. To do this, in your domain registrar's account, specify the server addresses:
ns1.yandexcloud.net
andns2.yandexcloud.net
.It may take some time to delegate the domain and update the resource records.
You can also create a DNS zone and a resource record using Cloud DNS tools. For more information, see the step-by-step guide for Cloud DNS.
Example of DNS zone and resource record parametersDNS 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 allow second-level domains to be used for hosting and, unlike CNAME records, do not restrict the use of other record types in the same zone with them.
Example of DNS zone parameters:
- Zone:
example.com
. - Type:
Public
.
CNAME resource record example:
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 has to do with how CNAME records are processed on DNS hosting. For more information, see section 2.4 of RFC 1912.
Updating the resource records may take some time.
-
To make your website available over HTTPS:
Once you have successfully completed all steps, the objects will be accessible through links in <domain_name>/<object_key>
format.