Re: Order and Preference Priority in DNS Responses

2015-08-03 Thread Heiko Richter
Am 03.08.2015 um 13:38 schrieb Harshith Mulky:
 I wanted to understand how Order and Preference Values have an impact on
 the answers Received from the DNS Server
 
 I am asking because, I have 4 records for NAPTR Query, as below
 
 carrier1.com 86400 IN NAPTR   50 50“s”   “SIPS+D2T”  ““   
 “_sips._tcp.carrier1.com.”
 carrier1.com 86400 IN NAPTR   90 50“s”   “SIP+D2T”““ 
 “_sip._tcp.carrier1.com.”
 carrier1.com 86400 IN NAPTR 100   100   “s”  “SIP+D2U”  ““
 “_sip._udp.carrier1.com.”
 carrier1.com 86400 IN NAPTR 120100   “s”  “SIPS+D2U”   ““   
 “_sip._tcp.carrier1.com.”
 
 
 I am expecting to receive the answer as _sip._udp.carrier1.com but i
 receive _sip._tcp.carrier1.com
 
 
 How could I change this?
 
 
 
 
 
 

Hi there!

That exactly was the query you sent to the server?

Why would you expect to recieave the records with priority 100 and
preference 100?

BTW: As your records all have a different priority (first number) you
should sett the preference to 0 in all records. This field is only used
to do load-balancing when you have two or more records with the same
priority.
___
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: ERROR : - writeable file 'data/udalgurijudiciarygov.hosts': already in use: /etc/nicnet2007.govdomain:15424 - loading configuration: failure

2015-08-03 Thread Heiko Richter
Am 03.08.2015 um 08:08 schrieb Mukund Sivaraman:
 Hi Prakash
 
 On Mon, Aug 03, 2015 at 10:14:50AM +0530, prakash wrote:
 Aug  3 09:59:34 govindnsvm named[7436]: /etc/nicnet2007.govdomain:15424: 
 writeable file 'data/udalgurijudiciarygov.hosts': already in use: 
 /etc/nicnet2007.govdomain:15424
 Aug  3 09:59:34 govindnsvm named[7436]: /etc/nicnet2007.govdomain:15431: 
 writeable file 'data/bodolandgov.hosts': already in use: 
 /etc/nicnet2007.govdomain:15431
 Aug  3 09:59:34 govindnsvm named[7436]: /etc/nicnet2007.govdomain:15445: 
 writeable file 'data/cexhyd2gov.hosts': already in use: 
 /etc/nicnet2007.govdomain:15445
 Aug  3 09:59:34 govindnsvm named[7436]: /etc/nicnet2007.govdomain:15452: 
 writeable file 'data/bmcsagaredu.hosts': already in use: 
 /etc/nicnet2007.govdomain:15452
 Aug  3 09:59:34 govindnsvm named[7436]: /etc/nicnet2007.govdomain:15459: 
 writeable file 'data/crckozhikodegov.hosts': already in use: 
 /etc/nicnet2007.govdomain:15459
 Aug  3 09:59:34 govindnsvm named[7436]: /etc/nicnet2007.govdomain:15466: 
 writeable file 'data/wblcgov.hosts': already in use: 
 /etc/nicnet2007.govdomain:15466
 Aug  3 09:59:34 govindnsvm named[7436]: /etc/nicnet2007.govdomain:15473: 
 writeable file 'data/precursorsncbgov.hosts': already in use: 
 /etc/nicnet2007.govdomain:15473
 Aug  3 09:59:34 govindnsvm named[7436]: /etc/nicnet2007.govdomain:15480: 
 writeable file 'data/icggov.hosts': already in use: 
 /etc/nicnet2007.govdomain:15480
 Aug  3 09:59:34 govindnsvm named[7436]: loading configuration: failure
 Aug  3 09:59:34 govindnsvm named[7436]: exiting (due to fatal error)
 
 See if you have used these data/*.host as values with the file
 option multiple times in your named configuration. It may be that you
 have included a config snippet multiple times.
 
   Mukund
 

Why use the file option at all on a slave?

Of course it is possible, but why should one force the file name of a
slave zone? That configuration option is just needed on the master.

Bind will assign a filename for your slave zone on its own and you can
be sure it will not assign the same name twice
___
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: Order and Preference Priority in DNS Responses

2015-08-03 Thread Heiko Richter
Am 03.08.2015 um 13:44 schrieb Reindl Harald:
 
 
 Am 03.08.2015 um 13:38 schrieb Harshith Mulky:
 I wanted to understand how Order and Preference Values have an impact on
 the answers Received from the DNS Server

 I am asking because, I have 4 records for NAPTR Query, as below

 carrier1.com 86400 IN NAPTR   50 50“s”   “SIPS+D2T”  ““
 “_sips._tcp.carrier1.com.”
 carrier1.com 86400 IN NAPTR   90 50“s”   “SIP+D2T”““
 “_sip._tcp.carrier1.com.”
 carrier1.com 86400 IN NAPTR 100   100   “s”  “SIP+D2U”  ““
 “_sip._udp.carrier1.com.”
 carrier1.com 86400 IN NAPTR 120100   “s”  “SIPS+D2U”   ““
 “_sip._tcp.carrier1.com.”

 I am expecting to receive the answer as _sip._udp.carrier1.com but i
 receive _sip._tcp.carrier1.com
 
 randomly
 
 https://en.wikipedia.org/wiki/Round-robin_DNS
 

Just saying randomly is not quite correct. At least not always.

Depends on the setting of rrset-order.
___
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: ERROR : - writeable file 'data/udalgurijudiciarygov.hosts': already in use: /etc/nicnet2007.govdomain:15424 - loading configuration: failure

2015-08-03 Thread Reindl Harald



Am 03.08.2015 um 16:50 schrieb Heiko Richter:

Am 03.08.2015 um 08:08 schrieb Mukund Sivaraman:

Hi Prakash

On Mon, Aug 03, 2015 at 10:14:50AM +0530, prakash wrote:

Aug  3 09:59:34 govindnsvm named[7436]: /etc/nicnet2007.govdomain:15424: 
writeable file 'data/udalgurijudiciarygov.hosts': already in use: 
/etc/nicnet2007.govdomain:15424
Aug  3 09:59:34 govindnsvm named[7436]: /etc/nicnet2007.govdomain:15431: 
writeable file 'data/bodolandgov.hosts': already in use: 
/etc/nicnet2007.govdomain:15431
Aug  3 09:59:34 govindnsvm named[7436]: /etc/nicnet2007.govdomain:15445: 
writeable file 'data/cexhyd2gov.hosts': already in use: 
/etc/nicnet2007.govdomain:15445
Aug  3 09:59:34 govindnsvm named[7436]: /etc/nicnet2007.govdomain:15452: 
writeable file 'data/bmcsagaredu.hosts': already in use: 
/etc/nicnet2007.govdomain:15452
Aug  3 09:59:34 govindnsvm named[7436]: /etc/nicnet2007.govdomain:15459: 
writeable file 'data/crckozhikodegov.hosts': already in use: 
/etc/nicnet2007.govdomain:15459
Aug  3 09:59:34 govindnsvm named[7436]: /etc/nicnet2007.govdomain:15466: 
writeable file 'data/wblcgov.hosts': already in use: 
/etc/nicnet2007.govdomain:15466
Aug  3 09:59:34 govindnsvm named[7436]: /etc/nicnet2007.govdomain:15473: 
writeable file 'data/precursorsncbgov.hosts': already in use: 
/etc/nicnet2007.govdomain:15473
Aug  3 09:59:34 govindnsvm named[7436]: /etc/nicnet2007.govdomain:15480: 
writeable file 'data/icggov.hosts': already in use: 
/etc/nicnet2007.govdomain:15480
Aug  3 09:59:34 govindnsvm named[7436]: loading configuration: failure
Aug  3 09:59:34 govindnsvm named[7436]: exiting (due to fatal error)


See if you have used these data/*.host as values with the file
option multiple times in your named configuration. It may be that you
have included a config snippet multiple times.



Why use the file option at all on a slave?

Of course it is possible, but why should one force the file name of a
slave zone? That configuration option is just needed on the master.

Bind will assign a filename for your slave zone on its own and you can
be sure it will not assign the same name twice


and will it remove the file also automatically if the zone no longer 
exists in the config?


our backends as example are naming the zones domain.tld.dns on master 
and slave and if we remove a domain the files on both are deleted too 
before reload named




signature.asc
Description: OpenPGP digital signature
___
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: ERROR : - writeable file 'data/udalgurijudiciarygov.hosts': already in use: /etc/nicnet2007.govdomain:15424 - loading configuration: failure

2015-08-03 Thread Lawrence K. Chen, P.Eng.

This unfortunately looks like the thread for me to jump on to

I missed installing the last two 9.9...-p# patches, first time I built 
everything and was pretty much ready to do it, and then forgot all about it 
due to health issues.  More recent one...I had got it built for Solaris x64 
and was about to work on building it for Solaris SPARC when the most recent 
one appeared.  This one carried a much strong get things patched (to me at 
first, then higher ups started jumping around...)


But, it turned out to be a huge mess to upgrade.

The first time I ran into this error, were some really old mistakes where the 
admin had copy and pasted a bunch of similar zones...and missed adjusting 
some of the files.  Since on the master side they all come from the same 
fileit probably didn't cause any noticeable problems for the slaves or 
clients.


However, install upgrade on our master server...knocked it out, so I'm here 
looking to see what the proper fix for my situation is.  Looking for a valid 
easy fix here ;)  Partly because coming soon they're going to demolish the 
DNS infrastructure that I got saddled with and feel like I done a pretty good 
job at re-engineering it to meet all the demands of it.  But, I'm the last 
legacy unix systems administrator here


Anyways...the problem is because we had turned out existing master server 
into doing split/stealth (started out stealth...) DNS, while having it 
continue to serve as slave to delegated subdomains.  So that those subdomains 
are propagated to our external facing slave servers.


So that's where the problem comes inthe internal authoritative+ 
nameservers having the master collect secondary zone data from them...on the 
Internal view.  But, then having to send that information to nameservers that 
hit the external view of the master.


So, until a few hours agoit was include a file containing all the 
delegated (sub)domains into both viewscausing both sides to be working 
off of the same file.


WHich seemed to work fine.  As only one side is getting updates, the other 
side is just to feed our outside facing slaves.  Well, this update wouldn't 
go for that.


So, cloning the file and doing a global search and destroythe external 
view is looking zone files in a directory that is emtpy, while the internal 
side continus as is.


To have something for the external nameservers to transfer (hopefully), I'm 
doing a regular sync of the file 'sec' to 'ext'.


Not totally sure that's workingbut nothing filing up logs about it.

So, is what I did something that'll hold...or is there an easy proper 
solution to this?  To hold us/me over until they decide if its going to be 
BlueCat or Infoblox that replaces everything.


Sadly, I missed both presentations due to other issuesmore sad because I 
found my named.iner shirt, which I was going to wear to the second 
presentation ;)


There were a couple of other interruptions in my upgrading my 20 servers, but 
I don't recall what the issue was with those now.


--
Who: Lawrence K. Chen, P.Eng. - W0LKC - Sr. Unix Systems Administrator
   with LOPSA Professional Recognition.
For: Enterprise Server Technologies (EST) --  SafeZone Ally


On 2015-08-03 10:06, Reindl Harald wrote:

Am 03.08.2015 um 16:59 schrieb Anand Buddhdev:

On 03/08/15 16:50, Heiko Richter wrote:

Hi Heiko,


Why use the file option at all on a slave?


If you don't use the file option on a slave, then BIND does not write
the zone to disk. This is okay for a small number of small zones. But if
you have many zones, or they are large, then you usually want to save a
copy of the zone to disk, so that at restart, BIND can load the zones in
quickly


and load them at all in a acceptable timeframe

if it doesn ot save them to disk as you said and you have some hundret zones
you likely exceed transfer ratelimits and it takes unacceptable long until
you slave responds while clients already ask him

the next problem with not having them on disk is: god beware if your master
is down and due analyzes or before you recognize the problem you restart
your slave named or the server


___
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


Re: ERROR : - writeable file 'data/udalgurijudiciarygov.hosts': already in use: /etc/nicnet2007.govdomain:15424 - loading configuration: failure

2015-08-03 Thread Mukund Sivaraman
Hi Prakash

On Mon, Aug 03, 2015 at 10:14:50AM +0530, prakash wrote:
 Aug  3 09:59:34 govindnsvm named[7436]: /etc/nicnet2007.govdomain:15424: 
 writeable file 'data/udalgurijudiciarygov.hosts': already in use: 
 /etc/nicnet2007.govdomain:15424
 Aug  3 09:59:34 govindnsvm named[7436]: /etc/nicnet2007.govdomain:15431: 
 writeable file 'data/bodolandgov.hosts': already in use: 
 /etc/nicnet2007.govdomain:15431
 Aug  3 09:59:34 govindnsvm named[7436]: /etc/nicnet2007.govdomain:15445: 
 writeable file 'data/cexhyd2gov.hosts': already in use: 
 /etc/nicnet2007.govdomain:15445
 Aug  3 09:59:34 govindnsvm named[7436]: /etc/nicnet2007.govdomain:15452: 
 writeable file 'data/bmcsagaredu.hosts': already in use: 
 /etc/nicnet2007.govdomain:15452
 Aug  3 09:59:34 govindnsvm named[7436]: /etc/nicnet2007.govdomain:15459: 
 writeable file 'data/crckozhikodegov.hosts': already in use: 
 /etc/nicnet2007.govdomain:15459
 Aug  3 09:59:34 govindnsvm named[7436]: /etc/nicnet2007.govdomain:15466: 
 writeable file 'data/wblcgov.hosts': already in use: 
 /etc/nicnet2007.govdomain:15466
 Aug  3 09:59:34 govindnsvm named[7436]: /etc/nicnet2007.govdomain:15473: 
 writeable file 'data/precursorsncbgov.hosts': already in use: 
 /etc/nicnet2007.govdomain:15473
 Aug  3 09:59:34 govindnsvm named[7436]: /etc/nicnet2007.govdomain:15480: 
 writeable file 'data/icggov.hosts': already in use: 
 /etc/nicnet2007.govdomain:15480
 Aug  3 09:59:34 govindnsvm named[7436]: loading configuration: failure
 Aug  3 09:59:34 govindnsvm named[7436]: exiting (due to fatal error)

See if you have used these data/*.host as values with the file
option multiple times in your named configuration. It may be that you
have included a config snippet multiple times.

Mukund


pgpROt9HComlc.pgp
Description: PGP signature
___
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: ERROR : - writeable file 'data/udalgurijudiciarygov.hosts': already in use: /etc/nicnet2007.govdomain:15424 - loading configuration: failure

2015-08-03 Thread prakash
Hi,
 
Thanks Mukund for kind help. Problem has been resolved ..
 
Thanks  regards
Prakash Chand


- Original Message -
From: Mukund Sivaraman m...@isc.org
Date: Monday, August 3, 2015 11:51 am
Subject: Re: ERROR : - writeable file 'data/udalgurijudiciarygov.hosts': 
already in use: /etc/nicnet2007.govdomain:15424 - loading configuration: failure
To: prakash prak...@nic.in
Cc: bind-users@lists.isc.org

 Hi Prakash
 
 On Mon, Aug 03, 2015 at 10:14:50AM +0530, prakash wrote:
  Aug  3 09:59:34 govindnsvm named[7436]: 
 /etc/nicnet2007.govdomain:15424: writeable file 
 'data/udalgurijudiciarygov.hosts': already in use: 
 /etc/nicnet2007.govdomain:15424 Aug  3 09:59:34 govindnsvm 
 named[7436]: /etc/nicnet2007.govdomain:15431: writeable file 
 'data/bodolandgov.hosts': already in use: 
 /etc/nicnet2007.govdomain:15431 Aug  3 09:59:34 govindnsvm 
 named[7436]: /etc/nicnet2007.govdomain:15445: writeable file 
 'data/cexhyd2gov.hosts': already in use: 
 /etc/nicnet2007.govdomain:15445 Aug  3 09:59:34 govindnsvm 
 named[7436]: /etc/nicnet2007.govdomain:15452: writeable file 
 'data/bmcsagaredu.hosts': already in use: 
 /etc/nicnet2007.govdomain:15452 Aug  3 09:59:34 govindnsvm 
 named[7436]: /etc/nicnet2007.govdomain:15459: writeable file 
 'data/crckozhikodegov.hosts': already in use: 
 /etc/nicnet2007.govdomain:15459 Aug  3 09:59:34 govindnsvm 
 named[7436]: /etc/nicnet2007.govdomain:15466: writeable file 
 'data/wblcgov.hosts': already in use: /etc/nicnet2007.govdomain:15466
  Aug  3 09:59:34 govindnsvm named[7436]: 
 /etc/nicnet2007.govdomain:15473: writeable file 
 'data/precursorsncbgov.hosts': already in use: 
 /etc/nicnet2007.govdomain:15473 Aug  3 09:59:34 govindnsvm 
 named[7436]: /etc/nicnet2007.govdomain:15480: writeable file 
 'data/icggov.hosts': already in use: /etc/nicnet2007.govdomain:15480
  Aug  3 09:59:34 govindnsvm named[7436]: loading 
 configuration: failure
  Aug  3 09:59:34 govindnsvm named[7436]: exiting (due to 
 fatal error)
 
 See if you have used these data/*.host as values with the file
 option multiple times in your named configuration. It may be 
 that you
 have included a config snippet multiple times.
 
  Mukund
 
 
___
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

DNSSec KSK problem

2015-08-03 Thread Heiko Richter
Hi!

I'm hoping someone here can help me with a problem in my DNSSec
configuration.

I'm running Bind 9 in Debian Jessie and just finished configuring it
with DNSSec for my zones. Everything including automatic key rollover
for the ZSKs is working, except for a slight anomaly with my KSKs:

For some reason the KSK isn't only used to sign the ZSKs, but also to
sign the zone. My server obviously signs the normal records with the
ZSK and the KSK as you can see on this diagnostic site:
http://dnsviz.net/d/heikorichter.org/dnssec/

Strangely for the TLD and the root zone the same flags are set on their
keys (257 for KSK and 256 for ZSK) and their servers seem to do it
right. Their KSKs are only signing the ZSK and their ZSKs are used to
sign the zone.

How can I force Bind to that same behaviour?

Here is my Options-Clause:
options {
allow-query {
any;
};
allow-recursion {
loopback;
v1;
v2;
};
auth-nxdomain no;
directory /var/cache/bind;
disable-empty-zone yes;
dnssec-enable yes;
dnssec-validation yes;
edns-udp-size 1460;
empty-zones-enable no;
forwarders { };
hostname v1.heikorichter.org;
ixfr-from-differences no;
listen-on {
any;
};
listen-on-v6 {
any;
};
max-refresh-time 7200;
max-retry-time 1800;
max-udp-size 1460;
min-refresh-time 900;
min-retry-time 600;
minimal-responses no;
notify yes;
preferred-glue ;
provide-ixfr no;
random-device /dev/urandom;
recursion yes;
request-ixfr no;
rrset-order {
order random;
};
server-id v1.heikorichter.org;
sig-validity-interval 2400;
statistics-file /etc/bind/stats;
transfer-format one-answer;
version Get Lost Pal;
zone-statistics yes;
};

Command used to generate the KSK:
dnssec-keygen -r /dev/urandom -f KSK -a ECDSAP384SHA384 \
  -P now -A +100 -R none -I none -D none \
  -K /etc/bind/dyn/heikorichter.org heikorichter.org

Command used to generate the ZSK:
dnssec-keygen -r /dev/urandom -3 -a ECDSAP256SHA256 \
  -P +2592000 -A +2678400 -R none -I +5443200 -D +5529600 \
  -K /etc/bind/dyn/heikorichter.org heikorichter.org
___
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: ERROR : - writeable file 'data/udalgurijudiciarygov.hosts': already in use: /etc/nicnet2007.govdomain:15424 - loading configuration: failure

2015-08-03 Thread Anand Buddhdev
On 03/08/15 16:50, Heiko Richter wrote:

Hi Heiko,

 Why use the file option at all on a slave?

If you don't use the file option on a slave, then BIND does not write
the zone to disk. This is okay for a small number of small zones. But if
you have many zones, or they are large, then you usually want to save a
copy of the zone to disk, so that at restart, BIND can load the zones in
quickly.

Regards,
Anand
___
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: ERROR : - writeable file 'data/udalgurijudiciarygov.hosts': already in use: /etc/nicnet2007.govdomain:15424 - loading configuration: failure

2015-08-03 Thread Reindl Harald


Am 03.08.2015 um 16:59 schrieb Anand Buddhdev:

On 03/08/15 16:50, Heiko Richter wrote:

Hi Heiko,


Why use the file option at all on a slave?


If you don't use the file option on a slave, then BIND does not write
the zone to disk. This is okay for a small number of small zones. But if
you have many zones, or they are large, then you usually want to save a
copy of the zone to disk, so that at restart, BIND can load the zones in
quickly


and load them at all in a acceptable timeframe

if it doesn ot save them to disk as you said and you have some hundret 
zones you likely exceed transfer ratelimits and it takes unacceptable 
long until you slave responds while clients already ask him


the next problem with not having them on disk is: god beware if your 
master is down and due analyzes or before you recognize the problem you 
restart your slave named or the server




signature.asc
Description: OpenPGP digital signature
___
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: Block propagation for a specific record A

2015-08-03 Thread Heiko Richter
Am 29.07.2015 um 10:59 schrieb Job:
 Hello,
 
 for a test page purpuose, we would like to avoid propagation only for a 
 specific record A, example:
 test.domain.com
 
 We need to test if users set up our DNS server in ethernet configuration, and 
 they display correctly the test page.
 But, if test.domain.com propagate, we are not sure they use our DNS server!
 
 Is there a way?
 
 Thank you!
 Francesco
 

Within a zone there ist not.

But you could create a sub-zone test.domain.com and delegate to it from
the first zone. Then you are free to serve it on any server you want,
including one of the servers that is already serving domain.com.
___
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


Order and Preference Priority in DNS Responses

2015-08-03 Thread Harshith Mulky
I wanted to understand how Order and Preference Values have an impact on the 
answers Received from the DNS Server

I am asking because, I have 4 records for NAPTR Query, as below

carrier1.com 86400 IN NAPTR   50 50“s”   “SIPS+D2T”  ““
“_sips._tcp.carrier1.com.”
carrier1.com 86400 IN NAPTR   90 50“s”   “SIP+D2T”““  
“_sip._tcp.carrier1.com.”
carrier1.com 86400 IN NAPTR 100   100   “s”  “SIP+D2U”  ““ 
“_sip._udp.carrier1.com.”
carrier1.com 86400 IN NAPTR 120100   “s”  “SIPS+D2U”   ““
“_sip._tcp.carrier1.com.”


I am expecting to receive the answer as _sip._udp.carrier1.com but i receive 
_sip._tcp.carrier1.com


How could I change this?









  ___
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: Order and Preference Priority in DNS Responses

2015-08-03 Thread Ray Bellis
On 03/08/2015 12:38, Harshith Mulky wrote:

 I am expecting to receive the answer as _sip._udp.carrier1.com but i
 receive _sip._tcp.carrier1.com
 
 How could I change this?

For applications that use NAPTR records it's the job of the client
application to process and sort the entire set of NAPTR records based on
the Order and Preference fields.

The order of the records as sent back in the DNS packet is therefore
irrelevant.

Ray


___
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: Order and Preference Priority in DNS Responses

2015-08-03 Thread Reindl Harald



Am 03.08.2015 um 13:38 schrieb Harshith Mulky:

I wanted to understand how Order and Preference Values have an impact on
the answers Received from the DNS Server

I am asking because, I have 4 records for NAPTR Query, as below

carrier1.com 86400 IN NAPTR   50 50“s”   “SIPS+D2T”  ““
“_sips._tcp.carrier1.com.”
carrier1.com 86400 IN NAPTR   90 50“s”   “SIP+D2T”““
“_sip._tcp.carrier1.com.”
carrier1.com 86400 IN NAPTR 100   100   “s”  “SIP+D2U”  ““
“_sip._udp.carrier1.com.”
carrier1.com 86400 IN NAPTR 120100   “s”  “SIPS+D2U”   ““
“_sip._tcp.carrier1.com.”

I am expecting to receive the answer as _sip._udp.carrier1.com but i
receive _sip._tcp.carrier1.com


randomly

https://en.wikipedia.org/wiki/Round-robin_DNS



signature.asc
Description: OpenPGP digital signature
___
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: Order and Preference Priority in DNS Responses

2015-08-03 Thread Mukund Sivaraman
Hi Harshith

On Mon, Aug 03, 2015 at 05:08:50PM +0530, Harshith Mulky wrote:
 I wanted to understand how Order and Preference Values have an impact on the 
 answers Received from the DNS Server
 
 I am asking because, I have 4 records for NAPTR Query, as below
 
 carrier1.com 86400 IN NAPTR   50 50“s”   “SIPS+D2T”  ““
 “_sips._tcp.carrier1.com.”
 carrier1.com 86400 IN NAPTR   90 50“s”   “SIP+D2T”““  
 “_sip._tcp.carrier1.com.”
 carrier1.com 86400 IN NAPTR 100   100   “s”  “SIP+D2U”  ““ 
 “_sip._udp.carrier1.com.”
 carrier1.com 86400 IN NAPTR 120100   “s”  “SIPS+D2U”   ““
 “_sip._tcp.carrier1.com.”
 
 
 I am expecting to receive the answer as _sip._udp.carrier1.com but i receive 
 _sip._tcp.carrier1.com

A client application querying for this record type (NAPTR) will receive
all these RRs. It is upto the client application to use these records
and use them in the sequence of the ORDER field.

Mukund


pgp7lLBeup5wQ.pgp
Description: PGP signature
___
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