Yandex Cloud
  • Services
  • Solutions
  • Why Yandex Cloud
  • Blog
  • Pricing
  • Documentation
  • Contact us
Get started
Language / Region
Yandex project
© 2023 Intertech Services AG
Yandex Object Storage
  • Getting started
  • Step-by-step guides
    • All guides
    • Buckets
    • Objects
    • Static website hosting
      • Hosting setup
      • Support for your own domain
      • Support for multiple domain names
      • Configuring HTTPS
  • Tutorials
  • Concepts
  • Tools
  • API reference
  • Access management
  • Pricing policy
  • Questions and answers
  1. Step-by-step guides
  2. Static website hosting
  3. Support for your own domain

Your own domain

Written by
Yandex Cloud

To publish a website, you can use your own domain, such as example.com.

To support your own domain:

  1. Create a bucket. Give it the same name as your domain, such as example.com.

  2. Configure the bucket as hosting.

  3. On the DNS server, create a public DNS zone and a resource record to link your domain name to the bucket:

    Yandex Cloud DNS
    Third-party DNS server
    1. In the management console, go to the bucket you want to use your own domain for.
    2. Go to Website.
    3. In Hosting, under Domains in Cloud DNS, click Create record.
    4. 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.
    5. Open Additional settings.
    6. In the TTL (in seconds) field, specify the resource record time to live or select a value from the list.
    7. Click Create.
    8. 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 and ns2.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 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 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.

  4. To make your website available over HTTPS:

    1. (Optional) Add your own certificate to Certificate Manager or issue a free-of-charge Let's Encrypt certificate.

    2. Configure HTTPS by linking a certificate from Certificate Manager to your bucket or uploading your own.

Once you have successfully completed all steps, the objects will be accessible through links in <domain_name>/<object_key> format.

Was the article helpful?

Language / Region
Yandex project
© 2023 Intertech Services AG