CNAME as an alias to a TXT record
m3047
m3047 at m3047.net
Mon Nov 4 20:42:45 UTC 2019
I would expect so.
HECATE:~ m3047$ dig points-to-m3047.net.m3047.
; <<>> DiG 9.8.3-P1 <<>> points-to-m3047.net.m3047.
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 50873
;; flags: qr aa rd ra; QUERY: 1, ANSWER: 2, AUTHORITY: 2, ADDITIONAL: 2
;; QUESTION SECTION:
;points-to-m3047.net.m3047. IN A
;; ANSWER SECTION:
POINTS-TO-M3047.NET.m3047. 600 IN CNAME M3047.NET.
m3047.net. 7200 IN A 209.221.140.128
;; AUTHORITY SECTION:
m3047.net. 6334 IN NS dns1.encirca.net.
m3047.net. 6334 IN NS dns2.encirca.net.
;; ADDITIONAL SECTION:
dns1.encirca.net. 157334 IN A 108.166.170.106
dns2.encirca.net. 157334 IN A 64.62.200.132
;; Query time: 69 msec
;; SERVER: 10.0.0.220#53(10.0.0.220)
;; WHEN: Mon Nov 4 12:40:17 2019
;; MSG SIZE rcvd: 197
HECATE:~ m3047$ dig points-to-m3047.net.m3047. txt
; <<>> DiG 9.8.3-P1 <<>> points-to-m3047.net.m3047. txt
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 46861
;; flags: qr aa rd ra; QUERY: 1, ANSWER: 2, AUTHORITY: 2, ADDITIONAL: 2
;; QUESTION SECTION:
;points-to-m3047.net.m3047. IN TXT
;; ANSWER SECTION:
POINTS-TO-M3047.NET.m3047. 600 IN CNAME M3047.NET.
m3047.net. 7200 IN TXT "v=spf1
ip4:209.221.140.128/31 +mx -all"
;; AUTHORITY SECTION:
m3047.net. 6329 IN NS dns1.encirca.net.
m3047.net. 6329 IN NS dns2.encirca.net.
;; ADDITIONAL SECTION:
dns1.encirca.net. 157329 IN A 108.166.170.106
dns2.encirca.net. 157329 IN A 64.62.200.132
;; Query time: 108 msec
;; SERVER: 10.0.0.220#53(10.0.0.220)
;; WHEN: Mon Nov 4 12:40:22 2019
;; MSG SIZE rcvd: 232
On Mon, 4 Nov 2019, Computerisms Corporation wrote:
> Hi,
>
> I am wondering if it is possible to create a CNAME in one zone to resolve as
> a TXT record in another zone. 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 there a way to get the dig command to return the TXT value for dom2? Or is
> that something that can pretty much only happen with A records?
>
>
> --
> Bob Miller
More information about the bind-users
mailing list