CNAME as an alias to a TXT record

Matus UHLAR - fantomas uhlar at fantomas.sk
Wed Nov 6 09:00:29 UTC 2019


>On 04.11.19 12:30, Computerisms Corporation wrote:
>>I am wondering if it is possible to create a CNAME in one zone to 
>>resolve as a TXT record in another zone.

On 06.11.19 09:48, Matus UHLAR - fantomas wrote:
>CNAME will not resolve as a TXT.
>CNAME will make ALL types queries for original query being resolved as the
>destination

FYI you can try querying cname-example.fantomas.sk:

% dig +noall +answer any cname-example.fantomas.sk.
cname-example.fantomas.sk. 43200 IN     CNAME   cname-dest.fantomas.sk.

% dig +noall +answer txt cname-example.fantomas.sk.
cname-example.fantomas.sk. 43200 IN     CNAME   cname-dest.fantomas.sk.
cname-dest.fantomas.sk. 43200   IN      TXT     "this is an example of how CNAME works"

% dig +noall +answer mx cname-example.fantomas.sk.
cname-example.fantomas.sk. 43200 IN     CNAME   cname-dest.fantomas.sk.
cname-dest.fantomas.sk. 43200   IN      MX      10 cname-dest.fantomas.sk.

% dig +noall +answer a cname-example.fantomas.sk.
cname-example.fantomas.sk. 43200 IN     CNAME   cname-dest.fantomas.sk.
cname-dest.fantomas.sk. 43200   IN      A       127.0.0.1

>>Can't find anything that says it will work, but can't find any thing 
>>that says it won't, either.
>>
>>For example, I have added in the zone file for dom1:
>>
>>_acme-challenge	CNAME	_acme-challenge.dom2.com.
>>
>>and then in zone file for dom2:
>>
>>_acme-challenge	TXT	"thisismytextvalue"
>>
>>Then, and more or less as expected, the following dig command fails 
>>to return a record.
>>
>>dig -t TXT  _acme-challenge.dom1.com
>
>is is supposed to work this way. If it doesn't, you have an error somewhere.
>
>Are you sure that there's no other _acme-challenge.dom1.com record than the
>CNAME?

-- 
Matus UHLAR - fantomas, uhlar at fantomas.sk ; http://www.fantomas.sk/
Warning: I wish NOT to receive e-mail advertising to this address.
Varovanie: na tuto adresu chcem NEDOSTAVAT akukolvek reklamnu postu.
- Holmes, what kind of school did you study to be a detective?
- Elementary, Watkins.  -- Daffy Duck & Porky Pig


More information about the bind-users mailing list