Hi All,

I am using 2.9.20 on Debian with gpgsql backend. We are trying to set up
pdns to be used for enum lookup from an SBC.
The problem is that the SBC is expecting to receive the NAPTR answer in the
following form:
100 10 "u" "E2U+sip" "!^.*$!sip:[EMAIL PROTECTED]"

and the answer comes as follows:
host -v -t NAPTR 6.5.4.3.7.7.7.2.1.2.1.e164.arpa  10.120.160.41
Trying "6.5.4.3.7.7.7.2.1.2.1.e164.arpa"
Using domain server:
Name: 10.120.160.41
Address: 10.120.160.41#53
Aliases:

;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 40020
;; flags: qr aa rd; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 0

;; QUESTION SECTION:
;6.5.4.3.7.7.7.2.1.2.1.e164.arpa. IN        NAPTR

;; ANSWER SECTION:
6.5.4.3.7.7.7.2.1.2.1.e164.arpa. 3600 IN NAPTR 100 10 "u" "E2U+sip" ""
!^.*\$!sip:[EMAIL PROTECTED]

The problem comes from the empty quotes in the DNS answer which makes the
SBC take an empty string for the number and the enum lookup fails.

The data inserted in the database is the following:

INSERT INTO "public"."records" ("id", "domain_id", "name", "type",
"content", "ttl", "prio", "change_date")
VALUES 
  (23, 2, '6.5.4.3.7.7.7.2.1.2.1.e164.arpa', 'NAPTR', '100 10 \"u\"
\"E2U+sip\"  \"!^.*$!sip:[EMAIL PROTECTED]".', 3600, 1, 0);

I am new at power dns and do not know how to make it put the regex part of
the content within the corresponding place in the answer in order to be
parsed correctly from the client side and would be gratefull if someone can
help!

Thank you in advance,
Eli
-- 
View this message in context: 
http://www.nabble.com/problem-with-naptr-answer-tf4917905.html#a14075309
Sent from the PowerDNS mailing list archive at Nabble.com.

_______________________________________________
Pdns-users mailing list
[email protected]
http://mailman.powerdns.com/mailman/listinfo/pdns-users

Reply via email to