Yandex Cloud
Search
Contact UsGet started
  • Pricing
  • Customer Stories
  • Documentation
  • Blog
  • All Services
  • System Status
    • Featured
    • Infrastructure & Network
    • Data Platform
    • Containers
    • Developer tools
    • Serverless
    • Security
    • Monitoring & Resources
    • AI for business
    • Business tools
  • All Solutions
    • By industry
    • By use case
    • Economics and Pricing
    • Security
    • Technical Support
    • Start testing with double trial credits
    • Cloud credits to scale your IT product
    • Gateway to Russia
    • Cloud for Startups
    • Center for Technologies and Society
    • Yandex Cloud Partner program
  • Pricing
  • Customer Stories
  • Documentation
  • Blog
© 2025 Direct Cursus Technology L.L.C.
Yandex Cloud CDN
  • Getting started
  • Access management
  • Pricing policy
  • Terraform reference
  • Monitoring metrics for the EdgeCDN provider
  • Monitoring metrics for the Yandex Cloud CDN provider
  • Audit Trails events
  • Release notes
  • Troubleshooting

In this article:

  • Getting started
  • Create a CDN resource
  • Upload your content to the CDN
  • Set up a CNAME record for your domain
  • Test the CDN

Getting started with Yandex Cloud CDN

Written by
Yandex Cloud
Improved by
Danila N.
Updated at November 11, 2025
  • Getting started
  • Create a CDN resource
  • Upload your content to the CDN
  • Set up a CNAME record for your domain
  • Test the CDN

Use an Object Storage bucket to demonstrate how to set up content delivery over a CDN:

  1. Create a CDN resource.
  2. Upload your content to the CDN.
  3. Set up a CNAME record for your domain.
  4. Test the CDN.

Getting startedGetting started

  1. Make sure you have a domain name and can access the DNS settings on your DNS hosting provider’s website. This is typically your domain registrar.

  2. Navigate to the management console and log in to Yandex Cloud or sign up if not signed up yet.

  3. If you do not have a folder yet, create one:

    1. In the management console, select the appropriate cloud from the list on the left.

    2. At the top right, click Create folder.

    3. Give your folder a name. The naming requirements are as follows:

      • It must be from 2 to 63 characters long.
      • It can only contain lowercase Latin letters, numbers, and hyphens.
      • It must start with a letter and cannot end with a hyphen.
    4. Optionally, specify the description for your folder.

    5. Select Create a default network. This will create a network with subnets in each availability zone. Within this network, you will also have a default security group, within which all network traffic will be allowed.

    6. Click Create.

  4. If you do not have an Object Storage bucket yet:

    1. Create a bucket.

    2. Enable public access to the objects in the bucket and the object list.

    3. Upload your content to the bucket.

      Note

      For details on creating a source group and a CDN resource with other source types, see these pages:

      • Creating a resource
      • Creating an origin group

Create a CDN resourceCreate a CDN resource

  1. Navigate to the folder dashboard and select Cloud CDN.

  2. In the CDN resources tab, click Create resource.

  3. Configure the basic CDN resource settings:

    • Under Content:

      • Enable Enable access to content.

      • In the Content query field, select From one origin.

      • In the Origin type field, select Bucket.

        Note

        For details on creating a source group and a CDN resource with other source types, see these pages:

        • Creating a resource
        • Creating an origin group
      • In the Bucket field, select the bucket you created in Object Storage.

      • In the Origin request protocol field, select HTTP.

      • In the Domain name field, specify the primary domain name you will use in your website links to CDN-hosted content, e.g., cdn.example.com.

        Alert

        You cannot change the primary domain name used for content distribution after creating a CDN resource.

    • Under Additional settings:

      • In the Redirect clients field, select Don't use.

      • In the Certificate type field, select Don't use.

      • In the Host header field, select Custom.

      • In the Header value field, specify the domain name from the bucket URL in <bucket_name>.storage.yandexcloud.net format, omitting the schema (http or https). Here is an example:

        my-bucket.storage.yandexcloud.net
        

        Warning

        If the Host header is misconfigured, Object Storage will return errors in response to CDN server requests.

  4. Click Continue.

  5. Under Caching, HTTP headers and methods, and Advanced, leave the default settings. Click Continue.

    Tip

    You can configure these settings later, if required.

Upload your content to the CDNUpload your content to the CDN

Tip

We recommend preloading large content to the CDN, e.g., files larger than 200 MB. This is an optional step. If skipped, the CDN will load the content automatically when a user tries to access it for the first time.

To prefetch content to CDN servers:

  1. On the CDN resource page, navigate to the Content tab.

  2. In the top-right corner, click and select Preload content.

  3. In the File path field, enter the names of the files stored in the bucket, omitting the bucket name. See an example below:

    /index.html
    /static/styles.css
    /static/app.js
    
  4. Click Preload content.

Set up a CNAME record for your domainSet up a CNAME record for your domain

  1. In the Overview tab on the CDN resource page, under DNS settings, copy the generated domain name in 328938ed********.a.yccdn.cloud.yandex.net format.

  2. Navigate to your domain’s DNS settings on your DNS hosting provider’s website.

  3. Edit the relevant CNAME record so that it points to the previously copied URL in the .yccdn.cloud.yandex.net domain. For example, if the domain name you specified when creating your CDN resource is cdn.example.com, you need to create the following CNAME record or use it to replace the current record for cdn:

    cdn CNAME 328938ed********.a.yccdn.cloud.yandex.net.
    

    Note

    Do not use an ANAME resource record with domain names for content distribution; otherwise, the end user will get a response from a CDN server not linked to the user geolocation. The response will always be the same for all users.

Test the CDNTest the CDN

  1. Wait for the DNS records to update. This may take several hours.

  2. Make sure the cdn CNAME record in the DNS server's cache points to the generated URL, e.g., 328938ed********.a.yccdn.cloud.yandex.net.

  3. Open the website in your browser to make sure it is working. Here is an example:

    http://cdn.example.com/index.html
    

Was the article helpful?

Next
All guides
© 2025 Direct Cursus Technology L.L.C.