关于CNAME记录与同域名其他DNS记录无法共存的原理疑问
关于CNAME记录与同域名其他DNS记录无法共存的原理疑问
我翻了不少技术博客,都说CNAME记录不能和同域名的其他DNS记录共存,但始终没找到能把这个问题讲透的例子。
博客里是这么解释的:
CNAME records cannot coexist with other records that have the same FQDN as the CNAME record because they effectively overwrite all other records with the same FQDN.
For example, a CNAME record FQDN is example.com, and you want to create an A record FQDN example.com. This is not allowed because the A record FQDN is identical to the CNAME record FQDN, rendering the A record purposeless.
但我觉得这个例子还是不够清楚,没法让我彻底理解背后的逻辑到底是怎么回事。
我试着自己梳理这个问题,假设我配置了这样的DNS记录:
| 域名 | TTL | 类别 | 记录类型 | 值 |
|---|---|---|---|---|
| a... | ... | ... | ... | ... |
备注:内容来源于stack exchange,提问作者Alexander Ites
相关产品推荐
相关产品推荐

