Order and Preference Priority in DNS Responses

Heiko Richter email at heikorichter.name
Mon Aug 3 14:42:50 UTC 2015


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 120    100   “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.


More information about the bind-users mailing list