mywebsite.com can configure a CDN resource for static content with the custom domain cdn.mywebsite.com. Static assets are then delivered with URLs like cdn.mywebsite.com/sample.jpg.
Any domain or subdomain for which DNS records can be edited is valid as a custom domain. For CNAME-based resources, a third-level domain is typical, e.g. cdn.mywebsite.com. For CDN resources using DNS delegation to Gcore, a second-level domain is used, e.g. mywebsite.com.
Set a custom domain (for static CDN resources)
The instructions below apply to CNAME-based CDN resources. For CDN resources using DNS delegation to Gcore, the custom domain is set via nameserver change at the domain registrar — CDN resource creation covers both DNS delegation and CNAME-based setup.- During CDN resource creation, enter the domain or subdomain name in the Add domain* section. To add multiple custom domains, click Add CNAME.

- Click Create. The Resource was created page appears, showing the CNAME value assigned to the resource (formatted as
cl-XXXX.gcdn.co) along with step-by-step DNS setup instructions and an example in BIND zone file format.

- At the DNS provider’s website, create a CNAME record for the custom domain pointing to the value shown on the Resource was created page:
cl-XXXX.gcdn.co with the value specific to the account.
If multiple custom domains were added in step 1, create CNAME records for all of them.
Verify the record with dig or the Gcore DNS lookup tool.
Check the DNS setup status
The Setup guide in resource settings verifies that the DNS configuration was completed successfully and identifies any issues.- Open the settings of the CDN resource.
- Click Setup guide.

- A 3-step wizard opens. Navigate to Check DNS setup status and click the button to run the DNS check.


Specify additional domains (only for static CDN resources)
Additional custom domains can be added to an existing CDN resource at any time through the resource settings.- In the CDN resource list, click the CNAME value of the resource to configure.

- In the Custom domain (to create a CNAME record) section, click + and enter the domain name.

- Click Save changes at the bottom of the page.
For each additional domain, create a CNAME record following the instructions above.