同一子域的 CNAME 和 TXT 记录不起作用
CNAME and TXT record for same subdomain not working
我需要在区域文件中为子域 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 方面,我并不是最好的。在这种情况下不可能有相同的子域吗?还是我遗漏了什么?
服务器 运行 绑定。
您遇到的问题是 rules of DNS 的问题,它禁止在存在另一条记录的情况下使用 CNAME 记录。
If a CNAME RR is present at a node, no other data should be
present; this ensures that the data for a canonical name and its aliases
cannot be different. This rule also insures that a cached CNAME can be
used without checking with an authoritative server for other RR types.
我需要在区域文件中为子域 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 方面,我并不是最好的。在这种情况下不可能有相同的子域吗?还是我遗漏了什么?
服务器 运行 绑定。
您遇到的问题是 rules of DNS 的问题,它禁止在存在另一条记录的情况下使用 CNAME 记录。
If a CNAME RR is present at a node, no other data should be present; this ensures that the data for a canonical name and its aliases cannot be different. This rule also insures that a cached CNAME can be used without checking with an authoritative server for other RR types.