[Pdns-users] longest-digit match in records name lookup NAPTR
Jonathan Hunter
hunterj91 at hotmail.com
Tue Feb 24 14:04:46 UTC 2015
Hi Guys,
Sorry, last question for a while!
Is it possible to disable longest-digit match in the name lookup?
I only ask as running queries on the following entries (shown below from records table) using for example a dig to NAPTR 4.3.2.1.5.5.5.4.0.7.1.0.0.e164.sip.mn, the call is always routed tocarrier 3, where as Id like to be in a position ideally where it would pickup the wildcard with the higher priority (carrier1.com) ideally.
Is it an option or not designed due to RFC?
Thanks
Jon
mysql> select * from records;+----+-----------+---------------------------------+-------+----------------------------------------------------+-------+------+-------------+----------+-----------+------+| id | domain_id | name | type | content | ttl | prio | change_date | disabled | ordername | auth |+----+-----------+---------------------------------+-------+----------------------------------------------------+-------+------+-------------+----------+-----------+------+
| 5 | 1 | *.1.0.0.e164.sip.mn | NAPTR | 1 1 "U" "E2U+sip" "!^(.*)$!sip:\\1 at carrier1.com!" . | 120 | NULL | NULL | 0 | NULL | 1 || 6 | 1 | *.1.0.0.e164.sip.mn | NAPTR | 3 10 "U" "E2U+sip" "!^(.*)$!sip:\\1 at carrier2.com!". | 120 | NULL | NULL | 0 | NULL | 1 || 7 | 1 | *.5.5.5.4.0.7.1.0.0.e164.sip.mn | NAPTR | 5 10 "U" "E2U+sip" "!^(.*)$!sip:\\1 at carrier3.com!". | 120 | NULL | NULL | 0 | NULL | 1 |+----+-----------+---------------------------------+-------+----------------------------------------------------+-------+------+-------------+----------+-----------+------+
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.powerdns.com/pipermail/pdns-users/attachments/20150224/7aa3cc4c/attachment.html>
More information about the Pdns-users
mailing list