Yandex Cloud
Search
Contact UsGet started
  • Blog
  • Pricing
  • Documentation
  • All Services
  • System Status
    • Featured
    • Infrastructure & Network
    • Data Platform
    • Containers
    • Developer tools
    • Serverless
    • Security
    • Monitoring & Resources
    • ML & AI
    • Business tools
  • All Solutions
    • By industry
    • By use case
    • Economics and Pricing
    • Security
    • Technical Support
    • Customer Stories
    • Cloud credits to scale your IT product
    • Gateway to Russia
    • Cloud for Startups
    • Education and Science
    • Yandex Cloud Partner program
  • Blog
  • Pricing
  • Documentation
© 2025 Direct Cursus Technology L.L.C.
Yandex Object Storage
    • All tutorials
      • Setting up hosting
      • Support for your own domain
      • Support for multiple domain names
      • Configuring HTTPS
  • Terraform reference
  • Monitoring metrics
  • Audit Trails events
  • Bucket logs
  • Release notes
  • FAQ
  1. Step-by-step tutorials
  2. Hosting static websites
  3. Support for multiple domain names

Multiple domain name support for a website

Written by
Yandex Cloud
Improved by
Tania L.
Updated at February 21, 2025

Note

This guide describes how to set up support for a website's primary domain name and its subdomain, e.g., example.com and www.example.com.
To set up an additional domain, e.g, example2.com, create a bucket with the same name. Next, configure hosting for this bucket and specify the parameters for redirects to the primary domain.

To enable multiple domain name support for your website, e.g., example.com and www.example.com:

  1. Create a bucket. Give it one of the domain names, e.g., www.example.com.

  2. Configure the bucket as hosting.

  3. Link the domain name, e.g., www.example.com, and the bucket.

  4. On the DNS server, add another resource record to link one more domain name, e.g., example.com, and the bucket:

    This option is available for buckets with a dot in their name, e.g., example.com.

    Yandex Cloud DNS
    Third-party DNS server

    Create a resource record in Cloud DNS with the following parameters:

    Name Type TTL Value
    example.com. ANAME 600 www.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.

    Updating resource records may take a while.

    An example of a CNAME resource record looks like this:

    example.com CNAME www.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.

If for some reason you cannot or do not want to create another resource record, you can do the following:

  1. Create a VM with a public IP address.
  2. Link example.com to the VM public IP address.
  3. Set up all required aliases on the DNS server side.
  4. Install a web server on the VM and configure a redirect to the Object Storage bucket.

Was the article helpful?

Previous
Support for your own domain
Next
Configuring HTTPS
© 2025 Direct Cursus Technology L.L.C.