gpt4 book ai didi

dns - 同一子域的 CNAME 和 TXT 记录不起作用

转载 作者:行者123 更新时间:2023-12-03 21:23:35 25 4
gpt4 key购买 nike

关闭。这个问题不符合Stack Overflow guidelines .它目前不接受答案。












想改进这个问题?更新问题,使其成为 on-topic对于堆栈溢出。

5年前关闭。




Improve this question




我需要在区域文件中为子域 test.domain.com 添加一条 TXT 记录。在此区域文件中,相同子域的现有 CNAME。两条记录如下:

test IN CNAME asdf.someotherdomain.com. 
test IN TXT "Some text i need to add"

但是当我尝试保存时,我得到一个错误:
dns_master_load: :45: test.domain.com: CNAME and other data
zone domain.com/IN: loading from master file failed: CNAME and other data
zone domain.com/IN: not loaded due to errors.
status: FAIL

如果我使用不同的子域,它会起作用,例如:
test IN CNAME asdf.someotherdomain.com. 
testing IN TXT "Some text i need to add"

在 DNS 方面,我并不是最好的。在这种情况下不可能有相同的子域吗?还是我错过了什么?

服务器正在运行绑定(bind)。

最佳答案

您遇到的问题是 rules of DNS 的问题。 ,它禁止存在另一个记录的 CNAME 记录。

If a CNAME RR is present at a node, no other data should bepresent; this ensures that the data for a canonical name and its aliasescannot be different. This rule also insures that a cached CNAME can beused without checking with an authoritative server for other RR types.

关于dns - 同一子域的 CNAME 和 TXT 记录不起作用,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/34613083/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com