RE: srv lookup in record

2020-08-22 Thread Marc Roos


> I don't think so, nor does it seem to make sense to me that you would 
> want such a thing (in the general case, you may have a use-case).

What would be better way to solve this then? To filter out only the ip 
addresses that are in the same netmask?


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

ISC funds the development of this software with paid support subscriptions. 
Contact us at https://www.isc.org/contact/ for more information.


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


Re: SRV is not CNAME, was srv lookup in record

2020-08-22 Thread John Levine
In article  you write:
>On 2020-08-21 16:26, Marc Roos wrote:
>> Is it possible to use srv lookups, like eg cname. I do not want to
>> create SRV record, I just want to 'get' the ip addresses, that I would
>> get vai srv lookup.
>
>SRV records are more than just pointers to a specific server, there is 
>also the priority and weight that need to be considered at the 
>application level.

More importantly, SRV records have port numbers.  In SIP, which seems to be
the largest current use of SRV, as often as not the port number is different
from the default 5060.

SRV really is not like CNAME.

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

ISC funds the development of this software with paid support subscriptions. 
Contact us at https://www.isc.org/contact/ for more information.


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


CNAME / TXT

2020-08-22 Thread Jukka Pakkanen
Cannot figure out what is wrong here... must be something simple but after 
sitting in airplanes the last 40 hours and it's 2am...

Only when I comment out the two lines in the end of the named.harriot, it goes 
through and BIND load the zone. With those two lines, get the following:

C:\DNS\etc\namedb>named-checkzone harriot.fi named.harriot
dns_master_load: named.harriot:33: mg.harriot.fi: CNAME and other data
dns_rdata_fromtext: named.harriot:35: syntax error
zone harriot.fi/IN: loading from master file named.harriot failed: CNAME and 
other data
zone harriot.fi/IN: not loaded due to errors.

;
;File:  named.harriot
;

$TTL 864

@IN SOA  ns1.qnet.fi. helpdesk.qnet.fi. (
 202008243  ; serial number
 28800  ; refresh every 12 hours
  7200  ; retry after 2 hours
604800  ; expire after 2 weeks
  3600) ; default ttl is 2 days

harriot.fi.   IN A  35.214.111.143
  IN MX 10 
qntsrv8.qnet.fi.
  IN MX 10 
qntsrv9.qnet.fi.
 IN NS ns1.qnet.fi.
 IN NS ns2.qnet.fi.
 IN NS ns3.qnet.fi.
  IN NS ns1.z.fi.
  IN NS ns2.z.fi.

wwwIN A 35.214.111.143
api IN A 35.214.111.143
webmailIN CNAME mail.qnet.fi.
_autodiscover._tcp  IN SRV 0 5 443 mail.qnet.fi.

dev 
  IN A  35.214.111.143

; mg
  IN CNAME eu.mailgun.org.
mg  
   IN MX 10 mxa.eu.mailgun.org.
mg  
   IN MX 10 mxb.eu.mailgun.org.
mg  
   IN TXTv=spf1 include:eu.mailgun.org ~all

; smtp_domainkey.mg IN TXT "k=rsa; p=MII-AQAB"




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

ISC funds the development of this software with paid support subscriptions. 
Contact us at https://www.isc.org/contact/ for more information.


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


Re: CNAME / TXT

2020-08-22 Thread Ben Croswell
If you uncomment that mg CNAME you end up with a CNAME mx and TXT at the
same node in to the DNS tree and that is illegal. That is why you get the
error "cname and other data". The mx and txt are the other data.

On Sat, Aug 22, 2020, 8:19 PM Jukka Pakkanen  wrote:

> Cannot figure out what is wrong here… must be something simple but after
> sitting in airplanes the last 40 hours and it’s 2am…
>
> Only when I comment out the two lines in the end of the named.harriot, it
> goes through and BIND load the zone. With those two lines, get the
> following:
>
> C:\DNS\etc\namedb>named-checkzone harriot.fi named.harriot
>
> dns_master_load: named.harriot:33: mg.harriot.fi: CNAME and other data
>
> dns_rdata_fromtext: named.harriot:35: syntax error
>
> zone harriot.fi/IN: loading from master file named.harriot failed: CNAME
> and other data
>
> zone harriot.fi/IN: not loaded due to errors.
>
> ;
>
> ;File:  named.harriot
>
> ;
>
>
>
> $TTL 864
>
>
>
> @IN SOA  ns1.qnet.fi. helpdesk.qnet.fi.
> (
>
>  202008243  ; serial number
>
>  28800  ; refresh every 12 hours
>
>   7200  ; retry after 2 hours
>
> 604800  ; expire after 2 weeks
>
>   3600) ; default ttl is 2 days
>
>
>
> harriot.fi.   IN A  35.214.111.143
>
>   IN MX 10
> qntsrv8.qnet.fi.
>
>   IN MX 10
> qntsrv9.qnet.fi.
>
>  IN NS
> ns1.qnet.fi.
>
>  IN NS
> ns2.qnet.fi.
>
>  IN NS
> ns3.qnet.fi.
>
>   IN NS
> ns1.z.fi.
>
>   IN NS
> ns2.z.fi.
>
>
>
> wwwIN A 35.214.111.143
>
> api IN A 35.214.111.143
>
> webmailIN CNAME mail.qnet.fi.
>
> _autodiscover._tcp  IN SRV 0 5 443 mail.qnet.fi.
>
>
>
> dev
> IN A  35.214.111.143
>
>
>
> ;
> mg
> IN CNAME eu.mailgun.org.
>
> mg
> IN MX 10 mxa.eu.mailgun.org.
>
> mg
> IN MX 10 mxb.eu.mailgun.org.
>
> mg
> IN TXTv=spf1 include:eu.mailgun.org ~all
>
>
>
> ; smtp_domainkey.mg IN TXT "k=rsa; p=MII-AQAB"
>
>
>
>
>
>
> ___
> Please visit https://lists.isc.org/mailman/listinfo/bind-users to
> unsubscribe from this list
>
> ISC funds the development of this software with paid support
> subscriptions. Contact us at https://www.isc.org/contact/ for more
> information.
>
>
> 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

ISC funds the development of this software with paid support subscriptions. 
Contact us at https://www.isc.org/contact/ for more information.


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


Re: CNAME / TXT

2020-08-22 Thread Kyongseon West
How long is the character in txt line? If it’s longer than 255, it will show 
that exact error. Exact thing happened to me yesterday.

You can separate with a quote to make it work.
https://kb.isc.org/docs/aa-00356


v/r,

Kathy West, CISSP
IT Services
Indiana University of Pennsylvania
724-357-3216
kw...@iup.edu

On Aug 22, 2020, at 8:19 PM, Jukka Pakkanen  wrote:


Cannot figure out what is wrong here… must be something simple but after 
sitting in airplanes the last 40 hours and it’s 2am…

Only when I comment out the two lines in the end of the named.harriot, it goes 
through and BIND load the zone. With those two lines, get the following:

C:\DNS\etc\namedb>named-checkzone harriot.fi named.harriot
dns_master_load: named.harriot:33: mg.harriot.fi: CNAME and other data
dns_rdata_fromtext: named.harriot:35: syntax error
zone harriot.fi/IN: loading from master file named.harriot failed: CNAME and 
other data
zone harriot.fi/IN: not loaded due to errors.

;
;File:  named.harriot
;

$TTL 864

@IN SOA  ns1.qnet.fi. helpdesk.qnet.fi. (
 202008243  ; serial number
 28800  ; refresh every 12 hours
  7200  ; retry after 2 hours
604800  ; expire after 2 weeks
  3600) ; default ttl is 2 days

harriot.fi.   IN A  35.214.111.143
  IN MX 10 
qntsrv8.qnet.fi.
  IN MX 10 
qntsrv9.qnet.fi.
 IN NS ns1.qnet.fi.
 IN NS ns2.qnet.fi.
 IN NS ns3.qnet.fi.
  IN NS ns1.z.fi.
  IN NS ns2.z.fi.

wwwIN A 35.214.111.143
api IN A 35.214.111.143
webmailIN CNAME mail.qnet.fi.
_autodiscover._tcp  IN SRV 0 5 443 mail.qnet.fi.

dev 
  IN A  35.214.111.143

; mg
  IN CNAME eu.mailgun.org.
mg  
   IN MX 10 mxa.eu.mailgun.org.
mg  
   IN MX 10 mxb.eu.mailgun.org.
mg  
   IN TXTv=spf1 include:eu.mailgun.org ~all

; smtp_domainkey.mg IN TXT "k=rsa; p=MII-AQAB"




___
Please visit 
https://nam04.safelinks.protection.outlook.com/?url=https%3A%2F%2Flists.isc.org%2Fmailman%2Flistinfo%2Fbind-users&data=02%7C01%7Ckwest%40iup.edu%7Ca75aa7ecb8274759774508d846fa318c%7C96704ed7a3e14bb8ba918b63ee16883e%7C0%7C0%7C637337387679615439&sdata=dErmGy3Lw%2BZcSJWADnGaIRngbH9HUybmUA8aZTg7a9w%3D&reserved=0
 to unsubscribe from this list

ISC funds the development of this software with paid support subscriptions. 
Contact us at 
https://nam04.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww.isc.org%2Fcontact%2F&data=02%7C01%7Ckwest%40iup.edu%7Ca75aa7ecb8274759774508d846fa318c%7C96704ed7a3e14bb8ba918b63ee16883e%7C0%7C0%7C637337387679615439&sdata=Yn%2BtYlW2dCzEJ80f55HM7VpFMmbeoEV5YbsLTDxb0go%3D&reserved=0
 for more information.


bind-users mailing list
bind-users@lists.isc.org
https://nam04.safelinks.protection.outlook.com/?url=https%3A%2F%2Flists.isc.org%2Fmailman%2Flistinfo%2Fbind-users&data=02%7C01%7Ckwest%40iup.edu%7Ca75aa7ecb8274759774508d846fa318c%7C96704ed7a3e14bb8ba918b63ee16883e%7C0%7C0%7C637337387679615439&sdata=dErmGy3Lw%2BZcSJWADnGaIRngbH9HUybmUA8aZTg7a9w%3D&reserved=0
___
Please visit https://lists.isc.org/mailman/listinfo/bind-users to unsubscribe 
from this list

ISC funds the development of this software with paid support subscriptions. 
Contact us at https://www.isc.org/contact/ for more information.


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