小编use*_*873的帖子

相同子域的CNAME和TXT记录不起作用

我需要在区域文件中为子域test.domain.com添加TXT记录.在此区域文件中,存在相同子域的现有CNAME.这两个记录看起来像这样:

test IN CNAME asdf.someotherdomain.com. 
test IN TXT "Some text i need to add"
Run Code Online (Sandbox Code Playgroud)

但是当我尝试保存时,我收到一个错误:

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
Run Code Online (Sandbox Code Playgroud)

如果我使用不同的子域,它可以工作,例如:

test IN CNAME asdf.someotherdomain.com. 
testing IN TXT "Some text i need to add"
Run Code Online (Sandbox Code Playgroud)

在DNS方面,我并不是最好的.在这种情况下,是否不可能拥有相同的子域?或者我错过了什么?

服务器正在运行bind.

dns cname

12
推荐指数
1
解决办法
1万
查看次数

标签 统计

cname ×1

dns ×1