Re: CNAME as an alias to a TXT record

2019-11-06 Thread Computerisms Corporation
Many thanks for all the responses.  For the sake of completeness I am 
just reporting that every thing is working as expected.


On 2019-11-04 12:30 p.m., 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?





___
Please visit https://lists.isc.org/mailman/listinfo/bind-users to unsubscribe 
from this list

bind-users mailing list
bind-users@lists.isc.org
https://lists.isc.org/mailman/listinfo/bind-users


Re: CNAME as an alias to a TXT record

2019-11-04 Thread Computerisms Corporation

Hi,

Thank you very much for your response, much appreciated.

Still not working on the servers it needs to be working on, but have 
reproduced your results in a test environment.


On 2019-11-04 12:42 p.m., m3047 wrote:

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

___
Please visit https://lists.isc.org/mailman/listinfo/bind-users to unsubscribe 
from this list

bind-users mailing list
bind-users@lists.isc.org
https://lists.isc.org/mailman/listinfo/bind-users


Re: CNAME as an alias to a TXT record

2019-11-04 Thread Computerisms Corporation

Hi Reindl,

Thanks for your response.


no matter which record type a CNAME will match and that is the simple
reason that you can't have A/MX records with the same name

MX mail.example-com
CNAME mail.example.com

TXT whatever.example.com
CNAME whatever.example.com


yes, I understand that I can't have them in the same zone (ie in the 
same domain name).  but not trying that here.  I want the CNAME for 
firstdomain.com to point to a TXT record at seconddomain.com







in both cases you need to chose because a CNAME with the same NAME is a
conflicting configuration which is not possible or redundant which don't
make sense
___
Please visit https://lists.isc.org/mailman/listinfo/bind-users to unsubscribe 
from this list

bind-users mailing list
bind-users@lists.isc.org
https://lists.isc.org/mailman/listinfo/bind-users


___
Please visit https://lists.isc.org/mailman/listinfo/bind-users to unsubscribe 
from this list

bind-users mailing list
bind-users@lists.isc.org
https://lists.isc.org/mailman/listinfo/bind-users


CNAME as an alias to a TXT record

2019-11-04 Thread Computerisms Corporation

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
Cell: 867-334-7117
Office: 867-633-3760
Office: 867-322-0362
www.computerisms.ca
___
Please visit https://lists.isc.org/mailman/listinfo/bind-users to unsubscribe 
from this list

bind-users mailing list
bind-users@lists.isc.org
https://lists.isc.org/mailman/listinfo/bind-users