How to Manage Custom Domain for Vultr CDN Push Zones

Updated on April 3, 2025

Custom domain functionality in Vultr CDN Push Zones allows you to serve your content through a domain name of your choice, providing a consistent and branded experience for your users. By configuring a custom domain, you can enhance your content delivery with a personalized URL, improving trust and recognition for your brand. This feature ensures that your content is delivered efficiently while maintaining a seamless integration with your existing domain setup.

Note
To use a custom domain (or vanity domain) with your Vultr CDN Push Zone, you need to create a CNAME DNS record for your domain through your domain provider. This CNAME record should point to the default CDN domain that is automatically generated when you create your Vultr CDN Push Zone subscription. After setting up the CNAME record, make sure that the DNS changes have propagated successfully before configuring your custom domain in the Vultr CDN settings.

Follow this guide to configure a custom domain for Vultr CDN Push Zones on your Vultr account using the Vultr Customer Portal or API.

  • Vultr Customer Portal
  • Vultr API
  1. Navigate to Products, click CDN, and then click Push Zones.
  2. Click your target CDN Push Zone subscription to open its management page.
  3. Click Custom Domain.
  4. Provide the Custom Domain and Domain-validated Certificate(SSL/TLS) and Private Key files.
  5. Click Update Custom Domain.
  1. Send a GET request to the List CDN Push Zones endpoint and note the target Push Zone subscription's ID.

    console
    $ curl "https://api.vultr.com/v2/cdns/push-zones" \
        -X GET \
        -H "Authorization: Bearer ${VULTR_API_KEY}"
    
  2. Send a PUT request to the Update CDN Push Zone endpoint to update the custom domain.

    console
    $ curl "https://api.vultr.com/v2/cdns/push-zones/{pushzone-id}" \
        -X PUT \
        -H "Authorization: Bearer ${VULTR_API_KEY}" \
        -H "Content-Type: application/json" \
        --data '{
            "vanity_domain": "{custom_vanity_domain}",
            "ssl_cert": "BASE64_ENCODED_SSL_CERT_CONTENT",
            "ssl_cert_key": "BASE64_ENCODED_SSL_KEY_CONTENT"
        }'
    

Comments

No comments yet.