# CNAME record

> A DNS record that points one hostname at another, which is how a custom domain is attached to a hosted service.

_Updated November 23, 2026_

To serve `app.yourdomain.com` from a platform, you add a CNAME pointing it at the hostname the platform gives you; the platform then issues a certificate for it. An apex domain (`yourdomain.com`) needs flattening or an ALIAS record, because the DNS standard does not allow a CNAME there alongside other records.

## Keep reading

- [Custom domain](https://envhaven.com/glossary/custom-domain)
- [Wildcard DNS](https://envhaven.com/glossary/wildcard-dns)
- [Reverse proxy](https://envhaven.com/glossary/reverse-proxy)

Source: https://envhaven.com/glossary/cname-record
