CNAME 记录

Aliases one hostname to another — the resolver follows it transparently.

CNAME 记录是什么?

A CNAME (Canonical Name) record makes one hostname an alias of another. Resolvers chase the chain until they find an A/AAAA and return that. It is the standard way to point custom subdomains at CDN or PaaS hostnames (Cloudflare, Vercel, Netlify, AWS).

区域文件示例

www.example.com.    300    IN    CNAME    example.netlify.app.

常见用例

  • Point www → apex without managing IPs.
  • Custom domain → SaaS provider hostname (Vercel, Netlify, Heroku, GitHub Pages).
  • Custom CDN endpoint → CloudFront / Cloudflare / Bunny.
  • Service decoupling — change the upstream by editing one CNAME.

常见坑

A CNAME at the apex breaks the rest of the zone (MX, TXT, NS, etc.). Use ALIAS / ANAME / flattening at apex. Also: never CNAME a host that itself has MX or NS records.

查询 DNS 记录 →

相关记录类型

安全提示

正在使用默认密码?使用 NordVPN 加密保护您的网络。