CNAME and TXT record for the same subdomain does not work

I need to add a TXT record for the subdomain test.domain.com in the zone file. This zone file has an existing CNAME for the same subdomain. Two entries are as follows:

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

But when I try to save this, I get an error:

 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 

It works if I do it with different sub-regions, for example:

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

I'm not really the best when it comes to DNS. Is it not possible to have the same subdomain in this scenario? Or am I missing something?

The servers are binding.

+5
source share
1 answer

The problem you are facing is related to DNS rules that prohibit a CNAME record where another record exists.

If a CNAME RR is present on a node, no other data should be present; this ensures that the data for the canonical name and its aliases cannot be different. This rule also ensures that the cached CNAME can be used without verification with a reputable server for other types of RRs.

+11
source

Source: https://habr.com/ru/post/1239890/


All Articles