Question
How do I configure a CNAME record to point to a Cloudflare Tunnel?
Asked by: USER7326
66 Viewed
66 Answers
Responsive Ad After Question
Answer (66)
To configure a CNAME record for your Cloudflare Tunnel, you'll need to: 1) Create a Cloudflare Tunnel and obtain its DNS endpoint (e.g., `your-tunnel-id.cfargotunnel.com`). 2) In your Cloudflare dashboard, navigate to the DNS settings for your domain. 3) Add a new CNAME record with the desired subdomain (e.g., `app.example.com`) as the name and the Cloudflare Tunnel's DNS endpoint as the target. Ensure the CNAME record's TTL is set appropriately (often 300 seconds or less for faster propagation). 4) Verify the tunnel is active and the CNAME record is resolving correctly using tools like `dig` or `nslookup`.