大网数据广告活动
服务器运维问答

Can a CNAME record point to a domain handled by another DNS server?

· 52CE 我爱测

Assume a CNAME record pointing to a domain name that is handled by a different server than the one the CNAME record resides on. For example domain aaaaaaaa.com has authoritative name server dns.aisp.net its zone file contains rec…

问题原文

原帖链接 · fgrieu · CC BY-SA 3.0

Assume a CNAME record pointing to a domain name that is handled by a different server than the one the CNAME record resides on. For example

  • domain aaaaaaaa.com has authoritative name server dns.aisp.net
  • its zone file contains record www 7200 IN CNAME www.bbbbbbbb.com
  • domain bbbbbbbb.com has authoritative name server dns.bisp.org
  • its zone file contains record www 7200 IN A 222.222.222.222

Is it fine that dns.aisp.net is not the authoritative domain server for bbbbbbbb.com pointed to by the CNAME record, and contains no information about bbbbbbbb.com or www.bbbbbbbb.com? Will it prevent any modern software/browser/OS from accessing www.aaaaaaaa.com? I can restrict to http and https, if that helps.

已采纳解答

原帖链接 · Rex · CC BY-SA 3.0

Is it fine that dns.aisp.net is not the authoritative domain server for bbbbbbbb.com pointed to by the CNAME record, and contains no information about bbbbbbbb.com or www.bbbbbbbb.com?

Yes. This is fine.

Will it prevent any modern software/browser/OS from accessing www.aaaaaaaa.com?

No.

As HBruijn mentions in his comment, the CNAME can point to anywhere. If you owned the domain example.com, you could create a CNAME for notmydomain which points to www.example.org which you don't own/manage and users pointing their browser to notmydomain.example.com would connect to www.example.org

摘自公开归档,保留原文语言,版式经整理,外部媒体与邮箱地址已移除。

资料来源与适用范围

资料来源
Server Fault
适用范围
以原帖系统、软件版本与发布日期为准(2016-06-14)
内容语言
中文;命令、路径和错误标识保留技术原文
本地收录日期
2026-11-15
授权说明
CC BY-SA 3.0

正文与所需资源由本站本地存储。查看来源及更新记录 ↗

请按适用版本和实际日志确认原因;本站没有对每一种系统或设备逐项执行文中的操作。