Re: [Pdns-users] Order Value Decimal Place /leading Zero behaviour
Hello Jonathan, On 05 Mar 2015, at 11:33 , Jonathan Hunter hunter...@hotmail.com wrote: 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. The order value is a 16 bit integer with range 0-65535. Decimal points are not allowed. Perhaps you can multiply your numbers by a million so you get 322 and 4900? Kind regards, -- Peter van Dijk Netherlabs Computer Consulting BV - http://www.netherlabs.nl/ ___ Pdns-users mailing list Pdns-users@mailman.powerdns.com http://mailman.powerdns.com/mailman/listinfo/pdns-users
[Pdns-users] Order Value Decimal Place /leading Zero behaviour
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...@carrier1.com!.0.0049 10 U E2U+sip !^(.*)$!sip:\\1...@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...@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...@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; 322 10 U E2U+sip !^(.*)$!sip:\\1...@carrier1.com!.00049 10 U E2U+sip !^(.*)$!sip:\\1...@carrier2.com!. However when testing with dig I am returned; IN NAPTR 49 10 U E2U+sip !^(.*)$!sip:\\1...@carrier2.com! . IN NAPTR 322 10 U E2U+sip !^(.*)$!sip:\\1...@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 Jon ___ Pdns-users mailing list Pdns-users@mailman.powerdns.com http://mailman.powerdns.com/mailman/listinfo/pdns-users