[Pdns-users] Order Value Decimal Place /leading Zero behaviour

Jonathan Hunter hunterj91 at hotmail.com
Thu Mar 5 10:33:18 UTC 2015

Hi Guys,
I am testing  the Order Value in the content of NAPTR records using powerdns and MySQL database.
I am trying to see an order value of 0.000322 which is lowest cost entry for one target carrier, and 0.0049 for a slightly more expensive carrier.
So content looks like this in the records table;
0.000322 10 "U" "E2U+sip" "!^(.*)$!sip:\\1 at carrier1.com!".0.0049 10 "U" "E2U+sip" "!^(.*)$!sip:\\1 at carrier2.com!".
When I do this I get a parsing error, I presume due to decimal point;

Mar  5 10:05:42 localhost pdns[6207]: Exception: Parsing record content: expected digits at position 1 in '0.000322 10 "U" "E2U+sip" "!^(.*)$!sip:\\1 at carrier1.com!".'Mar  5 10:05:42 localhost pdns[6207]: Exception building answer packet (Parsing record content: expected digits at position 1 in '0.000322 10 "U" "E2U+sip" "!^(.*)$!sip:\\1 at carrier1.com!".') sending out servfail
So I wondered if it would respect the leading 0's if I removed the decimal, so I have entries as;
0000322 10 "U" "E2U+sip" "!^(.*)$!sip:\\1 at carrier1.com!".00049 10 "U" "E2U+sip" "!^(.*)$!sip:\\1 at carrier2.com!".
However when testing with dig I am returned;
 IN NAPTR 49 10 "U" "E2U+sip" "!^(.*)$!sip:\\1 at carrier2.com!" . IN NAPTR 322 10 "U" "E2U+sip" "!^(.*)$!sip:\\1 at carrier1.com!" .
So doesnt seem to respect the leading 0's.
Is there anyway I can resolve this so I can define values such as 0.000322 so in the example above it is the preference?
Many thanks
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.powerdns.com/pipermail/pdns-users/attachments/20150305/8246d245/attachment.html>

More information about the Pdns-users mailing list