Skip to main content
Use a custom hostname to serve CDN content from your own domain instead of the default bunny.net URL.
1

Add the hostname to your pull zone

  1. Open your pull zone in the dashboard
  2. Locate the Hostnames panel in the General section
  3. Enter your custom domain (e.g., cdn.yourdomain.com)
  4. Click Add hostname
Add custom hostname
The hostname appears in the Linked Hostnames list.
2

Copy the CNAME record

Copy the CNAME record value shown below the hostname field. You’ll need this for the next step.
Copy custom hostname CNAME
3

Update your DNS settings

Add a CNAME record at your DNS provider:
  1. Log in to your DNS provider (Cloudflare, Route 53, or similar)
  2. Create a new CNAME record:
    • Name/Host: Your subdomain (e.g., cdn)
    • Type: CNAME
    • Value: The CNAME from step 2 (e.g., yourzone.b-cdn.net)
    • TTL: 3600 seconds or lower
On Cloudflare, disable the proxy option (orange cloud icon). Proxying interferes with DNS resolution and prevents your custom domain from working with bunny.net.
4

Wait for DNS propagation

Save the DNS record. Your domain connects to bunny.net once DNS propagates, typically within a few minutes to an hour.
5

Enable SSL

Click Verify & Activate SSL to get a free Let’s Encrypt certificate for your custom hostname.
Verify and activate SSL
If you skip SSL verification initially, find your hostname in the Linked Hostnames section and click Enable to activate a free certificate or upload your own.
Enable custom hostname SSL